1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
|
### this is extracted from vtk-9.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
### downloaded from https://files.pythonhosted.org/packages/3e/9a/17fd65461249f7983de1555988fb5f1bef13515831dc72d4a1dbdd70df3b/vtk-9.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
### in order to generated documentation on readthedocs
r"""
Currently, this package is experimental and may change in the future.
"""
from __future__ import absolute_import
import sys
def _windows_dll_path():
import os
_vtk_python_path = './vtkmodules'
_vtk_dll_path = 'bin'
# Compute the DLL path based on the location of the file and traversing up
# the installation prefix to append the DLL path.
_vtk_dll_directory = os.path.dirname(os.path.abspath(__file__))
# Loop while we have components to remove.
while _vtk_python_path not in ('', '.', '/'):
# Strip a directory away.
_vtk_python_path = os.path.dirname(_vtk_python_path)
_vtk_dll_directory = os.path.dirname(_vtk_dll_directory)
_vtk_dll_directory = os.path.join(_vtk_dll_directory, _vtk_dll_path)
if os.path.exists(_vtk_dll_directory):
# We never remove this path; it is required for VTK to work and there's
# no scope where we can easily remove the directory again.
_ = os.add_dll_directory(_vtk_dll_directory)
# Build tree support.
try:
from . import _build_paths
# Add any paths needed for the build tree.
for path in _build_paths.paths:
if os.path.exists(path):
_ = os.add_dll_directory(path)
except ImportError:
# Relocatable install tree (or non-Windows).
pass
# CPython 3.8 added behaviors which modified the DLL search path on Windows to
# only search "blessed" paths. When importing SMTK, ensure that SMTK's DLLs are
# in this set of "blessed" paths.
if sys.version_info >= (3, 8) and sys.platform == 'win32':
_windows_dll_path()
#------------------------------------------------------------------------------
# this little trick is for static builds of VTK. In such builds, if
# the user imports this Python package in a non-statically linked Python
# interpreter i.e. not of the of the VTK-python executables, then we import the
# static components importer module.
def _load_vtkmodules_static():
if 'vtkmodules_vtkCommonCore' not in sys.builtin_module_names:
import _vtkmodules_static
#_load_vtkmodules_static()
#------------------------------------------------------------------------------
# list the contents
__all__ = [
'vtkCommonCore',
'vtkWebCore',
'vtkCommonMath',
'vtkCommonTransforms',
'vtkCommonDataModel',
'vtkCommonExecutionModel',
'vtkIOCore',
'vtkImagingCore',
'vtkIOImage',
'vtkIOXMLParser',
'vtkIOXML',
'vtkCommonMisc',
'vtkFiltersCore',
'vtkRenderingCore',
'vtkRenderingContext2D',
'vtkRenderingFreeType',
'vtkRenderingSceneGraph',
'vtkRenderingVtkJS',
'vtkIOExport',
'vtkWebGLExporter',
'vtkInteractionStyle',
'vtkFiltersGeneral',
'vtkFiltersSources',
'vtkInteractionWidgets',
'vtkViewsCore',
'vtkViewsInfovis',
'vtkCommonComputationalGeometry',
'vtkCommonSystem',
'vtkIOLegacy',
'vtkDomainsChemistry',
'vtkRenderingHyperTreeGrid',
'vtkRenderingUI',
'vtkRenderingOpenGL2',
'vtkRenderingContextOpenGL2',
'vtkRenderingVolume',
'vtkImagingMath',
'vtkRenderingVolumeOpenGL2',
'vtkViewsContext2D',
'vtkTestingRendering',
'vtkRenderingVolumeAMR',
'vtkPythonContext2D',
'vtkRenderingParallel',
'vtkRenderingVR',
'vtkRenderingMatplotlib',
'vtkRenderingLabel',
'vtkRenderingLOD',
'vtkRenderingLICOpenGL2',
'vtkRenderingImage',
'vtkRenderingExternal',
'vtkIOXdmf2',
'vtkIOVeraOut',
'vtkIOVPIC',
'vtkIOTecplotTable',
'vtkIOTRUCHAS',
'vtkIOSegY',
'vtkIOParallelXML',
'vtkIOLSDyna',
'vtkIOParallelLSDyna',
'vtkIOExodus',
'vtkIOParallelExodus',
'vtkIOPLY',
'vtkIOPIO',
'vtkIOMovie',
'vtkIOOggTheora',
'vtkIOOMF',
'vtkIONetCDF',
'vtkIOMotionFX',
'vtkIOGeometry',
'vtkIOParallel',
'vtkIOMINC',
'vtkIOInfovis',
'vtkIOImport',
'vtkParallelCore',
'vtkIOIOSS',
'vtkIOH5part',
'vtkIOH5Rage',
'vtkIOGeoJSON',
'vtkIOVideo',
'vtkIOExportPDF',
'vtkRenderingGL2PSOpenGL2',
'vtkIOExportGL2PS',
'vtkIOEnSight',
'vtkIOCityGML',
'vtkIOChemistry',
'vtkIOCesium3DTiles',
'vtkIOCONVERGECFD',
'vtkIOHDF',
'vtkIOCGNSReader',
'vtkIOAsynchronous',
'vtkIOAMR',
'vtkInteractionImage',
'vtkImagingStencil',
'vtkImagingStatistics',
'vtkImagingGeneral',
'vtkImagingOpenGL2',
'vtkImagingMorphological',
'vtkImagingFourier',
'vtkIOSQL',
'vtkCommonColor',
'vtkImagingSources',
'vtkInfovisCore',
'vtkGeovisCore',
'vtkInfovisLayout',
'vtkRenderingAnnotation',
'vtkImagingHybrid',
'vtkImagingColor',
'vtkFiltersTopology',
'vtkFiltersSelection',
'vtkFiltersSMP',
'vtkFiltersPython',
'vtkFiltersProgrammable',
'vtkFiltersModeling',
'vtkFiltersPoints',
'vtkFiltersVerdict',
'vtkFiltersStatistics',
'vtkFiltersParallelStatistics',
'vtkFiltersImaging',
'vtkFiltersExtraction',
'vtkFiltersGeometry',
'vtkFiltersHybrid',
'vtkFiltersTexture',
'vtkFiltersParallel',
'vtkFiltersParallelImaging',
'vtkFiltersParallelDIY2',
'vtkFiltersGeneric',
'vtkFiltersFlowPaths',
'vtkFiltersAMR',
'vtkDomainsChemistryOpenGL2',
'vtkFiltersHyperTree',
'vtkCommonPython',
'vtkChartsCore',
'vtkAcceleratorsVTKmCore',
'vtkAcceleratorsVTKmDataModel',
'vtkAcceleratorsVTKmFilters',
'all',
'gtk',
'numpy_interface',
'qt',
'test',
'tk',
'util',
'wx',
]
#------------------------------------------------------------------------------
# get the version
__version__ = "9.2.6"
|