// 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 _SelectBasics_SensitiveEntity_HeaderFile #define _SelectBasics_SensitiveEntity_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_SelectBasics_SensitiveEntity_HeaderFile #include #endif #ifndef _Handle_SelectBasics_EntityOwner_HeaderFile #include #endif #ifndef _Standard_ShortReal_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class SelectBasics_EntityOwner; class SelectBasics_ListOfBox2d; class TColgp_Array1OfPnt2d; class Bnd_Box2d; //! root class ; the inheriting classes will be able to give
//! sensitive Areas for the dynamic selection algorithms
class SelectBasics_SensitiveEntity : public MMgt_TShared { public: Standard_EXPORT void Set(const Handle(SelectBasics_EntityOwner)& TheOwnerId) ; Standard_EXPORT const Handle_SelectBasics_EntityOwner& OwnerId() const; //! to be implemented specifically by each type of
//! sensitive primitive .
//!
Standard_EXPORT virtual void Areas(SelectBasics_ListOfBox2d& aresult) = 0; //! 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_EXPORT virtual Standard_Boolean Matches(const Standard_Real X,const Standard_Real Y,const Standard_Real aTol,Standard_Real& DMin) = 0; //! returns True if the box (Xmin,YMin)------(Xmax,Ymax)
//! contains the SensitiveEntity.
//! Necessary for selection using elastic boxes,or segments.
Standard_EXPORT virtual Standard_Boolean Matches(const Standard_Real XMin,const Standard_Real YMin,const Standard_Real XMax,const Standard_Real YMax,const Standard_Real aTol) = 0; //! returns True if the polyline xi,yi
//! contains the SensitiveEntity.
//! Necessary for selection using polyline selection
Standard_EXPORT virtual Standard_Boolean Matches(const TColgp_Array1OfPnt2d& Polyline,const Bnd_Box2d& aBox,const Standard_Real aTol) = 0; Standard_EXPORT virtual Standard_Boolean NeedsConversion() const = 0; //! returns True if able to give 3D information
//! (Depth,...). See Select3D
Standard_EXPORT virtual Standard_Boolean Is3D() const = 0; //! Sort Selected entities according to depth...
Standard_EXPORT virtual Standard_Real Depth() const; //! returns the max number of boxes the entity is able to give
//! at a time
Standard_EXPORT virtual Standard_Integer MaxBoxes() const = 0; void SetSensitivityFactor(const Standard_ShortReal aFactor) ; //! allows a better sensitivity for
//! a specific entity in selection algorithms
//! useful for small sized entities.
Standard_ShortReal SensitivityFactor() const; DEFINE_STANDARD_RTTI(SelectBasics_SensitiveEntity) protected: Standard_EXPORT SelectBasics_SensitiveEntity(const Handle(SelectBasics_EntityOwner)& OwnerId,const Standard_ShortReal aSensitivityFactor = 1); Handle_SelectBasics_EntityOwner myOwnerId; private: Standard_ShortReal mySFactor; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif