Fundamental Interfaces
This section describes the interface methods for obtaining several basic objects, along with their descriptions. In subsequent sections, certain variables or parameters may directly reference the return values of the interfaces in the table below.
| API | Description | Remark |
|---|---|---|
let frame = sview0.getFrame() |
Obtains the SView Frame layer entry object | Through this object, you can access the UI Manager, Command Manager, etc. |
let commandManager = frame.getCommandsManager() |
Obtains the Command Manager | Commands are executed through the Command Manager. |
let uiManager = frame.getUIManager() |
Obtains the UI Manager | UI elements on the page are manipulated through the UIManager. |
let viewer = sview0.getViewer() |
Obtains the SView Base layer entry object | Through this object, you can access the animation player, etc. |
let scene = viewer.getScene() |
Obtains the Scene object | Underlying data can be accessed through the Scene object. |
let shapes = scene.getShapes() |
Obtains the Shape Manager | You can retrieve collections of objects of a specified type and perform operations such as adding and deleting on these collections. |
let visibles = scene.getVisiables() |
Obtains the Visibility Manager | Shape visibility can be toggled through this object. |
let selector = scene.getSelector() |
Obtains the Selector | Shapes can be selected and highlighted through this object. |