Open CASCADE Technology
6.5.4
|
defines a Sensitive Box (inside or boundary)
#include <Select2D_SensitiveBox.hxx>
Public Member Functions | |
Select2D_SensitiveBox (const Handle< SelectBasics_EntityOwner > &OwnerId, const gp_Pnt2d &Center, const Standard_Real Height, const Standard_Real Width, const Select2D_TypeOfSelection Type=Select2D_TOS_INTERIOR) | |
Constructs a sensitive box object defined by the owner OwnerId, the center point Center, the height Height, the width Width, and the selection type Type. Type can be: | |
Select2D_SensitiveBox (const Handle< SelectBasics_EntityOwner > &OwnerId, const Standard_Real Xmin, const Standard_Real YMin, const Standard_Real XMax, const Standard_Real YMax, const Select2D_TypeOfSelection Type=Select2D_TOS_INTERIOR) | |
Constructs a sensitive box object defined by the owner OwnerId, the coordinates Xmin, YMin, XMax, YMax, and the selection type Type. Xmin, YMin define the minimum point in the lower left hand corner of the box, and XMax, YMax define the maximum point in the upper right hand corner of the box. Type can be: | |
void | Areas (SelectBasics_ListOfBox2d &aresul) |
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. |
Select2D_SensitiveBox::Select2D_SensitiveBox | ( | const Handle< SelectBasics_EntityOwner > & | OwnerId, |
const gp_Pnt2d & | Center, | ||
const Standard_Real | Height, | ||
const Standard_Real | Width, | ||
const Select2D_TypeOfSelection | Type = Select2D_TOS_INTERIOR |
||
) |
Select2D_SensitiveBox::Select2D_SensitiveBox | ( | const Handle< SelectBasics_EntityOwner > & | OwnerId, |
const Standard_Real | Xmin, | ||
const Standard_Real | YMin, | ||
const Standard_Real | XMax, | ||
const Standard_Real | YMax, | ||
const Select2D_TypeOfSelection | Type = Select2D_TOS_INTERIOR |
||
) |
void Select2D_SensitiveBox::Areas | ( | SelectBasics_ListOfBox2d & | aresult | ) | [virtual] |
Implements SelectBasics_SensitiveEntity.
Standard_Boolean Select2D_SensitiveBox::Matches | ( | const Standard_Real | X, |
const Standard_Real | Y, | ||
const Standard_Real | aTol, | ||
Standard_Real & | DMin | ||
) | [virtual] |
Implements SelectBasics_SensitiveEntity.
Standard_Boolean Select2D_SensitiveBox::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.