// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Select2D_SensitiveEntity_HeaderFile #define _Select2D_SensitiveEntity_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Select2D_SensitiveEntity_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _SelectBasics_SensitiveEntity_HeaderFile #include #endif #ifndef _Handle_SelectBasics_EntityOwner_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_Select2D_Projector_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class Standard_NotImplemented; class SelectBasics_EntityOwner; class Select2D_Projector; class TColgp_Array1OfPnt2d; class Bnd_Box2d; //! A framework to define what all sensitive 2D entities have in common.
//! This framework can be used to create new 2D sensitive entities.
class Select2D_SensitiveEntity : public SelectBasics_SensitiveEntity { public: //! returns Standard_False unless if redefined...
virtual Standard_Boolean NeedsConversion() const; //! 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.
Standard_EXPORT virtual void Convert(const Handle(Select2D_Projector)& aProjector) ; //! Returns the maximum number of boxes.
Standard_EXPORT virtual Standard_Integer MaxBoxes() const; //! Sets and stores a tolerance value in the argument
//! aTol of the function Matches inherited from SelectBasics_SensitiveEntity.
Standard_EXPORT void SetOwnTolerance(const Standard_Real aValue) ; //! Removes the in the argument aTol of the function
//! Matches inherited from SelectBasics_SensitiveEntity.
Standard_EXPORT void UnsetOwnTolerance() ; //! Returns true if the entity has a setting for the
//! argument aTol of the function Matches inherited
//! from SelectBasics_SensitiveEntity.
Standard_EXPORT Standard_Boolean HasOwnTolerance() const; //! Returns the tolerance value in the argument aTol of
//! the function Matches inherited from SelectBasics_SensitiveEntity.
Standard_EXPORT Standard_Real OwnTolerance() const; //! Returns true if this object can provide 3D information.
Standard_EXPORT Standard_Boolean Is3D() const; //! Free contur selection for 2d is not defined
Standard_EXPORT virtual Standard_Boolean Matches(const TColgp_Array1OfPnt2d& Polyline,const Bnd_Box2d& aBox,const Standard_Real aTol) ; DEFINE_STANDARD_RTTI(Select2D_SensitiveEntity) protected: Standard_EXPORT Select2D_SensitiveEntity(const Handle(SelectBasics_EntityOwner)& anOwnerId); Standard_Real myOwnTolerance; private: }; #include // other Inline functions and methods (like "C++: function call" methods) #endif