AnyCAD Rapid SDK 2022
The Rapid CAD SDK
Public Member Functions | List of all members
SceneManager Class Reference

Public Member Functions

 SceneManager (long width, long height)
 
Camera GetCamera ()
 
SelectionManager GetSelection ()
 
void SetSelection (SelectionManager val)
 
AxisAlignedBox GetWorldBBox ()
 
AxisAlignedBox GetSceneBBox ()
 
Scene2D GetScene2D ()
 
CoordinateGridWidget GetCoodinateGrid ()
 
void SetCoodinateGrid (CoordinateGridWidget val)
 
Background GetBackground ()
 
void SetBackground (Background val)
 
long GetDisplayFilter ()
 
void SetDisplayFilter (long val)
 
long AddScene (Scene scene)
 
boolean RemoveScene (long sceneId)
 
Scene FindScene (long sceneId)
 
Scene GetScene ()
 
Scene GetTempScene ()
 
void ResetDisplayFilters ()
 
void AddDisplayFilter (EnumShapeFilter filter)
 
void ClearDisplayFilter (EnumShapeFilter filter)
 
boolean Select (long nodeId)
 
boolean Select (ElementId id)
 
boolean SelectSubShape (long nodeId, EnumShapeFilter type, long shapeIndex)
 
boolean SelectSubTopo (long nodeId, EnumShapeFilter type, long topoIdx)
 
boolean SelectSubShape (ElementId id, EnumShapeFilter type, long shapeIndex)
 
boolean SelectSubTopo (ElementId id, EnumShapeFilter type, long topoIdx)
 
void UpdateWorld (boolean forced)
 
void Clear ()
 

Detailed Description

<>
The container to manage the Scenes.

Member Function Documentation

◆ SelectSubShape() [1/2]

boolean SceneManager.SelectSubShape ( ElementId  id,
EnumShapeFilter  type,
long  shapeIndex 
)

Selet the sub shape by element id

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

◆ SelectSubShape() [2/2]

boolean SceneManager.SelectSubShape ( long  nodeId,
EnumShapeFilter  type,
long  shapeIndex 
)

Selet the sub shape by NodeId

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