Open CASCADE Technology  7.3.0
Public Member Functions | Protected Attributes
Font_BRepTextBuilder Class Reference

Represents class for applying text formatting. More...

#include <Font_BRepTextBuilder.hxx>

Public Member Functions

TopoDS_Shape Perform (Font_BRepFont &theFont, const Font_TextFormatter &theFormatter, const gp_Ax3 &thePenLoc=gp_Ax3())
 Render text as BRep shape. More...
 
TopoDS_Shape Perform (Font_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

◆ Perform() [1/2]

TopoDS_Shape Font_BRepTextBuilder::Perform ( Font_BRepFont theFont,
const Font_TextFormatter theFormatter,
const gp_Ax3 thePenLoc = gp_Ax3() 
)

Render text as BRep shape.

Parameters
theStringtext in UTF-8 encoding
thePenLocstart position and orientation on the baseline
theFormatterformatter which defines alignment for the text
Returns
result shape with pen transformation applied as shape location

◆ Perform() [2/2]

TopoDS_Shape Font_BRepTextBuilder::Perform ( Font_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

◆ myBuilder

BRep_Builder Font_BRepTextBuilder::myBuilder
protected

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