// 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 _StdSelect_SensitiveText2d_HeaderFile #define _StdSelect_SensitiveText2d_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_StdSelect_SensitiveText2d_HeaderFile #include #endif #ifndef _TCollection_ExtendedString_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Bnd_Box2d_HeaderFile #include #endif #ifndef _Select2D_SensitiveEntity_HeaderFile #include #endif #ifndef _Handle_SelectBasics_EntityOwner_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_Select2D_Projector_HeaderFile #include #endif class SelectBasics_EntityOwner; class TCollection_ExtendedString; class Select2D_Projector; class SelectBasics_ListOfBox2d; class TColgp_Array1OfPnt2d; class Bnd_Box2d; //! A framework to define a sensitive text entity for 2D views.
class StdSelect_SensitiveText2d : public Select2D_SensitiveEntity { public: //! Constructs a sensitive 2D text object defined by the
//! owner anOwnerId, the string aString, the point
//! defined by the parameters XPos and YPos, the angle
//! Angle and the font index aFontIndex.
Standard_EXPORT StdSelect_SensitiveText2d(const Handle(SelectBasics_EntityOwner)& anOwnerId,const TCollection_ExtendedString& aString,const Standard_Real XPox,const Standard_Real YPos,const Standard_Real Angle = 0,const Standard_Integer aFontIndex = -1); //! returns Standard_True
Standard_Boolean NeedsConversion() const; //! gets the size of the text in the 2d view
Standard_EXPORT virtual void Convert(const Handle(Select2D_Projector)& aTextProj) ; //! to be implemented specifically by each type of
//! sensitive primitive .
//!
Standard_EXPORT void Areas(SelectBasics_ListOfBox2d& aresult) ; 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) ; Standard_EXPORT Standard_Boolean Matches(const TColgp_Array1OfPnt2d& Polyline,const Bnd_Box2d& aBox,const Standard_Real aTol) ; DEFINE_STANDARD_RTTI(StdSelect_SensitiveText2d) protected: private: TCollection_ExtendedString mytext; Standard_Real myxpos; Standard_Real myypos; Standard_Real myangle; Standard_Integer myfont; Bnd_Box2d myinitbox; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif