-
Notifications
You must be signed in to change notification settings - Fork 26
OmegaVtkPythonReference
Alessandro Febretti edited this page Jun 7, 2013
·
1 revision
**Last revision:** ver. 4.0 - 12 March 2012
*<wiki:toc max_depth="2" />
omegaVtk adds support for the visualization toolkit to omegalib
Attaches a vtk actor to an omegalib scene node
Detaches a vtk actor to an omegalib scene node
Adds a vtk light to the vtk scene. Light must be of vtkLight
type.
Removes a vtk light to the vtk scene. Light must be of vtkLight
type.
Removes all lights from the vtk scene.
Manages vtk rendering in omegalib
Method(s) | Description |
---|---|
createAndInitialize static
|
Creates and initializes the vtk support module. Call this before importing vtk and doing any vtk or omegalib operation. |
VtkModule
must be initialized BEFORE importing vtk. This is some typical initialization code for an omegalib/vtk app:
# Import omegalib modules
from omega import *
from omegaToolkit import *
from omegaVtk import *
# Initialize vtk module
vtkModule = VtkModule.createAndInitialize()
# Import vtk stuff
import vtk
# Omegalib / vtk code goes here...