Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
StdSelect_SensitiveText2d Class Reference

A framework to define a sensitive text entity for 2D views.

#include <StdSelect_SensitiveText2d.hxx>

Inheritance diagram for StdSelect_SensitiveText2d:
Inheritance graph
[legend]

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


Constructor & Destructor Documentation


Member Function Documentation

Reimplemented from Select2D_SensitiveEntity.

Reimplemented from Select2D_SensitiveEntity.

Reimplemented from Select2D_SensitiveEntity.


The documentation for this class was generated from the following file: