AnyCAD Rapid API 2023
Help you to create a better world!
SelectionManager Class Reference

Public Member Functions

PickListener GetListener ()
 
void SetListener (PickListener val)
 
boolean GetDepthTest ()
 
void SetDepthTest (boolean enabled)
 
boolean GetHilighting ()
 
void SetHilighting (boolean val)
 
boolean GetAllowPickNull ()
 
void SetAllowPickNull (boolean val)
 
PickedItemSet GetSelection ()
 
PickedItemSet GetHilight ()
 
long GetPickFilter ()
 
void SetPickFilter (long val)
 
PickedItem GetPickedItem ()
 
boolean Select (Scene pScene, long nodeId)
 
boolean Select (SceneNode pNode)
 
boolean Select (Scene pScene, ElementId id)
 
boolean SelectSubShape (Scene pScene, long nodeId, EnumShapeFilter type, long shapeIndex)
 
boolean SelectSubTopo (Scene pScene, long nodeId, EnumShapeFilter type, long topoIdx)
 
boolean SelectSubShape (Scene pScene, ElementId id, EnumShapeFilter type, long shapeIndex)
 
boolean SelectSubTopo (Scene pScene, ElementId id, EnumShapeFilter type, long topoIdx)
 
void DeSelectById (long nodeId)
 
void DeSelect (PickedItem id)
 
void Clear ()
 
void ClearPickFilters ()
 
void ResetPickFilters ()
 
void AddPickFilter (EnumShapeFilter filter)
 
void ClearPickFilter (EnumShapeFilter filter)
 
void SetSelectionColor (Vector3 color)
 
void SetHilightingColor (Vector3 color)
 
void SetLineWidth (short width)
 
void SetPointSize (float size)
 

Detailed Description

Member Function Documentation

◆ SelectSubShape() [1/2]

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

Selet the sub shape by element id

Parameters
pScenethe scene
idthe Element id
typethe sub type.
shapeIndexthe index
Returns
true if picked successfully .

◆ SelectSubShape() [2/2]

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

Selet the sub shape by NodeId

Parameters
pScenethe scene
nodeIdthe Node UUID
typethe sub type
shapeIndexthe index
Returns
true if picked successfully.