65 |
|
|
66 |
# ----- Map ----- |
# ----- Map ----- |
67 |
|
|
68 |
if(scalar != None): # True only if a scalar field was specified. |
#if(scalar != None): # True only if a scalar field was specified. |
69 |
data_collector._setActiveScalar(scalar) |
# data_collector._setActiveScalar(scalar) |
70 |
|
|
71 |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
72 |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
82 |
lookup_table._getLookupTable()) |
lookup_table._getLookupTable()) |
83 |
DataSetMapper._setScalarRange(self, data_collector._getScalarRange()) |
DataSetMapper._setScalarRange(self, data_collector._getScalarRange()) |
84 |
|
|
85 |
|
|
86 |
Actor3D.__init__(self, DataSetMapper._getDataSetMapper(self)) |
Actor3D.__init__(self, DataSetMapper._getDataSetMapper(self)) |
87 |
scene._addActor3D(viewport, Actor3D._getActor3D(self)) |
scene._addActor3D(viewport, Actor3D._getActor3D(self)) |
88 |
|
|
150 |
|
|
151 |
# ----- Map on a plane ----- |
# ----- Map on a plane ----- |
152 |
|
|
153 |
if(scalar != None): |
#if(scalar != None): |
154 |
data_collector._setActiveScalar(scalar) |
# data_collector._setActiveScalar(scalar) |
155 |
|
|
156 |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
157 |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
186 |
# to allow access to their public methods from the driver. |
# to allow access to their public methods from the driver. |
187 |
class MapOnPlaneClip(DataSetMapper, Actor3D, Transform, Plane, Clipper): |
class MapOnPlaneClip(DataSetMapper, Actor3D, Transform, Plane, Clipper): |
188 |
""" |
""" |
189 |
Class that show a scalar field on a clipped plane. |
Class that show a scalar field on a clipped plane. |
190 |
""" |
""" |
191 |
|
|
192 |
# 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. |
238 |
|
|
239 |
# ----- Map on a clipped plane ----- |
# ----- Map on a clipped plane ----- |
240 |
|
|
241 |
if(scalar != None): |
#if(scalar != None): |
242 |
data_collector._setActiveScalar(scalar) |
# data_collector._setActiveScalar(scalar) |
243 |
|
|
244 |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
245 |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
326 |
|
|
327 |
# ----- Map clipped using a scalar value ----- |
# ----- Map clipped using a scalar value ----- |
328 |
|
|
329 |
if(scalar != None): |
#if(scalar != None): |
330 |
data_collector._setActiveScalar(scalar) |
# data_collector._setActiveScalar(scalar) |
331 |
|
|
332 |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
# NOTE: Lookup table color mapping (color or grey scale) MUST be set |
333 |
# before DataSetMapper. If it is done after DataSetMapper, no effect |
# before DataSetMapper. If it is done after DataSetMapper, no effect |