AnyCAD Rapid API 2024
Help you to create a better world!
载入中...
搜索中...
未找到
ShapeElement类 参考
类 ShapeElement 继承关系图:
DrawableElement EntityElement Element AObject FeatureElement

Public 成员函数

ClassId GetClassId ()
 
TopoShape GetShape ()
 
boolean SetShape (TopoShape val)
 
double GetDeflection ()
 
boolean SetDeflection (double val)
 
boolean GetOptimized ()
 
boolean SetOptimized (boolean val)
 
boolean GetChildrenPickable ()
 
boolean SetChildrenPickable (boolean val)
 
void SetFaceColor (long faceId, ObjectId materialId)
 
void ClearFaceColor (long faceId)
 
void ClearFaceColors ()
 
void SetEdgeStyle (long idx, ObjectId styleId)
 
void ClearEdgeStyle (long idx)
 
void ClearEdgeStyles ()
 
- Public 成员函数 继承自 DrawableElement
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 ShapeElement Cast (AObject obj)
 
static ShapeElement Create (Document pDoc)
 

额外继承的成员函数

- 静态 Public 属性 继承自 DrawableElement
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()
 

详细描述

<>
用来管理几何对象。

  • SetDeflection 可以控制显示对象的离散精度。
  • SetOptimized 可以控制是否开启中小模型的优化模式,以提升显示效率。
  • SetChildrenPickable 可以控制是否允许选择点、线、面。

成员函数说明

◆ Cast()

static ShapeElement ShapeElement.Cast ( AObject obj)
static

重载 DrawableElement .

◆ ClearEdgeStyle()

void ShapeElement.ClearEdgeStyle ( long idx)

清除指定边的样式

◆ ClearEdgeStyles()

void ShapeElement.ClearEdgeStyles ( )

清除所边的颜色

◆ ClearFaceColor()

void ShapeElement.ClearFaceColor ( long faceId)

清除指定面的材质

参数
faceId面的ID

◆ ClearFaceColors()

void ShapeElement.ClearFaceColors ( )

清除所有的材质

◆ Create()

static ShapeElement ShapeElement.Create ( Document pDoc)
static

重载 DrawableElement .

◆ GetClassId()

ClassId ShapeElement.GetClassId ( )

获取对象的类型信息

返回
类信息

重载 DrawableElement .

FeatureElement 重载.

◆ GetStaticClassId()

static ClassId ShapeElement.GetStaticClassId ( )
static

获取类信息

返回

重载 DrawableElement .

FeatureElement 重载.

◆ SetEdgeStyle()

void ShapeElement.SetEdgeStyle ( long idx,
ObjectId styleId )

设置边样式

参数
idxEdgeID
styleId样式ID

◆ SetFaceColor()

void ShapeElement.SetFaceColor ( long faceId,
ObjectId materialId )

设置面的材质

参数
faceId面的ID
materialId材质ID