9 |
Class that defines 3D glyphs. |
Class that defines 3D glyphs. |
10 |
""" |
""" |
11 |
|
|
12 |
def __init__(self, object, source): |
def __init__(self): |
13 |
""" |
""" |
14 |
Initialise the 3D glyph. |
Initialise the 3D glyph. |
15 |
|
""" |
16 |
|
|
17 |
|
self.__vtk_glyph3D = vtk.vtkGlyph3D() |
18 |
|
|
19 |
|
def _setupGlyph3D(self, object, source): |
20 |
|
""" |
21 |
|
Setup the 3D glyph. |
22 |
|
|
23 |
@type object: vtkDataSet, etc |
@type object: vtkDataSet, etc |
24 |
@param object: Input for the 3D glyph |
@param object: Input for the 3D glyph |
28 |
|
|
29 |
self.__object = object |
self.__object = object |
30 |
self.__source = source |
self.__source = source |
|
self.__vtk_glyph3D = vtk.vtkGlyph3D() |
|
|
|
|
|
self.__setupGlyph3D() |
|
|
|
|
|
def __setupGlyph3D(self): |
|
|
""" |
|
|
Setup the 3D glyph. |
|
|
""" |
|
31 |
|
|
32 |
self.__setInput() |
self.__setInput() |
33 |
self.__setSource() |
self.__setSource() |
138 |
|
|
139 |
return self.__vtk_glyph3D |
return self.__vtk_glyph3D |
140 |
|
|
141 |
def _getOutput(self): |
def _getGlyph3DOutput(self): |
142 |
""" |
""" |
143 |
Return the output of the 3D glyph. |
Return the output of the 3D glyph. |
144 |
|
|
157 |
Class that defines tensor glyphs. |
Class that defines tensor glyphs. |
158 |
""" |
""" |
159 |
|
|
160 |
def __init__(self, object, source): |
def __init__(self): |
161 |
""" |
""" |
162 |
Initialise the tensor glyph. |
Initialise the tensor glyph. |
163 |
|
""" |
164 |
|
|
165 |
|
self.__vtk_tensor_glyph = vtk.vtkTensorGlyph() |
166 |
|
|
167 |
|
def _setupTensorGlyph(self, object, source): |
168 |
|
""" |
169 |
|
Setup the tensor glyph. |
170 |
|
|
171 |
@type object: vtkDataSet, etc |
@type object: vtkDataSet, etc |
172 |
@param object: Input for the 3D glyph |
@param object: Input for the 3D glyph |
176 |
|
|
177 |
self.__object = object |
self.__object = object |
178 |
self.__source = source |
self.__source = source |
|
self.__vtk_tensor_glyph = vtk.vtkTensorGlyph() |
|
|
|
|
|
self.__setupTensorGlyph() |
|
|
|
|
|
def __setupTensorGlyph(self): |
|
|
""" |
|
|
Setup the tensor glyph. |
|
|
""" |
|
179 |
|
|
180 |
self.__setInput() |
self.__setInput() |
181 |
self.__setSource() |
self.__setSource() |
182 |
self.__vtk_tensor_glyph.ClampScalingOn() |
self.__vtk_tensor_glyph.ClampScalingOn() |
183 |
|
|
|
|
|
184 |
def __setInput(self): |
def __setInput(self): |
185 |
""" |
""" |
186 |
Set the input for the tensor glyph. |
Set the input for the tensor glyph. |
215 |
|
|
216 |
self.__vtk_tensor_glyph.SetMaxScaleFactor(max_scale_factor) |
self.__vtk_tensor_glyph.SetMaxScaleFactor(max_scale_factor) |
217 |
|
|
218 |
def _getOutput(self): |
def _getTensorGlyphOutput(self): |
219 |
""" |
""" |
220 |
Return the output of the tensor glyph. |
Return the output of the tensor glyph. |
221 |
|
|