AnyCAD Rapid API 2024
Help you to create a better world!
载入中...
搜索中...
未找到
SelectionManager类 参考

Public 成员函数

boolean GetDepthTest ()
 
void SetDepthTest (boolean val)
 
boolean GetHilighting ()
 
void SetHilighting (boolean val)
 
boolean GetAllowPickNull ()
 
void SetAllowPickNull (boolean val)
 
boolean GetMultiPick ()
 
void SetMultiPick (boolean val)
 
PickedItemSet GetSelection ()
 
PickedItemSet GetHilight ()
 
PickedItemSet GetOverride ()
 
long GetPickFilter ()
 
void SetPickFilter (long val)
 
void AddListener (PickListener listener)
 
void RemoveListener (PickListener listener)
 
PickedItem GetPickedItem ()
 
PickedItem GetHilightedItem ()
 
PickedIdList GetSelectedIds ()
 
void Select (PickedItem id, boolean multiPick, int x, int y)
 
boolean Select (Scene pScene, long nodeId)
 
boolean Select (SceneNode pNode)
 
boolean Select (Scene pScene, ObjectId id)
 
boolean Select (Scene pScene, PickedId id)
 
boolean Select (Scene pScene, ObjectIdList ids)
 
boolean SelectSubShape (Scene pScene, long nodeId, EnumShapeFilter type, long shapeIndex, IntersectPoint pPoint)
 
boolean SelectSubShape (Scene pScene, long nodeId, EnumShapeFilter type, long shapeIndex)
 
boolean SelectSubTopo (Scene pScene, long nodeId, EnumShapeFilter type, long topoIdx, IntersectPoint pPoint)
 
boolean SelectSubTopo (Scene pScene, long nodeId, EnumShapeFilter type, long topoIdx)
 
boolean SelectSubShape (Scene pScene, ObjectId id, EnumShapeFilter type, long shapeIndex, IntersectPoint pPoint)
 
boolean SelectSubShape (Scene pScene, ObjectId id, EnumShapeFilter type, long shapeIndex)
 
boolean SelectSubTopo (Scene pScene, PickedId id, EnumShapeFilter type, long topoIdx, IntersectPoint pPoint)
 
boolean SelectSubTopo (Scene pScene, PickedId id, EnumShapeFilter type, long topoIdx)
 
boolean OverrideSubTopo (Scene pScene, PickedId id, EnumShapeFilter type, long topoIdx)
 
boolean OverrideSubTopo (Scene pScene, PickedItem item)
 
void RemoveOverride (PickedId id, EnumShapeFilter type, long topoIdx)
 
void DeSelectById (long nodeId)
 
void DeSelect (PickedItem id)
 
void Clear (boolean bNotify)
 
void Clear ()
 
void ClearOverride ()
 
void ClearPickFilters ()
 
void ResetPickFilters ()
 
void AddPickFilter (EnumShapeFilter filter)
 
void ClearPickFilter (EnumShapeFilter filter)
 
void SetSelectionColor (Vector3 color)
 
Vector3 GetSelectionColor ()
 
void SetHilightingColor (Vector3 color)
 
Vector3 GetHilightingColor ()
 
void SetOverrideColor (Vector3 color)
 
Vector3 GetOverrideColor ()
 
void SetLineWidth (short width)
 
short GetLineWidth ()
 
void SetPointSize (float size)
 
float GetPointSize ()
 
void SetPointStyle (EnumPointStyle style)
 
boolean Hilight (PickedItem id, int x, int y)
 
boolean IsSelected (PickedItem id)
 
boolean IsHilighted (PickedItem id)
 
AABox GetSelectionBBox ()
 

详细描述

<> 选择集管理器

成员函数说明

◆ Clear() [1/2]

void SelectionManager.Clear ( )

清空选择集合

◆ Clear() [2/2]

void SelectionManager.Clear ( boolean bNotify)

清空选择集合

参数
bNotify是否触发消息通知

◆ GetHilightedItem()

PickedItem SelectionManager.GetHilightedItem ( )

获取高亮的对象,可能为空

◆ GetPickedItem()

PickedItem SelectionManager.GetPickedItem ( )

获取选择的对象,可能为空

◆ GetSelectedIds()

PickedIdList SelectionManager.GetSelectedIds ( )

获取选择的对象ID

返回
ID列表

◆ OverrideSubTopo()

boolean SelectionManager.OverrideSubTopo ( Scene pScene,
PickedId id,
EnumShapeFilter type,
long topoIdx )

设置指定的拓扑元素为重写颜色

参数
pScene场景
id对象ID
type类型
topoIdx索引
返回
是否成功

◆ Select() [1/5]

void SelectionManager.Select ( PickedItem id,
boolean multiPick,
int x,
int y )

选择

参数
id对象ID
multiPick是否多选
x鼠标位置X
y鼠标位置Y

◆ Select() [2/5]

boolean SelectionManager.Select ( Scene pScene,
long nodeId )

根据Node的Uuid属性选择

参数
pScene场景
nodeIdUuid
返回
是否成功

◆ Select() [3/5]

boolean SelectionManager.Select ( Scene pScene,
ObjectId id )

根据ID来选择

参数
pScene主场景
id对象ID
返回
是否成功

◆ Select() [4/5]

boolean SelectionManager.Select ( Scene pScene,
ObjectIdList ids )

更加对象ID选择多个对象

参数
pScene场景
ids对象列表
返回
是否成功

◆ Select() [5/5]

boolean SelectionManager.Select ( SceneNode pNode)

根据Node来选择

参数
pNodeNode对象
返回
是否成功

◆ SelectSubShape() [1/4]

boolean SelectionManager.SelectSubShape ( Scene pScene,
long nodeId,
EnumShapeFilter type,
long shapeIndex )

Selet the sub shape by NodeId

参数
pScenethe scene
nodeIdthe Node UUID
typethe sub type
shapeIndexthe index
返回
true if picked successfully.

◆ SelectSubShape() [2/4]

boolean SelectionManager.SelectSubShape ( Scene pScene,
long nodeId,
EnumShapeFilter type,
long shapeIndex,
IntersectPoint pPoint )

Selet the sub shape by NodeId

参数
pScenethe scene
nodeIdthe Node UUID
typethe sub type
shapeIndexthe index
返回
true if picked successfully.

◆ SelectSubShape() [3/4]

boolean SelectionManager.SelectSubShape ( Scene pScene,
ObjectId id,
EnumShapeFilter type,
long shapeIndex )

Selet the sub shape by element id

参数
pScenethe scene
idthe Element id
typethe sub type.
shapeIndexthe index
返回
true if picked successfully .

◆ SelectSubShape() [4/4]

boolean SelectionManager.SelectSubShape ( Scene pScene,
ObjectId id,
EnumShapeFilter type,
long shapeIndex,
IntersectPoint pPoint )

Selet the sub shape by element id

参数
pScenethe scene
idthe Element id
typethe sub type.
shapeIndexthe index
返回
true if picked successfully .

◆ SetHilightingColor()

void SelectionManager.SetHilightingColor ( Vector3 color)

设置Hover高亮的颜色

参数
color颜色

◆ SetLineWidth()

void SelectionManager.SetLineWidth ( short width)

设置选择线宽

参数
width

◆ SetOverrideColor()

void SelectionManager.SetOverrideColor ( Vector3 color)

设置Override高亮的颜色

参数
color颜色

◆ SetPointSize()

void SelectionManager.SetPointSize ( float size)

设置点的大小

参数
size大小

◆ SetSelectionColor()

void SelectionManager.SetSelectionColor ( Vector3 color)

设置选择的颜色

参数
color颜色