AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::Text3dNode类 参考

The 3d Text Node. 更多...

#include <APIText3dNode.h>

类 AnyCAD::API::Text3dNode 继承关系图:
AnyCAD::API::GroupSceneNode AnyCAD::API::SceneNode AnyCAD::API::Object

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.

返回
the FontName.
Vector2 AnyCAD::API::Text3dNode::GetFontSize ( ) const

Get FontSize.

返回
the FontSize.
int AnyCAD::API::Text3dNode::GetLineSpace ( ) const

Get FontSize.

返回
the FontSize.
float AnyCAD::API::Text3dNode::GetThickness ( ) const

Get the thickness of the text.

返回
the thickness of the font.
bool AnyCAD::API::Text3dNode::IsBuildSolid ( ) const

If build the text as solid.

返回
true if solid.
void AnyCAD::API::Text3dNode::SetBuildSolid ( bool  bSolid)

Enabled to show as solid/face or outline.

参数
bSolidif true to show solid/face, otherwise shows as edge.
void AnyCAD::API::Text3dNode::SetFontName ( const String fontName)

Set FontName.

参数
fontNamethe FontName.
void AnyCAD::API::Text3dNode::SetFontSize ( const Vector2 fontSize)

Set FontSize.

参数
fontSizethe fontSize.
void AnyCAD::API::Text3dNode::SetFontSize ( int  width,
int  height 
)

Set FontSize.

参数
widththe width.
heightthe height
void AnyCAD::API::Text3dNode::SetLineSpace ( int  space)

Set the line spacing.

参数
spacethe line space.
void AnyCAD::API::Text3dNode::SetText ( const String text)

Set Text.

参数
textthe text string
void AnyCAD::API::Text3dNode::SetThickness ( const float &  thickness)

Set the solid thickness.

参数
thicknessthe thickness of the solid. If <=0, shows as face.
void AnyCAD::API::Text3dNode::Update ( )

Update the node.


该类的文档由以下文件生成: