Open CASCADE Technology 7.8.0
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.
 
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.
 

Protected Attributes

BRep_Builder myBuilder
 

Detailed Description

Represents class for applying text formatting.

Member Function Documentation

◆ Perform() [1/2]

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

◆ Perform() [2/2]

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

◆ myBuilder

BRep_Builder StdPrs_BRepTextBuilder::myBuilder
protected

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