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

mayavi.core.ui.api.DecoratedScene

pyface.base_toolkit.Toolkit.__call__.<locals>.Unimplemented 的别名

class mayavi.core.ui.api.MayaviScene(*args, **kwargs)

基类:pyface.base_toolkit.Unimplemented

A 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

mayavi.core.ui.api.SceneEditor

pyface.base_toolkit.Toolkit.__call__.<locals>.Unimplemented 的别名

MlabSceneModel

class mayavi.core.ui.api.MlabSceneModel(parent=None, **traits)

基类:tvtk.pyface.scene_model.SceneModel

An 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)

基类:traits.has_traits.HasTraits

A 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)

基类:mayavi.core.ui.engine_view.EngineView

A 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.