sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL) # Load all required kits. from vtkESQuiCommonPython import * from vtkESQuiBioMechanicsPython import * from vtkESQuiCollisionDetectionPython import * from vtkESQuiScenarioPython import * from vtkESQuiSimulationPython import * from vtkESQuiInteractionPython import * from vtkESQuiIOPython import * # the vtk.kits variable tells us which kits we actually have kits = ['common', 'biomechanics', 'collision', 'scenario', 'simulation', 'interaction', 'io'] # Try to load optional kits. The helper function checks if the # ImportError is actually a link error. try: from vtkESQuiHapticsPython import * kits.append('haptics') except ImportError, exc: __helper.refine_import_err('haptics', 'vtkESQuiHapticsPython', exc) # reset the dlopen flags to the original state if possible. if dl and (os.name == 'posix') and orig_dlopen_flags: sys.setdlopenflags(orig_dlopen_flags) # removing things the user shouldn't have to see. del __helper, orig_dlopen_flags del sys, dl, os
from filtering import * from io import * from imaging import * from graphics import * # the vtk.kits variable tells us which kits we actually have kits = ['common', 'filtering', 'io', 'imaging', 'graphics'] # Try to load optional kits. The helper function checks if the # ImportError is actually a link error. try: from genericfiltering import * kits.append('genericfiltering') except ImportError, exc: __helper.refine_import_err('genericfiltering', 'vtkGenericFilteringPython', exc) try: from rendering import * kits.append('rendering') except ImportError, exc: __helper.refine_import_err('rendering', 'vtkRenderingPython', exc) try: from volumerendering import * kits.append('volumerendering') except ImportError, exc: __helper.refine_import_err('volumerendering', 'vtkVolumeRenderingPython', exc) try: from hybrid import *
from vtkFilteringPython import * from vtkIOPython import * from vtkImagingPython import * from vtkGraphicsPython import * # the vtk.kits variable tells us which kits we actually have kits = ['common', 'filtering', 'io', 'imaging', 'graphics'] # Try to load optional kits. The helper function checks if the # ImportError is actually a link error. try: from vtkGenericFilteringPython import * kits.append('genericfiltering') except ImportError, exc: __helper.refine_import_err('genericfiltering', 'vtkGenericFilteringPython', exc) try: from vtkRenderingPython import * kits.append('rendering') except ImportError, exc: __helper.refine_import_err('rendering', 'vtkRenderingPython', exc) try: from vtkVolumeRenderingPython import * kits.append('volumerendering') except ImportError, exc: __helper.refine_import_err('volumerendering', 'vtkVolumeRenderingPython', exc) try: from vtkHybridPython import *