AnyCAD Rapid API 2023
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)
 
PrimitiveShape GetPrimitive ()
 
MaterialInstance GetMaterial ()
 
void SetMaterial (MaterialInstance material)
 
void SetPrimitive (PrimitiveShape shape)
 
void SetGeometry (BufferGeometry geometry)
 
SceneNode Clone ()
 
void UpdateBoundingBox ()
 
- Public 成员函数 继承自 SceneNode
java.math.BigInteger GetUserId ()
 
void SetUserId (java.math.BigInteger val)
 
Matrix4 GetTransform ()
 
AABox GetBoundingBox ()
 
void SetBoundingBox (AABox val)
 
Matrix4 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 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 GetPhysics ()
 
void SetPhysics (boolean bEnabled)
 
void SetTransform (Matrix4 trf)
 
SceneNode GetRootNode ()
 
SceneNode Clone ()
 
void RequestUpdate ()
 
void AddTransform (Matrix4 trf)
 
void SetWorldTransform (Matrix4 world)
 
void UpdateTransform (Matrix4 parent)
 
AABox ComputeBoundingBox (Matrix4 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 Create (String text, Vector3 color, float fontHeight, Vector3 background, boolean alwaysFacingFront)
 
- 静态 Public 成员函数 继承自 PrimitiveSceneNode
static PrimitiveSceneNode Cast (GfxObject obj)
 
static PrimitiveSceneNode Create (BufferGeometry shape, MaterialInstance material)
 
static SceneNode Cast (GfxObject obj)
 

详细描述

<>
The SceneNode to manage Text.

成员函数说明

◆ 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是否永远朝向屏幕
返回