|
Open CASCADE Technology
6.5.4
|
A framework to define a sensitive text entity for 2D views.
#include <StdSelect_SensitiveText2d.hxx>

Public Member Functions | |
| StdSelect_SensitiveText2d (const Handle< SelectBasics_EntityOwner > &anOwnerId, const TCollection_ExtendedString &aString, const Standard_Real XPox, const Standard_Real YPos, const Standard_Real Angle=0, const Standard_Integer aFontIndex=-1) | |
| Constructs a sensitive 2D text object defined by the owner anOwnerId, the string aString, the point defined by the parameters XPos and YPos, the angle Angle and the font index aFontIndex. | |
| Standard_Boolean | NeedsConversion () const |
| returns Standard_True | |
| virtual void | Convert (const Handle< Select2D_Projector > &aTextProj) |
| gets the size of the text in the 2d view | |
| void | Areas (SelectBasics_ListOfBox2d &aresult) |
| 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_Boolean | Matches (const TColgp_Array1OfPnt2d &Polyline, const Bnd_Box2d &aBox, const Standard_Real aTol) |
| Free contur selection for 2d is not defined | |
| StdSelect_SensitiveText2d::StdSelect_SensitiveText2d | ( | const Handle< SelectBasics_EntityOwner > & | anOwnerId, |
| const TCollection_ExtendedString & | aString, | ||
| const Standard_Real | XPox, | ||
| const Standard_Real | YPos, | ||
| const Standard_Real | Angle = 0, |
||
| const Standard_Integer | aFontIndex = -1 |
||
| ) |
| void StdSelect_SensitiveText2d::Areas | ( | SelectBasics_ListOfBox2d & | aresult | ) | [virtual] |
Implements SelectBasics_SensitiveEntity.
| virtual void StdSelect_SensitiveText2d::Convert | ( | const Handle< Select2D_Projector > & | aTextProj | ) | [virtual] |
Reimplemented from Select2D_SensitiveEntity.
| Standard_Boolean StdSelect_SensitiveText2d::Matches | ( | const Standard_Real | X, |
| const Standard_Real | Y, | ||
| const Standard_Real | aTol, | ||
| Standard_Real & | DMin | ||
| ) | [virtual] |
Implements SelectBasics_SensitiveEntity.
| Standard_Boolean StdSelect_SensitiveText2d::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_Boolean StdSelect_SensitiveText2d::Matches | ( | const TColgp_Array1OfPnt2d & | Polyline, |
| const Bnd_Box2d & | aBox, | ||
| const Standard_Real | aTol | ||
| ) | [virtual] |
Reimplemented from Select2D_SensitiveEntity.
| Standard_Boolean StdSelect_SensitiveText2d::NeedsConversion | ( | ) | const [virtual] |
Reimplemented from Select2D_SensitiveEntity.
1.8.0