Open CASCADE Technology  7.7.2
Public Member Functions | Protected Attributes
StdPrs_BRepTextBuilder Class Reference

Represents class for applying text formatting. More...

#include <StdPrs_BRepTextBuilder.hxx>

Public Member Functions

TopoDS_Shape Perform (StdPrs_BRepFont &theFont, const Handle< Font_TextFormatter > &theFormatter, const gp_Ax3 &thePenLoc=gp_Ax3())
 Render text as BRep shape. More...
 
TopoDS_Shape Perform (StdPrs_BRepFont &theFont, const NCollection_String &theString, const gp_Ax3 &thePenLoc=gp_Ax3(), const Graphic3d_HorizontalTextAlignment theHAlign=Graphic3d_HTA_LEFT, const Graphic3d_VerticalTextAlignment theVAlign=Graphic3d_VTA_BOTTOM)
 Render text as BRep shape. More...
 

Protected Attributes

BRep_Builder myBuilder
 

Detailed Description

Represents class for applying text formatting.

Member Function Documentation

TopoDS_Shape StdPrs_BRepTextBuilder::Perform ( StdPrs_BRepFont theFont,
const Handle< Font_TextFormatter > &  theFormatter,
const gp_Ax3 thePenLoc = gp_Ax3() 
)

Render text as BRep shape.

Parameters
theFormatterformatter which defines aligned text
thePenLocstart position and orientation on the baseline
Returns
result shape with pen transformation applied as shape location
TopoDS_Shape StdPrs_BRepTextBuilder::Perform ( StdPrs_BRepFont theFont,
const NCollection_String theString,
const gp_Ax3 thePenLoc = gp_Ax3(),
const Graphic3d_HorizontalTextAlignment  theHAlign = Graphic3d_HTA_LEFT,
const Graphic3d_VerticalTextAlignment  theVAlign = Graphic3d_VTA_BOTTOM 
)

Render text as BRep shape.

Parameters
theStringtext in UTF-8 encoding
thePenLocstart position and orientation on the baseline
theHAlignhorizontal alignment of the text
theVAlignvertical alignment of the text
Returns
result shape with pen transformation applied as shape location

Field Documentation

BRep_Builder StdPrs_BRepTextBuilder::myBuilder
protected

The documentation for this class was generated from the following file: