AnyCAD Rapid API 2025
Help you to create a better world!
|
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.
|
static |
重载 SceneNode .
MaterialInstance PrimitiveSceneNode.GetMaterial | ( | ) |
获取材质对象
void PrimitiveSceneNode.SetColor | ( | Vector3 | color | ) |
设置颜色,将覆盖材质上定义的颜色
color | 颜色 |
void PrimitiveSceneNode.SetGeometry | ( | BufferGeometry | geometry | ) |
设置BufferGeometry
geometry | BufferGeometry对象 |
void PrimitiveSceneNode.SetLineWidth | ( | short | lineWidth | ) |
设置线宽,覆盖材质定义的线宽
lineWidth | 线宽 |
void PrimitiveSceneNode.SetMaterial | ( | MaterialInstance | material | ) |
设置材质对象
material | 材质对象 |
void PrimitiveSceneNode.SetPrimitive | ( | PrimitiveShape | shape | ) |
设置PrimitiveShape
shape | PrimitiveShape对象 |