18 |
|
|
19 |
# The SOUTH_WEST default viewport is used when there is only one viewport. |
# The SOUTH_WEST default viewport is used when there is only one viewport. |
20 |
# This saves the user from specifying the viewport when there is only one. |
# This saves the user from specifying the viewport when there is only one. |
21 |
# If no scalar field is specified, the first encountered in the file will |
# If no lut is specified, the color scheme will be used. |
22 |
# be loaded automatically. If no lut is specified, the color scheme will |
def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST, |
23 |
# be used. |
lut = Lut.COLOR, outline = True): |
|
def __init__(self, scene, data_collector, scalar = None, |
|
|
viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, |
|
|
outline = True): |
|
24 |
""" |
""" |
25 |
@type scene: L{Scene <scene.Scene>} object |
@type scene: L{Scene <scene.Scene>} object |
26 |
@param scene: Scene in which objects are to be rendered on |
@param scene: Scene in which objects are to be rendered on |
27 |
@type data_collector: L{DataCollector <datacollector.DataCollector>} |
@type data_collector: L{DataCollector <datacollector.DataCollector>} |
28 |
object |
object |
29 |
@param data_collector: Deal with source of data for visualisation |
@param data_collector: Deal with source of data for visualisation |
|
@type scalar: String |
|
|
@param scalar: Scalar field to load from the source file |
|
30 |
@type viewport: L{Viewport <constant.Viewport>} constant |
@type viewport: L{Viewport <constant.Viewport>} constant |
31 |
@param viewport: Viewport in which objects are to be rendered on |
@param viewport: Viewport in which objects are to be rendered on |
32 |
@type lut : L{Lut <constant.Lut>} constant |
@type lut : L{Lut <constant.Lut>} constant |
60 |
|
|
61 |
# ----- Map ----- |
# ----- Map ----- |
62 |
|
|
|
#if(scalar != None): # True only if a scalar field was specified. |
|
|
# data_collector._setActiveScalar(scalar) |
|
|
|
|
63 |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
64 |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
65 |
# will take place. |
# will take place. |
95 |
|
|
96 |
# The SOUTH_WEST default viewport is used when there is only one viewport. |
# The SOUTH_WEST default viewport is used when there is only one viewport. |
97 |
# This saves the user from specifying the viewport when there is only one. |
# This saves the user from specifying the viewport when there is only one. |
98 |
# If no scalar field is specified, the first encountered in the file will |
# If no lut is specified, the color scheme will be used. |
99 |
# be loaded automatically. If no lut is specified, the color scheme will |
def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST, |
100 |
# be used. |
lut = Lut.COLOR, outline = True): |
|
def __init__(self, scene, data_collector, scalar = None, |
|
|
viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True): |
|
|
|
|
101 |
""" |
""" |
102 |
@type scene: L{Scene <scene.Scene>} object |
@type scene: L{Scene <scene.Scene>} object |
103 |
@param scene: Scene in which objects are to be rendered on |
@param scene: Scene in which objects are to be rendered on |
104 |
@type data_collector: L{DataCollector <datacollector.DataCollector>} |
@type data_collector: L{DataCollector <datacollector.DataCollector>} |
105 |
object |
object |
106 |
@param data_collector: Deal with source of data for visualisation |
@param data_collector: Deal with source of data for visualisation |
|
@type scalar: String |
|
|
@param scalar: Scalar field to load from the source file |
|
107 |
@type viewport: L{Viewport <constant.Viewport>} constant |
@type viewport: L{Viewport <constant.Viewport>} constant |
108 |
@param viewport: Viewport in which objects are to be rendered on |
@param viewport: Viewport in which objects are to be rendered on |
109 |
@type lut : L{Lut <constant.Lut>} constant |
@type lut : L{Lut <constant.Lut>} constant |
137 |
|
|
138 |
# ----- Map on a plane ----- |
# ----- Map on a plane ----- |
139 |
|
|
|
#if(scalar != None): |
|
|
# data_collector._setActiveScalar(scalar) |
|
|
|
|
140 |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
141 |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
142 |
# will take place. |
# will take place. |
175 |
|
|
176 |
# The SOUTH_WEST default viewport is used when there is only one viewport. |
# The SOUTH_WEST default viewport is used when there is only one viewport. |
177 |
# This saves the user from specifying the viewport when there is only one. |
# This saves the user from specifying the viewport when there is only one. |
178 |
# If no scalar field is specified, the first encountered in the file will |
# If no lut is specified, the color scheme will be used. |
179 |
# be loaded automatically. If no lut is specified, the color scheme will |
def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST, |
180 |
# be used. |
lut = Lut.COLOR, outline = True): |
|
def __init__(self, scene, data_collector, scalar = None, |
|
|
viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True): |
|
|
|
|
181 |
""" |
""" |
182 |
@type scene: L{Scene <scene.Scene>} object |
@type scene: L{Scene <scene.Scene>} object |
183 |
@param scene: Scene in which objects are to be rendered on |
@param scene: Scene in which objects are to be rendered on |
184 |
@type data_collector: L{DataCollector <datacollector.DataCollector>} |
@type data_collector: L{DataCollector <datacollector.DataCollector>} |
185 |
object |
object |
186 |
@param data_collector: Deal with source of data for visualisation |
@param data_collector: Deal with source of data for visualisation |
|
@type scalar: String |
|
|
@param scalar: Scalar field to load from the source file |
|
187 |
@type viewport: L{Viewport <constant.Viewport>} constant |
@type viewport: L{Viewport <constant.Viewport>} constant |
188 |
@param viewport: Viewport in which objects are to be rendered on |
@param viewport: Viewport in which objects are to be rendered on |
189 |
@type lut : L{Lut <constant.Lut>} constant |
@type lut : L{Lut <constant.Lut>} constant |
217 |
|
|
218 |
# ----- Map on a clipped plane ----- |
# ----- Map on a clipped plane ----- |
219 |
|
|
|
#if(scalar != None): |
|
|
# data_collector._setActiveScalar(scalar) |
|
|
|
|
220 |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
221 |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
222 |
# will take place. |
# will take place. |
254 |
|
|
255 |
# The SOUTH_WEST default viewport is used when there is only one viewport. |
# The SOUTH_WEST default viewport is used when there is only one viewport. |
256 |
# This saves the user from specifying the viewport when there is only one. |
# This saves the user from specifying the viewport when there is only one. |
257 |
# If no scalar field is specified, the first encountered in the file will |
# If no lut is specified, the color scheme will be used. |
|
# be loaded automatically. If no lut is specified, the color scheme will |
|
|
# be used. |
|
|
|
|
|
def __init__(self, scene, data_collector, scalar = None, |
|
|
viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True): |
|
258 |
|
|
259 |
|
def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST, |
260 |
|
lut = Lut.COLOR, outline = True): |
261 |
""" |
""" |
262 |
@type scene: L{Scene <scene.Scene>} object |
@type scene: L{Scene <scene.Scene>} object |
263 |
@param scene: Scene in which objects are to be rendered on |
@param scene: Scene in which objects are to be rendered on |
264 |
@type data_collector: L{DataCollector <datacollector.DataCollector>} |
@type data_collector: L{DataCollector <datacollector.DataCollector>} |
265 |
object |
object |
266 |
@param data_collector: Deal with source of data for visualisation |
@param data_collector: Deal with source of data for visualisation |
|
@type scalar: String |
|
|
@param scalar: Scalar field to load from the source file |
|
267 |
@type viewport: L{Viewport <constant.Viewport>} constant |
@type viewport: L{Viewport <constant.Viewport>} constant |
268 |
@param viewport: Viewport in which objects are to be rendered on |
@param viewport: Viewport in which objects are to be rendered on |
269 |
@type lut : L{Lut <constant.Lut>} constant |
@type lut : L{Lut <constant.Lut>} constant |
297 |
|
|
298 |
# ----- Map clipped using a scalar value ----- |
# ----- Map clipped using a scalar value ----- |
299 |
|
|
|
#if(scalar != None): |
|
|
# data_collector._setActiveScalar(scalar) |
|
|
|
|
300 |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
301 |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
302 |
# will take place. |
# will take place. |