Scene Editor Widget
The Scene Editor Widget is a control to add, remove, and modify the graphics of a scene.
Fig. 116 Scene editor widget.
Graphics list
The graphics list displays all the defined graphics in the current scene, each with a checkbox in front of it. This checkbox allows you to set whether to display this graphic. Above the chart list is a region selector that allows you to select the region of current scene. Below the list of graphics, there is a drop-down menu that allows you to add a new graphic. There is also a button that allows you to delete the selected graph.
API
- class cmlibs.widgets.sceneeditorwidget.SceneEditorWidget(parent=None)
- addGraphicsEntered(name)
Add a new chosen graphics type
- Parameters:
name – string
- deleteGraphicsClicked()
Delete the current graphics type
- getScene()
Get the scene currently in the editor
- graphicsListItemClicked(item)
Either changes visibility flag or selects current graphics
- setScene(scene)
Set the current scene in the editor
- Parameters:
scene – zinc.scene