Open CASCADE Technology
6.5.4
|
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>
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 |
Select2D_SensitiveEntity::Select2D_SensitiveEntity | ( | const Handle< SelectBasics_EntityOwner > & | anOwnerId | ) | [protected] |
virtual void Select2D_SensitiveEntity::Convert | ( | const Handle< Select2D_Projector > & | aProjector | ) | [virtual] |
Reimplemented in StdSelect_SensitiveText2d.
Standard_Boolean Select2D_SensitiveEntity::Is3D | ( | ) | const [virtual] |
Implements SelectBasics_SensitiveEntity.
virtual Standard_Boolean Select2D_SensitiveEntity::Matches | ( | const TColgp_Array1OfPnt2d & | Polyline, |
const Bnd_Box2d & | aBox, | ||
const Standard_Real | aTol | ||
) | [virtual] |
Implements SelectBasics_SensitiveEntity.
Reimplemented in StdSelect_SensitiveText2d.
virtual Standard_Integer Select2D_SensitiveEntity::MaxBoxes | ( | ) | const [virtual] |
Implements SelectBasics_SensitiveEntity.
Reimplemented in Select2D_SensitiveSegment.
virtual Standard_Boolean Select2D_SensitiveEntity::NeedsConversion | ( | ) | const [virtual] |
Implements SelectBasics_SensitiveEntity.
Reimplemented in StdSelect_SensitiveText2d.