Open CASCADE Technology
6.5.4
|
A framework to define sensitive areas along a line segment.
#include <Select2D_SensitiveSegment.hxx>
Public Member Functions | |
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. | |
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 | |
void | Areas (SelectBasics_ListOfBox2d &aSeq) |
to be implemented specifically by each type of sensitive primitive . | |
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_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 |
Select2D_SensitiveSegment::Select2D_SensitiveSegment | ( | const Handle< SelectBasics_EntityOwner > & | OwnerId, |
const gp_Pnt2d & | FirstP, | ||
const gp_Pnt2d & | LastP, | ||
const Standard_Integer | MaxRect = 3 |
||
) |
void Select2D_SensitiveSegment::Areas | ( | SelectBasics_ListOfBox2d & | aresult | ) | [virtual] |
Implements SelectBasics_SensitiveEntity.
const gp_Pnt2d& Select2D_SensitiveSegment::EndPoint | ( | ) | const |
Standard_Boolean Select2D_SensitiveSegment::Matches | ( | const Standard_Real | X, |
const Standard_Real | Y, | ||
const Standard_Real | aTol, | ||
Standard_Real & | DMin | ||
) | [virtual] |
Implements SelectBasics_SensitiveEntity.
Standard_Boolean Select2D_SensitiveSegment::Matches | ( | const Standard_Real | XMin, |
const Standard_Real | YMin, | ||
const Standard_Real | XMax, | ||
const Standard_Real | YMax, | ||
const Standard_Real | aTol | ||
) | [virtual] |
Implements SelectBasics_SensitiveEntity.
Standard_Integer Select2D_SensitiveSegment::MaxBoxes | ( | ) | const [virtual] |
Reimplemented from Select2D_SensitiveEntity.
void Select2D_SensitiveSegment::Set | ( | const Standard_Integer | MaxRect | ) |
const gp_Pnt2d& Select2D_SensitiveSegment::StartPoint | ( | ) | const |