AnyCAD Rapid API 2024
Help you to create a better world!
载入中...
搜索中...
未找到
TextSceneNode类 参考
类 TextSceneNode 继承关系图:
PrimitiveSceneNode SceneNode GfxObject

Public 成员函数

 TextSceneNode (String text, float height, Vector3 color, Vector3 background, boolean alwaysFacingFront)
 
 TextSceneNode (PrimitiveShape shape, float fontHeight, boolean autoTransform)
 
 TextSceneNode (BufferGeometry shape, MaterialInstance material, float fontHeight, boolean autoTransform)
 
float GetFontHeight ()
 
Matrix4 GetScale ()
 
void SetText (String text)
 
void SetPosition (Vector3 position)
 
TextSceneNode CloneTextSceneNode ()
 
SceneNode Clone ()
 
- Public 成员函数 继承自 PrimitiveSceneNode
 PrimitiveSceneNode (PrimitiveShape shape)
 
 PrimitiveSceneNode (BufferGeometry shape, MaterialInstance material)
 
 PrimitiveSceneNode (BufferGeometry shape, MaterialInstance material, Vector3 color)
 
PrimitiveShape GetPrimitive ()
 
MaterialInstance GetMaterial ()
 
void SetMaterial (MaterialInstance material)
 
void SetColor (Vector3 color)
 
void SetPrimitive (PrimitiveShape shape)
 
void SetGeometry (BufferGeometry geometry)
 
void UpdateBoundingBox ()
 
- Public 成员函数 继承自 SceneNode
String GetName ()
 
void SetName (String val)
 
java.math.BigInteger GetUserId ()
 
void SetUserId (java.math.BigInteger val)
 
java.math.BigInteger GetParentId ()
 
void SetParentId (java.math.BigInteger val)
 
Matrix4d GetTransform ()
 
AABox GetBoundingBox ()
 
void SetBoundingBox (AABox val)
 
Matrix4d GetWorldTransform ()
 
AABox GetWorldBBox ()
 
long GetState ()
 
SceneNode GetParent ()
 
void SetParent (SceneNode val)
 
float GetPickOrder ()
 
void SetPickOrder (float val)
 
long GetUpdateVersion ()
 
void SetUpdateVersion (long val)
 
MaterialInstance GetOverrideFaceMaterial ()
 
void SetOverrideFaceMaterial (MaterialInstance val)
 
MaterialInstance GetOverrideEdgeMaterial ()
 
void SetOverrideEdgeMaterial (MaterialInstance val)
 
boolean GetCastShadow ()
 
void SetCastShadow (boolean bEnabled)
 
boolean GetPickable ()
 
void SetPickable (boolean bEnabled)
 
boolean GetPickByBox ()
 
void SetPickByBox (boolean bEnabled)
 
boolean GetCulling ()
 
void SetCulling (boolean bEnabled)
 
boolean GetVisible ()
 
void SetVisible (boolean bEnabled)
 
boolean GetChildrenPickable ()
 
void SetChildrenPickable (boolean bEnabled)
 
boolean GetContainer ()
 
void SetContainer (boolean bEnabled)
 
boolean GetFixedSize ()
 
void SetFixedSize (boolean bEnabled)
 
boolean GetInfiniteSize ()
 
void SetInfiniteSize (boolean bEnabled)
 
boolean GetPhysics ()
 
void SetPhysics (boolean bEnabled)
 
void SetTransform (Matrix4d trf)
 
SceneNode GetRootNode ()
 
void RequestUpdate ()
 
void AddTransform (Matrix4d trf)
 
void SetWorldTransform (Matrix4d world)
 
void UpdateTransform (Matrix4d parent)
 
AABox ComputeBoundingBox (Matrix4d parent)
 
boolean IsVisiblePath ()
 
- Public 成员函数 继承自 GfxObject
long GetUuid ()
 

静态 Public 成员函数

static TextSceneNode Cast (GfxObject obj)
 
static TextSceneNode Create (String text, Vector3 color, float fontHeight, boolean autoScale)
 
static TextSceneNode CreateByBillboard (String text, Vector3 color, float fontHeight, boolean autoScale)
 
static TextSceneNode Create (String text, Vector3 color, float fontHeight, Vector3 background, boolean alwaysFacingFront)
 
static TextSceneNode CreateByTexture (String text, Vector3 color, float fontHeight, Vector3 background, boolean alwaysFacingFront)
 
- 静态 Public 成员函数 继承自 PrimitiveSceneNode
static PrimitiveSceneNode Create (BufferGeometry shape, MaterialInstance material)
 

详细描述

<>
文本节点.

成员函数说明

◆ Cast()

static TextSceneNode TextSceneNode.Cast ( GfxObject obj)
static

◆ Clone()

SceneNode TextSceneNode.Clone ( )

◆ Create() [1/2]

static TextSceneNode TextSceneNode.Create ( String text,
Vector3 color,
float fontHeight,
boolean autoScale )
static

创建朝向固定不变的文字

参数
text文字
color颜色
fontHeight高度
autoScale根据高度自动设置缩放矩阵
返回
显示对象

◆ Create() [2/2]

static TextSceneNode TextSceneNode.Create ( String text,
Vector3 color,
float fontHeight,
Vector3 background,
boolean alwaysFacingFront )
static

创建贴图文字

参数
text文本
color颜色
fontHeight高度
background背景色。若小于0,则透明
alwaysFacingFront是否永远朝向屏幕
返回

◆ SetPosition()

void TextSceneNode.SetPosition ( Vector3 position)

设置位置

参数
position位置

◆ SetText()

void TextSceneNode.SetText ( String text)

设置文字

参数
text文本