#include <Select2D_SensitiveSegment.hxx>
Inheritance diagram for Select2D_SensitiveSegment:
Public Member Functions | |
Standard_EXPORT | Select2D_SensitiveSegment (const Handle(SelectBasics_EntityOwner)&OwnerId, const gp_Pnt2d &FirstP, const gp_Pnt2d &LastP, const Standard_Integer MaxRect=3) |
Constructs the sensitive line segment object defined by the owner OwnerId, the 2D starting and ending points FirstPoint and LastPoint and the maximum number of sensitive bounding boxes MaxRect. The parameters can be modified using the functions provided. . | |
Standard_EXPORT void | Set (const Standard_Integer MaxRect) |
Sets the maximum number of 2D sensitive bounding boxes - MaxRect. . | |
void | StartPoint (const gp_Pnt2d &aPt) |
changes the start Point of the Segment; | |
void | EndPoint (const gp_Pnt2d &aPt) |
changes the end point of the segment | |
const gp_Pnt2d & | StartPoint () const |
gives the 3D start Point of the Segment | |
const gp_Pnt2d & | EndPoint () const |
Returnes the 3D start Point of the Segment . | |
Standard_EXPORT void | Areas (SelectBasics_ListOfBox2d &aSeq) |
to be implemented specifically by each type of sensitive primitive . | |
Standard_EXPORT Standard_Boolean | Matches (const Standard_Real X, const Standard_Real Y, const Standard_Real aTol, Standard_Real &DMin) |
returns True if the object is very close to the sensitive areas it gave to the selector... returns the minimum distance found if no match; to be implemented specifically by each type of sensitive primitive . | |
Standard_EXPORT Standard_Boolean | Matches (const Standard_Real XMin, const Standard_Real YMin, const Standard_Real XMax, const Standard_Real YMax, const Standard_Real aTol) |
returns True if the box (Xmin,YMin)------(Xmax,Ymax) contains the SensitiveEntity. Necessary for selection using elastic boxes,or segments. | |
Standard_Integer | MaxBoxes () const |
Returns the max number of sensitive aeas describing the sensitive segment . | |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Private Attributes | |
Standard_Integer | mymaxrect |
gp_Pnt2d | mystart |
gp_Pnt2d | myend |
|
|
|
Implements SelectBasics_SensitiveEntity. |
|
|
|
|
|
Reimplemented from Select2D_SensitiveEntity. |
|
Implements SelectBasics_SensitiveEntity. |
|
Implements SelectBasics_SensitiveEntity. |
|
Reimplemented from Select2D_SensitiveEntity. |
|
|
|
|
|
|
|
|
|
|
|
|