Open CASCADE Technology 7.8.0
|
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 |
Represents class for applying text formatting.
TopoDS_Shape StdPrs_BRepTextBuilder::Perform | ( | StdPrs_BRepFont & | theFont, |
const Handle< Font_TextFormatter > & | theFormatter, | ||
const gp_Ax3 & | thePenLoc = gp_Ax3() |
||
) |
Render text as BRep shape.
theFormatter | formatter which defines aligned text |
thePenLoc | start position and orientation on the baseline |
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.
theString | text in UTF-8 encoding |
thePenLoc | start position and orientation on the baseline |
theHAlign | horizontal alignment of the text |
theVAlign | vertical alignment of the text |
|
protected |