AnyCAD Rapid API 2023
Help you to create a better world!
载入中...
搜索中...
未找到
DrawableElement类 参考
类 DrawableElement 继承关系图:
EntityElement Element AObject AssemblyElement BBoxElement CoordinateSystemElement CurveElement InstanceElement PartElement PointCloudElement PointElement PointsElement ShapeElement SketchElement TextElement VisualElement

Public 成员函数

ClassId GetClassId ()
 
ObjectId GetLayerId ()
 
boolean SetLayerId (ObjectId val)
 
long GetDisplayFilter ()
 
boolean SetDisplayFilter (long val)
 
ObjectId GetMaterialId ()
 
boolean SetMaterialId (ObjectId val)
 
boolean GetManaged ()
 
boolean SetManaged (boolean val)
 
ObjectId GetFunctionId ()
 
boolean SetFunctionId (ObjectId val)
 
AABox GetLocalBBox ()
 
void SetTransformBehaviour (EnumTransformBehaviour behaviour)
 
EnumTransformBehaviour GetTransformBehaviour ()
 
AABox GetWorldBBox ()
 
TopoShape GetFinalShape (EnumLevelOfDetail lod)
 
TopoShape GetFinalShape ()
 
void SetTransform (GTrsf trf)
 
GTrsf GetTransform ()
 
GTrsf GetParentTransform ()
 
GTrsf GetLocalTransform ()
 
void SetLocalTransform (GTrsf trf)
 
ObjectId GetUsedMaterialId ()
 
void RequestUpdate ()
 
- Public 成员函数 继承自 EntityElement
ClassId GetClassId ()
 
long GetState ()
 
boolean SetState (long val)
 
ObjectId GetParentId ()
 
boolean SetParentId (ObjectId val)
 
ObjectId GetDbViewId ()
 
boolean SetDbViewId (ObjectId val)
 
void SetVisible (boolean bVisible)
 
boolean GetVisible ()
 
void SetProvisional (boolean enabled)
 
boolean GetProvisional ()
 
void SetPickable (boolean bPickable)
 
boolean GetPickable ()
 
void SetSectionable (boolean bSectionable)
 
boolean GetSectionable ()
 
void SetBrowserable (boolean browserable)
 
boolean GetBrowserable ()
 
void SetEditable (boolean editable)
 
boolean GetEditable ()
 
void SetLODEnabled (boolean enabled)
 
boolean GetLODEnabled ()
 
Component GetComponent (String className)
 
Component FindComponent (String className, String name)
 
void CollectChildren (ReferenceCollector collector)
 
void ListParameters (ParameterDict parameters)
 
boolean SetParameter (ParameterDict parameters, String key)
 
- Public 成员函数 继承自 Element
ClassId GetClassId ()
 
ObjectId GetId ()
 
long GetUserId ()
 
boolean SetUserId (long val)
 
String GetName ()
 
boolean SetName (String val)
 
String GetSchemaName ()
 
boolean SetSchemaName (String val)
 
long GetUserFlags ()
 
void SetUserFlags (long val)
 
void MakeUniqueName (String base)
 
void MakeUniqueName ()
 
void RequestUpdate ()
 
void ListParameters (ParameterDict parameters)
 
boolean SetParameter (ParameterDict parameters, String key)
 
- Public 成员函数 继承自 AObject
ClassId GetClassId ()
 
boolean IsEqual (AObject other)
 

静态 Public 成员函数

static ClassId GetStaticClassId ()
 
static DrawableElement Cast (AObject obj)
 
static DrawableElement Create (Document pDoc)
 
static ClassId GetStaticClassId ()
 
static EntityElement Cast (AObject obj)
 
static EntityElement Create (Document pDoc)
 
static ClassId GetStaticClassId ()
 
static Element Cast (AObject obj)
 
static ClassId GetStaticClassId ()
 

静态 Public 属性

static final long PID_Transform = AnyCADJNI.DrawableElement_PID_Transform_get()
 
static final long PID_RegenParameter = AnyCADJNI.DrawableElement_PID_RegenParameter_get()
 
static final long PID_Graphics = AnyCADJNI.DrawableElement_PID_Graphics_get()
 
static final long PID_RegenSection = AnyCADJNI.DrawableElement_PID_RegenSection_get()
 
- 静态 Public 属性 继承自 EntityElement
static final long PID_Visibility = AnyCADJNI.EntityElement_PID_Visibility_get()
 

详细描述

<>
可绘制对象的基类.

  • Managed: 若为true,则不会单独绘制,而是依托于其他构件来绘制,如Assembly子构件、Instance的Type。默认为false

成员函数说明

◆ Cast()

static DrawableElement DrawableElement.Cast ( AObject  obj)
static

重载 EntityElement .

◆ Create()

static DrawableElement DrawableElement.Create ( Document  pDoc)
static

重载 EntityElement .

◆ GetClassId()

◆ GetFinalShape() [1/2]

TopoShape DrawableElement.GetFinalShape ( )

获取几何对象,可能为空

返回
TopoShape

◆ GetFinalShape() [2/2]

TopoShape DrawableElement.GetFinalShape ( EnumLevelOfDetail  lod)

获取几何对象,可能为空

返回
TopoShape

◆ GetLocalTransform()

GTrsf DrawableElement.GetLocalTransform ( )

获取局部变换

返回
变换

TextElement 重载.

◆ GetParentTransform()

GTrsf DrawableElement.GetParentTransform ( )

获取父节点的矩阵变换

返回
变换

CoordinateSystemElement 重载.

◆ GetStaticClassId()

◆ GetTransform()

GTrsf DrawableElement.GetTransform ( )

获取全局矩阵变换

返回
变换

◆ GetUsedMaterialId()

ObjectId DrawableElement.GetUsedMaterialId ( )

自定义查找材质的顺序

返回
材质ID

◆ GetWorldBBox()

AABox DrawableElement.GetWorldBBox ( )

获取全局的包围盒

◆ RequestUpdate()

void DrawableElement.RequestUpdate ( )

更新显示

重载 Element .

PointElement, TextElement , 以及 VisualElement 重载.

◆ SetLocalTransform()

void DrawableElement.SetLocalTransform ( GTrsf  trf)

设置局部变换

参数
trf变换

TextElement 重载.

◆ SetTransform()

void DrawableElement.SetTransform ( GTrsf  trf)

设置全局矩阵变换

参数
trf变换

◆ SetTransformBehaviour()

void DrawableElement.SetTransformBehaviour ( EnumTransformBehaviour  behaviour)

设置矩阵变化的行为。默认相对系统坐标系变换。