AnyCAD Rapid API 2024
Help you to create a better world!
载入中...
搜索中...
未找到
DrawableElement类 参考
类 DrawableElement 继承关系图:
EntityElement Element AObject AssemblyElement AxPathElement 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 GetFunctionId ()
 
boolean SetFunctionId (ObjectId val)
 
AABox GetLocalBBox ()
 
void SetCropable (boolean enabled)
 
boolean GetCropable ()
 
void SetTransformBehaviour (EnumTransformBehaviour behaviour)
 
EnumTransformBehaviour GetTransformBehaviour ()
 
AABox GetWorldBBox ()
 
TopoShape GetFinalShape (EnumLevelOfDetail lod)
 
TopoShape GetFinalShape ()
 
TopoShape GetFinalShape (PickedId pickedId, GTrsf trf, EnumLevelOfDetail lod)
 
TopoShape GetFinalShape (PickedId pickedId, GTrsf trf)
 
void SetTransform (GTrsf trf)
 
GTrsf GetTransform ()
 
GTrsf GetParentTransform ()
 
GTrsf GetLocalTransform ()
 
void SetLocalTransform (GTrsf trf)
 
DrawableElement CreateInstance (Document pDoc)
 
- Public 成员函数 继承自 EntityElement
long GetState ()
 
boolean SetState (long val)
 
ObjectId GetParentId ()
 
boolean SetParentId (ObjectId val)
 
ObjectId GetDbViewId ()
 
boolean SetDbViewId (ObjectId val)
 
ObjectId GetMaterialId ()
 
boolean SetMaterialId (ObjectId val)
 
Vector3 GetColor ()
 
boolean SetColor (Vector3 val)
 
ObjectId GetLineStyleId ()
 
boolean SetLineStyleId (ObjectId val)
 
ObjectId GetTextStyleId ()
 
boolean SetTextStyleId (ObjectId val)
 
void SetVisible (boolean bVisible)
 
boolean GetVisible ()
 
void SetProvisional (boolean enabled)
 
boolean GetProvisional ()
 
void SetPickable (boolean bPickable)
 
boolean GetPickable ()
 
void SetLocked (boolean locked)
 
boolean GetLocked ()
 
void SetSectionable (boolean bSectionable)
 
boolean GetSectionable ()
 
void SetBrowserable (boolean browserable)
 
boolean GetBrowserable ()
 
void SetEditable (boolean editable)
 
boolean GetEditable ()
 
void SetLODEnabled (boolean enabled)
 
boolean GetLODEnabled ()
 
void SetShadowing (boolean enabled)
 
boolean GetShadowing ()
 
void SetManaged (boolean enabled)
 
boolean GetManaged ()
 
void SetDynamic (boolean enabled)
 
boolean GetDynamic ()
 
void ClearColor ()
 
Component GetComponent (String className)
 
Component FindComponent (String className, String name)
 
void CollectChildren (ReferenceCollector collector)
 
void CollectPickedId (PickedIdCollector collector)
 
ObjectId GetUsedMaterialId ()
 
ObjectId GetUsedLineStyleId ()
 
ObjectId GetUsedTextStyleId ()
 
boolean Execute (String action, ParameterDict pParams)
 
int CloneComponents (EntityElement pEntity)
 
void ListParameters (ParameterDict parameters)
 
boolean SetParameter (ParameterDict parameters, String key)
 
- Public 成员函数 继承自 Element
long GetUserId ()
 
boolean SetUserId (long val)
 
String GetName ()
 
boolean SetName (String val)
 
String GetSchemaName ()
 
boolean SetSchemaName (String val)
 
long GetUserFlags ()
 
void SetUserFlags (long val)
 
ObjectId GetId ()
 
String GetAliasName ()
 
boolean SetAliasName (String val)
 
ObjectId GetSourceId ()
 
boolean SetSourceId (ObjectId val)
 
String GetCategory ()
 
boolean SetCategory (String val)
 
Document GetDocument ()
 
void MakeUniqueName (String base)
 
void MakeUniqueNameByBase (String base)
 
void MakeUniqueName ()
 
void MakeUniqueNameByConfig ()
 
void RequestUpdate (EnumUpdateElementFlag mode)
 
void RequestUpdate ()
 
String GetModifyCommand ()
 
- Public 成员函数 继承自 AObject
boolean IsEqual (AObject other)
 

静态 Public 成员函数

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

静态 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()
 

详细描述

<>
可绘制对象的基类.

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

成员函数说明

◆ Cast()

static DrawableElement DrawableElement.Cast ( AObject obj)
static

重载 EntityElement .

◆ Create()

static DrawableElement DrawableElement.Create ( Document pDoc)
static

重载 EntityElement .

◆ CreateInstance()

DrawableElement DrawableElement.CreateInstance ( Document pDoc)

创建实例。

参数
pDoc文档
返回
实例对象

InstanceElement , 以及 PartElement 重载.

◆ GetClassId()

◆ GetCropable()

boolean DrawableElement.GetCropable ( )

是否可被裁剪

返回
true 可被裁剪

◆ GetFinalShape() [1/2]

TopoShape DrawableElement.GetFinalShape ( )

获取几何对象,可能为空

返回
TopoShape

◆ GetFinalShape() [2/2]

TopoShape DrawableElement.GetFinalShape ( EnumLevelOfDetail lod)

获取几何对象,可能为空

返回
TopoShape

◆ GetLocalTransform()

GTrsf DrawableElement.GetLocalTransform ( )

获取局部变换

返回
变换

PointElement , 以及 TextElement 重载.

◆ GetParentTransform()

GTrsf DrawableElement.GetParentTransform ( )

获取父节点的矩阵变换

返回
变换

CoordinateSystemElement 重载.

◆ GetStaticClassId()

◆ GetTransform()

GTrsf DrawableElement.GetTransform ( )

获取全局矩阵变换

返回
变换

◆ GetWorldBBox()

AABox DrawableElement.GetWorldBBox ( )

获取全局的包围盒

◆ SetCropable()

void DrawableElement.SetCropable ( boolean enabled)

是否被视图裁剪框裁剪。默认可被裁剪

参数
enabledtrue则可以被裁剪

◆ SetLocalTransform()

void DrawableElement.SetLocalTransform ( GTrsf trf)

设置局部变换

参数
trf变换

AxPointElement, PointElement , 以及 TextElement 重载.

◆ SetTransform()

void DrawableElement.SetTransform ( GTrsf trf)

设置全局矩阵变换

参数
trf变换

◆ SetTransformBehaviour()

void DrawableElement.SetTransformBehaviour ( EnumTransformBehaviour behaviour)

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