Open CASCADE Technology 6.6.0
Public Member Functions | Protected Attributes
MeshVS_SensitiveSegment Class Reference

This class provides custom sensitive face, which will be selected if it center is in rectangle.

#include <MeshVS_SensitiveSegment.hxx>

Inheritance diagram for MeshVS_SensitiveSegment:
Inheritance graph
[legend]

Public Member Functions

 MeshVS_SensitiveSegment (const Handle< SelectBasics_EntityOwner > &theOwner, const gp_Pnt &theFirstP, const gp_Pnt &theLastP, const Standard_Integer theMaxRect=1)
virtual void Project (const Handle< Select3D_Projector > &aProjector)
 projection of the sensitive primitive in order to
get 2D boxes for the Sort Algorithm

virtual Standard_Boolean Matches (const Standard_Real XMin, const Standard_Real YMin, const Standard_Real XMax, const Standard_Real YMax, const Standard_Real aTol)
 Matches the box defined by the coordinates Xmin,
Ymin, Xmax, Ymax with the entity found at that point
within the tolerance aTol.
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.
You must redefine this function for every inheriting entity.
You will have to call this framework inside the redefined function.

virtual Standard_Boolean Matches (const TColgp_Array1OfPnt2d &Polyline, const Bnd_Box2d &aBox, const Standard_Real aTol)
 prevents from hiding virtual methods...

Protected Attributes

gp_Pnt myCentre
gp_Pnt2d myProjCentre

Constructor & Destructor Documentation

MeshVS_SensitiveSegment::MeshVS_SensitiveSegment ( const Handle< SelectBasics_EntityOwner > &  theOwner,
const gp_Pnt theFirstP,
const gp_Pnt theLastP,
const Standard_Integer  theMaxRect = 1 
)

Member Function Documentation

virtual Standard_Boolean MeshVS_SensitiveSegment::Matches ( const Standard_Real  XMin,
const Standard_Real  YMin,
const Standard_Real  XMax,
const Standard_Real  YMax,
const Standard_Real  aTol 
) [virtual]

Reimplemented from Select3D_SensitiveSegment.

virtual Standard_Boolean MeshVS_SensitiveSegment::Matches ( const TColgp_Array1OfPnt2d Polyline,
const Bnd_Box2d aBox,
const Standard_Real  aTol 
) [virtual]

Reimplemented from Select3D_SensitiveSegment.

virtual void MeshVS_SensitiveSegment::Project ( const Handle< Select3D_Projector > &  aProjector) [virtual]

Reimplemented from Select3D_SensitiveSegment.


Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines