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

Public 成员函数

 PrimitiveSceneNode (PrimitiveShape shape)
 
 PrimitiveSceneNode (BufferGeometry shape, MaterialInstance material)
 
 PrimitiveSceneNode (BufferGeometry shape, MaterialInstance material, Vector3 color, short lineWidth)
 
 PrimitiveSceneNode (BufferGeometry shape, MaterialInstance material, Vector3 color)
 
PrimitiveShape GetPrimitive ()
 
MaterialInstance GetMaterial ()
 
void SetMaterial (MaterialInstance material)
 
void SetColor (Vector3 color)
 
void SetLineWidth (short lineWidth)
 
void SetPrimitive (PrimitiveShape shape)
 
void SetGeometry (BufferGeometry geometry)
 
SceneNode Clone ()
 
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 PrimitiveSceneNode Cast (GfxObject obj)
 
static PrimitiveSceneNode Create (BufferGeometry shape, MaterialInstance material)
 

详细描述

<>
The SceneNode to contain basic shapes: pints, lines and triangles.

成员函数说明

◆ Cast()

static PrimitiveSceneNode PrimitiveSceneNode.Cast ( GfxObject obj)
static

重载 SceneNode .

◆ Clone()

SceneNode PrimitiveSceneNode.Clone ( )

重载 SceneNode .

◆ GetMaterial()

MaterialInstance PrimitiveSceneNode.GetMaterial ( )

获取材质对象

返回
材质对象

◆ SetColor()

void PrimitiveSceneNode.SetColor ( Vector3 color)

设置颜色,将覆盖材质上定义的颜色

参数
color颜色

◆ SetGeometry()

void PrimitiveSceneNode.SetGeometry ( BufferGeometry geometry)

设置BufferGeometry

参数
geometryBufferGeometry对象

◆ SetLineWidth()

void PrimitiveSceneNode.SetLineWidth ( short lineWidth)

设置线宽,覆盖材质定义的线宽

参数
lineWidth线宽

◆ SetMaterial()

void PrimitiveSceneNode.SetMaterial ( MaterialInstance material)

设置材质对象

参数
material材质对象

◆ SetPrimitive()

void PrimitiveSceneNode.SetPrimitive ( PrimitiveShape shape)

设置PrimitiveShape

参数
shapePrimitiveShape对象