26 |
# If no vector field is specified, the first encountered in the file will |
# If no vector field is specified, the first encountered in the file will |
27 |
# be loaded automatically. If no lut is specified, the color scheme will |
# be loaded automatically. If no lut is specified, the color scheme will |
28 |
# be used. |
# be used. |
29 |
def __init__(self, scene, data_collector, vector = None, |
def __init__(self, scene, data_collector, vector = None, scalar = None, |
30 |
arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR, |
arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR, |
31 |
viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True): |
viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True): |
32 |
|
|
38 |
@param data_collector: Deal with source of data for visualisation |
@param data_collector: Deal with source of data for visualisation |
39 |
@type vector: String |
@type vector: String |
40 |
@param vector: Vector field to load from the source file |
@param vector: Vector field to load from the source file |
41 |
|
@type scalar: String |
42 |
|
@param scalar: Scalar field to load from the source file |
43 |
@type arrow: L{Arrow <constant.Arrow>} constant |
@type arrow: L{Arrow <constant.Arrow>} constant |
44 |
@param arrow: Type of arrow (two dimensional or three dimensional) |
@param arrow: Type of arrow (two dimensional or three dimensional) |
45 |
@type color_mode: L{ColorMode <constant.ColorMode>} constant |
@type color_mode: L{ColorMode <constant.ColorMode>} constant |
79 |
|
|
80 |
if(vector != None): |
if(vector != None): |
81 |
data_collector._setActiveVector(vector) |
data_collector._setActiveVector(vector) |
82 |
|
elif(scalar != None): |
83 |
|
data_collector._setActiveScalar(scalar) |
84 |
|
|
85 |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
86 |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
148 |
# If no vector field is specified, the first encountered in the file will |
# If no vector field is specified, the first encountered in the file will |
149 |
# be loaded automatically. If no lut is specified, the color scheme will |
# be loaded automatically. If no lut is specified, the color scheme will |
150 |
# be used. |
# be used. |
151 |
def __init__(self, scene, data_collector, vector = None, |
def __init__(self, scene, data_collector, vector = None, scalar = None, |
152 |
arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR, |
arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR, |
153 |
viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True): |
viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True): |
154 |
""" |
""" |
159 |
@param data_collector: Deal with source of data for visualisation |
@param data_collector: Deal with source of data for visualisation |
160 |
@type vector: String |
@type vector: String |
161 |
@param vector: Vector field to load from the source file |
@param vector: Vector field to load from the source file |
162 |
|
@type scalar: String |
163 |
|
@param scalar: Scalar field to load from the source file |
164 |
@type arrow: L{Arrow <constant.Arrow>} constant |
@type arrow: L{Arrow <constant.Arrow>} constant |
165 |
@param arrow: Type of arrow (two dimensional or three dimensional) |
@param arrow: Type of arrow (two dimensional or three dimensional) |
166 |
@type color_mode: L{ColorMode <constant.ColorMode>} constant |
@type color_mode: L{ColorMode <constant.ColorMode>} constant |
200 |
|
|
201 |
if(vector != None): |
if(vector != None): |
202 |
data_collector._setActiveVector(vector) |
data_collector._setActiveVector(vector) |
203 |
|
elif(scalar != None): |
204 |
|
data_collector._setActiveScalar(scalar) |
205 |
|
|
206 |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
207 |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
267 |
# If no vector field is specified, the first encountered in the file will |
# If no vector field is specified, the first encountered in the file will |
268 |
# be loaded automatically. If no lut is specified, the color scheme will |
# be loaded automatically. If no lut is specified, the color scheme will |
269 |
# be used. |
# be used. |
270 |
def __init__(self, scene, data_collector, vector = None, |
def __init__(self, scene, data_collector, vector = None, scalar = None, |
271 |
arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR, |
arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR, |
272 |
viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True): |
viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True): |
273 |
""" |
""" |
278 |
@param data_collector: Deal with source of data for visualisation |
@param data_collector: Deal with source of data for visualisation |
279 |
@type vector: String |
@type vector: String |
280 |
@param vector: Vector field to load from the source file |
@param vector: Vector field to load from the source file |
281 |
|
@type scalar: String |
282 |
|
@param scalar: Scalar field to load from the source file |
283 |
@type arrow: L{Arrow <constant.Arrow>} constant |
@type arrow: L{Arrow <constant.Arrow>} constant |
284 |
@param arrow: Type of arrow (two dimensional or three dimensional) |
@param arrow: Type of arrow (two dimensional or three dimensional) |
285 |
@type color_mode: L{ColorMode <constant.ColorMode>} constant |
@type color_mode: L{ColorMode <constant.ColorMode>} constant |
319 |
|
|
320 |
if(vector != None): |
if(vector != None): |
321 |
data_collector._setActiveVector(vector) |
data_collector._setActiveVector(vector) |
322 |
|
elif(scalar != None): |
323 |
|
data_collector._setActiveScalar(scalar) |
324 |
|
|
325 |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
326 |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
# before DataSetMapper. If it is done after DataSetMapper, no effect |