The 3d Text Node. 更多...
#include <APIText3dNode.h>
Public 成员函数 | |
void | SetText (const String &text) |
void | SetFontName (const String &fontName) |
String | GetFontName () const |
void | SetFontSize (const Vector2 &fontSize) |
void | SetFontSize (int width, int height) |
Vector2 | GetFontSize () const |
void | SetLineSpace (int space) |
int | GetLineSpace () const |
void | SetBuildSolid (bool bSolid) |
bool | IsBuildSolid () const |
void | SetThickness (const float &thickness) |
float | GetThickness () const |
void | Update () |
Public 成员函数 继承自 AnyCAD::API::GroupSceneNode | |
void | AddNode (const SceneNode &pNode) |
void | RemoveNode (const ElementId &nId) |
SceneNode | FindNode (const ElementId &nId) const |
SceneNode | GetNodeByIndex (long idx) const |
SceneNodeIterator | NewSceneNodeIterator () const |
long | GetCount () const |
void | ClearAll () |
void | SetAnimator (const Animator &pAnimator) |
Animator | GetAnimator () const |
virtual void | ResetShapeFilter (int nFilter) |
Public 成员函数 继承自 AnyCAD::API::SceneNode | |
ElementId | GetId () const |
void | SetId (const ElementId &nId) |
String | GetName () const |
void | SetName (const String &name) |
void | SetVisible (bool bVisible) |
bool | IsVisible () const |
bool | IsPickable () const |
void | SetPickable (bool enabled) |
bool | IsFilterable () const |
void | SetFilterable (bool enabled) |
bool | IsFixedSize () const |
void | SetFixedSize (bool enabled) |
void | SetBBox (const AABox &bbox) |
AABox | GetBBox () const |
void | SetTransform (const Matrix4 &trf) |
Matrix4 | GetTransform () const |
void | SetPointStyle (const PointStyle &pointStyle) |
PointStyle | GetPointStyle () const |
void | SetLineStyle (const LineStyle &lineStyle) |
LineStyle | GetLineStyle () const |
void | SetFaceStyle (const FaceStyle &faceStyle) |
FaceStyle | GetFaceStyle () const |
void | SetRenderOrder (int order) |
int | GetRenderOrder () const |
Public 成员函数 继承自 AnyCAD::API::Object | |
String | GetObjectClassId () const |
StringList | ListParentClassIds () const |
The 3d Text Node.
TODO:
String AnyCAD::API::Text3dNode::GetFontName | ( | ) | const |
Get FontName.
Vector2 AnyCAD::API::Text3dNode::GetFontSize | ( | ) | const |
Get FontSize.
int AnyCAD::API::Text3dNode::GetLineSpace | ( | ) | const |
Get FontSize.
float AnyCAD::API::Text3dNode::GetThickness | ( | ) | const |
Get the thickness of the text.
bool AnyCAD::API::Text3dNode::IsBuildSolid | ( | ) | const |
If build the text as solid.
void AnyCAD::API::Text3dNode::SetBuildSolid | ( | bool | bSolid | ) |
Enabled to show as solid/face or outline.
bSolid | if true to show solid/face, otherwise shows as edge. |
void AnyCAD::API::Text3dNode::SetFontName | ( | const String & | fontName | ) |
Set FontName.
fontName | the FontName. |
void AnyCAD::API::Text3dNode::SetFontSize | ( | const Vector2 & | fontSize | ) |
Set FontSize.
fontSize | the fontSize. |
void AnyCAD::API::Text3dNode::SetFontSize | ( | int | width, |
int | height | ||
) |
Set FontSize.
width | the width. |
height | the height |
void AnyCAD::API::Text3dNode::SetLineSpace | ( | int | space | ) |
Set the line spacing.
space | the line space. |
void AnyCAD::API::Text3dNode::SetText | ( | const String & | text | ) |
Set Text.
text | the text string |
void AnyCAD::API::Text3dNode::SetThickness | ( | const float & | thickness | ) |
Set the solid thickness.
thickness | the thickness of the solid. If <=0, shows as face. |
void AnyCAD::API::Text3dNode::Update | ( | ) |
Update the node.