// 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_TextProjector2d_HeaderFile #define _StdSelect_TextProjector2d_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_StdSelect_TextProjector2d_HeaderFile #include #endif #ifndef _Handle_V2d_View_HeaderFile #include #endif #ifndef _Select2D_Projector_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class V2d_View; class gp_Trsf2d; class gp_Pnt2d; class TCollection_ExtendedString; //! A projector framework specific to texts in 2D views.
//! For a string of text, an insertion point and a font, it
//! calculates the minimum and maximum points of the text box in the view.
class StdSelect_TextProjector2d : public Select2D_Projector { public: //! Constructs a 2D text projector framework defined by the 2D view aView.
Standard_EXPORT StdSelect_TextProjector2d(const Handle(V2d_View)& aView); //! Sets the view aView.
void Set(const Handle(V2d_View)& aView) ; //! Sets the transformation atrsf.
//! This transformation is applied to the attachment point
//! of the text, and takes the size and length of the text
//! into account to give the upper right hand point of the text box.
void Set(const gp_Trsf2d& atrsf) ; //! applies the stored trsf to aPointIn to get aPointOut
Standard_EXPORT virtual void Convert(const gp_Pnt2d& aPointIn,gp_Pnt2d& aPointOut) const; //!XPos,YPos is the AttachPoint for the text.First, the stored Trsf is
//! applied to this point, then we get the size and length of text to
//! give the upper point
Standard_EXPORT virtual void Convert(const TCollection_ExtendedString& aText,const Standard_Real XPos,const Standard_Real YPos,gp_Pnt2d& MinPoint,gp_Pnt2d& MaxPoint,const Standard_Integer afont = -1) const; DEFINE_STANDARD_RTTI(StdSelect_TextProjector2d) protected: private: Handle_V2d_View myview; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif