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

Public 成员函数

 PlanarGridWidget (float cellSize, long cellCountX, long cellCountY, long innerCellCount)
 
 PlanarGridWidget (float cellSize, long cellCountX, long cellCountY)
 
float GetCellSize ()
 
void SetCellSize (float val)
 
long GetCellCountX ()
 
void SetCellCountX (long val)
 
long GetCellCountY ()
 
void SetCellCountY (long val)
 
long GetInnerCellCount ()
 
void SetInnerCellCount (long val)
 
Vector3 GetPrimaryColor ()
 
void SetPrimaryColor (Vector3 val)
 
Vector3 GetSecondaryColor ()
 
void SetSecondaryColor (Vector3 val)
 
SceneNode Clone ()
 
void Update ()
 
void FitToBoundingBox (AABox bbox)
 
- Public 成员函数 继承自 CoordinateGridWidget
boolean GetSnapGrid ()
 
void SetSnapGrid (boolean val)
 
double GetScaleFactor ()
 
void SetScaleFactor (double val)
 
boolean GetAutoAdaptive ()
 
void SetAutoAdaptive (boolean val)
 
GAx2 GetCoordinate ()
 
void SetCoordinate (GAx2 ax)
 
Vector3d FloorV (Vector3d v)
 
- Public 成员函数 继承自 ShapeSceneNode
 ShapeSceneNode (CompoundShape shape)
 
CompoundShape GetShape ()
 
void SetShape (CompoundShape val)
 
PrimitiveShapeList GetPrimitives ()
 
PrimitiveShape GetPrimitive (long idx)
 
long GetPrimitiveCount ()
 
void SetMaterial (MaterialInstance pMaterial)
 
void SetColor (Vector3 color)
 
- 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 PlanarGridWidget Cast (GfxObject obj)
 

详细描述

<> PlanarGridWidget. 平面网格控件

构造及析构函数说明

◆ PlanarGridWidget() [1/2]

PlanarGridWidget.PlanarGridWidget ( float cellSize,
long cellCountX,
long cellCountY,
long innerCellCount )

构造函数

参数
cellSize大格的大小
cellCountXX方向格子的数量
cellCountYY方向格子的数量
innerCellCount小格子的数量,默认5个

◆ PlanarGridWidget() [2/2]

PlanarGridWidget.PlanarGridWidget ( float cellSize,
long cellCountX,
long cellCountY )

构造函数

参数
cellSize大格的大小
cellCountXX方向格子的数量
cellCountYY方向格子的数量

成员函数说明

◆ Cast()

static PlanarGridWidget PlanarGridWidget.Cast ( GfxObject obj)
static

◆ Clone()

SceneNode PlanarGridWidget.Clone ( )

◆ FitToBoundingBox()

void PlanarGridWidget.FitToBoundingBox ( AABox bbox)

根据包围盒来计算格子的个数

参数
bbox包围盒

重载 CoordinateGridWidget .

◆ Update()

void PlanarGridWidget.Update ( )

更改参数后,更新重新生成。