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

The Text Node -since R2014UR1. 更多...

#include <APITextNode.h>

类 AnyCAD::API::TextNode 继承关系图:
AnyCAD::API::EntitySceneNode AnyCAD::API::SceneNode AnyCAD::API::Object

Public 成员函数

void SetText (const String &text)
 
String GetText () const
 
void SetPosition (const Vector3 &pos)
 
Vector3 GetPosition () const
 
void SetOffset (const Vector2 &offset)
 
Vector2 GetOffset () const
 
void SetTextColor (const ColorValue &clr)
 
ColorValue GetTextColor () const
 
void SetFontName (const String &fontName)
 
String GetFontName () const
 
- Public 成员函数 继承自 AnyCAD::API::EntitySceneNode
void SetEntity (const RenderableEntity &pEntity)
 
RenderableEntity GetEntity () 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 Text Node -since R2014UR1.

TODO:

成员函数说明

String AnyCAD::API::TextNode::GetFontName ( ) const

Get font.

返回
the font name
Vector2 AnyCAD::API::TextNode::GetOffset ( ) const

Get offset.

返回
the offset
Vector3 AnyCAD::API::TextNode::GetPosition ( ) const

Get Position.

返回
the position
String AnyCAD::API::TextNode::GetText ( ) const

Get Text.

返回
the text
ColorValue AnyCAD::API::TextNode::GetTextColor ( ) const

Get the text color.

返回
the color
void AnyCAD::API::TextNode::SetFontName ( const String fontName)

Set font.

参数
fontNamethe font name
void AnyCAD::API::TextNode::SetOffset ( const Vector2 offset)

Set offset.

参数
offsetthe text offset
void AnyCAD::API::TextNode::SetPosition ( const Vector3 pos)

Set Position.

参数
posthe text position
void AnyCAD::API::TextNode::SetText ( const String text)

Set Text.

参数
textthe text string
void AnyCAD::API::TextNode::SetTextColor ( const ColorValue clr)

Set Text Color.

参数
clrthe text color

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