Main view and UI objects¶
This is an API reference of the views for the main objects. The section Building applications using Mayavi gives some context on how to use them.
Scene UIs: DecoratedScene and MayaviScene¶
- class mayavi.core.ui.api.DecoratedScene(parent, **traits)¶
Bases:
SceneA VTK interactor scene which provides a convenient toolbar that allows the user to set the camera view, turn on the axes indicator etc.
- class mayavi.core.ui.api.MayaviScene(parent, **traits)¶
Bases:
DecoratedSceneA scene UI, similar to a decorated scene, but with more buttons.
- show_engine()¶
Open the engine view corresponding to the engine of the scene.
SceneEditor¶
- class mayavi.core.ui.api.SceneEditor(*args, **traits)¶
Bases:
BasicEditorFactoryA TraitsUI editor factory for SceneModel instances.
MlabSceneModel¶
- class mayavi.core.ui.api.MlabSceneModel(parent=None, **traits)¶
Bases:
SceneModelAn container for an mlab model, that can be exposed using a Mayavi scene in a TraitsUI view.
EngineView and EngineRichView¶
These are two objects to be used as views for an engine:
from mayavi.core.ui.api import EngineView
view = EngineView(engine=engine)
view.edit_traits()
- class mayavi.core.ui.api.EngineView(**traits)¶
Bases:
HasTraitsA view displaying the engine’s object tree.
- default_traits_view()¶
The default traits view of the Engine View.
- class mayavi.core.ui.api.EngineRichView(**traits)¶
Bases:
EngineViewA view displaying the engine’s object tree, alongside with a panel to edit the objects.
- default_traits_view()¶
The default traits view of the Engine View.