Select2D_SensitiveEntity Class Reference

A framework to define what all sensitive 2D entities have in common.
This framework can be used to create new 2D sensitive entities.

#include <Select2D_SensitiveEntity.hxx>

Inheritance diagram for Select2D_SensitiveEntity:
Inheritance graph
[legend]

Public Member Functions

virtual Standard_Boolean NeedsConversion () const
 returns Standard_False unless if redefined...

virtual void Convert (const Handle< Select2D_Projector > &aProjector)
 Processes the projection of the sensitive primitives in
the active view. This must be performed before the selection action.
This function must be implemented in daughter classes.

virtual Standard_Integer MaxBoxes () const
 Returns the maximum number of boxes.

void SetOwnTolerance (const Standard_Real aValue)
 Sets and stores a tolerance value in the argument
aTol of the function Matches inherited from SelectBasics_SensitiveEntity.

void UnsetOwnTolerance ()
 Removes the in the argument aTol of the function
Matches inherited from SelectBasics_SensitiveEntity.

Standard_Boolean HasOwnTolerance () const
 Returns true if the entity has a setting for the
argument aTol of the function Matches inherited
from SelectBasics_SensitiveEntity.

Standard_Real OwnTolerance () const
 Returns the tolerance value in the argument aTol of
the function Matches inherited from SelectBasics_SensitiveEntity.

Standard_Boolean Is3D () const
 Returns true if this object can provide 3D information.

virtual Standard_Boolean Matches (const TColgp_Array1OfPnt2d &Polyline, const Bnd_Box2d &aBox, const Standard_Real aTol)
 Free contur selection for 2d is not defined

Protected Member Functions

 Select2D_SensitiveEntity (const Handle< SelectBasics_EntityOwner > &anOwnerId)

Protected Attributes

Standard_Real myOwnTolerance

Constructor & Destructor Documentation

Select2D_SensitiveEntity::Select2D_SensitiveEntity ( const Handle< SelectBasics_EntityOwner > &  anOwnerId  )  [protected]

Member Function Documentation

virtual void Select2D_SensitiveEntity::Convert ( const Handle< Select2D_Projector > &  aProjector  )  [virtual]

Reimplemented in StdSelect_SensitiveText2d.

Standard_Boolean Select2D_SensitiveEntity::HasOwnTolerance (  )  const
Standard_Boolean Select2D_SensitiveEntity::Is3D (  )  const [virtual]
virtual Standard_Boolean Select2D_SensitiveEntity::Matches ( const TColgp_Array1OfPnt2d Polyline,
const Bnd_Box2d aBox,
const Standard_Real  aTol 
) [virtual]
virtual Standard_Integer Select2D_SensitiveEntity::MaxBoxes (  )  const [virtual]
virtual Standard_Boolean Select2D_SensitiveEntity::NeedsConversion (  )  const [virtual]
Standard_Real Select2D_SensitiveEntity::OwnTolerance (  )  const
void Select2D_SensitiveEntity::SetOwnTolerance ( const Standard_Real  aValue  ) 
void Select2D_SensitiveEntity::UnsetOwnTolerance (  ) 

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
Generated on Thu Mar 3 11:01:50 2011 for Open CASCADE Technology by  doxygen 1.6.3