// 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_SensitiveSegment_HeaderFile #define _Select2D_SensitiveSegment_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Select2D_SensitiveSegment_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _gp_Pnt2d_HeaderFile #include #endif #ifndef _Select2D_SensitiveEntity_HeaderFile #include #endif #ifndef _Handle_SelectBasics_EntityOwner_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class SelectBasics_EntityOwner; class gp_Pnt2d; class SelectBasics_ListOfBox2d; //! A framework to define sensitive areas along a line segment.
class Select2D_SensitiveSegment : public Select2D_SensitiveEntity { public: //! Constructs the sensitive line segment object defined
//! by the owner OwnerId, the 2D starting and ending
//! points FirstPoint and LastPoint and the maximum
//! number of sensitive bounding boxes MaxRect.
//! The parameters can be modified using the functions provided.
Standard_EXPORT Select2D_SensitiveSegment(const Handle(SelectBasics_EntityOwner)& OwnerId,const gp_Pnt2d& FirstP,const gp_Pnt2d& LastP,const Standard_Integer MaxRect = 3); //! Sets the maximum number of 2D sensitive bounding boxes - MaxRect.
Standard_EXPORT void Set(const Standard_Integer MaxRect) ; //! changes the start Point of the Segment;
void StartPoint(const gp_Pnt2d& aPt) ; //! changes the end point of the segment
void EndPoint(const gp_Pnt2d& aPt) ; //! gives the 3D start Point of the Segment
const gp_Pnt2d& StartPoint() const; //! Returnes the 3D start Point of the Segment
const gp_Pnt2d& EndPoint() const; Standard_EXPORT void Areas(SelectBasics_ListOfBox2d& aSeq) ; Standard_EXPORT Standard_Boolean Matches(const Standard_Real X,const Standard_Real Y,const Standard_Real aTol,Standard_Real& DMin) ; Standard_EXPORT Standard_Boolean Matches(const Standard_Real XMin,const Standard_Real YMin,const Standard_Real XMax,const Standard_Real YMax,const Standard_Real aTol) ; //! Returns the max number of sensitive aeas describing the sensitive segment
Standard_Integer MaxBoxes() const; DEFINE_STANDARD_RTTI(Select2D_SensitiveSegment) protected: private: Standard_Integer mymaxrect; gp_Pnt2d mystart; gp_Pnt2d myend; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif