Open CASCADE Technology
6.5.4
|
A framework to define sensitive 2D points.
#include <Select2D_SensitivePoint.hxx>
Public Member Functions | |
Select2D_SensitivePoint (const Handle< SelectBasics_EntityOwner > &OwnerId, const gp_Pnt2d &Location, const Standard_Real InitSensitivity=0) | |
Constructs the sensitive point object defined by the owner OwnerId, the point Location and the sensitivity InitSensitivity. InitSensitivity allows choice of dimensions in the selectable box around the sensitive point. It is initialized with a null value, and is given a working one by Set. | |
void | Set (const Standard_Real aSensitivity) |
Sets the sensitivity aSensitivity for sensitive primitives to find owners of points. | |
void | Areas (SelectBasics_ListOfBox2d &aresul) |
Returns the 2Dbox around the point (this box) has to be enlarged (sensitivity = 0) | |
const gp_Pnt2d & | Location () const |
returns the original point. | |
Standard_Boolean | Matches (const Standard_Real X, const Standard_Real Y, const Standard_Real aTol, Standard_Real &DMin) |
if distance between P | |
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. |
Select2D_SensitivePoint::Select2D_SensitivePoint | ( | const Handle< SelectBasics_EntityOwner > & | OwnerId, |
const gp_Pnt2d & | Location, | ||
const Standard_Real | InitSensitivity = 0 |
||
) |
void Select2D_SensitivePoint::Areas | ( | SelectBasics_ListOfBox2d & | aresul | ) | [virtual] |
Implements SelectBasics_SensitiveEntity.
const gp_Pnt2d& Select2D_SensitivePoint::Location | ( | ) | const |
Standard_Boolean Select2D_SensitivePoint::Matches | ( | const Standard_Real | X, |
const Standard_Real | Y, | ||
const Standard_Real | aTol, | ||
Standard_Real & | DMin | ||
) | [virtual] |
Implements SelectBasics_SensitiveEntity.
Standard_Boolean Select2D_SensitivePoint::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.
void Select2D_SensitivePoint::Set | ( | const Standard_Real | aSensitivity | ) |