OCC Main Page | Visualization | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Visualization
TKV3d
StdSelect


StdSelect_TextProjector2d Class Reference

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.
.

#include <StdSelect_TextProjector2d.hxx>

Inheritance diagram for StdSelect_TextProjector2d:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT StdSelect_TextProjector2d (const Handle(V2d_View)&aView)
 Constructs a 2D text projector framework defined by the 2D view aView.
.
void Set (const Handle(V2d_View)&aView)
 Sets the view aView.
.
void Set (const gp_Trsf2d &atrsf)
 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.
.
virtual Standard_EXPORT void Convert (const gp_Pnt2d &aPointIn, gp_Pnt2d &aPointOut) const
 applies the stored trsf to aPointIn to get aPointOut

virtual Standard_EXPORT 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
 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 const Handle (Standard_Type)&DynamicType() const

Private Attributes

Handle_V2d_View myview

Constructor & Destructor Documentation

Standard_EXPORT StdSelect_TextProjector2d::StdSelect_TextProjector2d const Handle(V2d_View)&  aView  ) 
 


Member Function Documentation

virtual Standard_EXPORT void StdSelect_TextProjector2d::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 [virtual]
 

virtual Standard_EXPORT void StdSelect_TextProjector2d::Convert const gp_Pnt2d &  aPointIn,
gp_Pnt2d &  aPointOut
const [virtual]
 

Implements Select2D_Projector.

Standard_EXPORT const StdSelect_TextProjector2d::Handle Standard_Type   )  const
 

Reimplemented from Select2D_Projector.

void StdSelect_TextProjector2d::Set const gp_Trsf2d &  atrsf  )  [inline]
 

void StdSelect_TextProjector2d::Set const Handle(V2d_View)&  aView  )  [inline]
 


Field Documentation

Handle_V2d_View StdSelect_TextProjector2d::myview [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 13:56:22 2008 for OpenCASCADE by  doxygen 1.4.1