210 |
|
|
211 |
if(cell_to_point == True): # Converts cell data to point data. |
if(cell_to_point == True): # Converts cell data to point data. |
212 |
c2p = CellDataToPointData(data_collector._getOutput()) |
c2p = CellDataToPointData(data_collector._getOutput()) |
213 |
Cutter.__init__(self, c2p._getOutput(), |
Cutter.__init__(self, c2p._getOutput(), Plane._getPlane(self)) |
|
Plane._getPlane(self)) |
|
214 |
elif(cell_to_point == False): # No conversion happens. |
elif(cell_to_point == False): # No conversion happens. |
215 |
Cutter.__init__(self, data_collector._getOutput(), |
Cutter.__init__(self, data_collector._getOutput(), |
216 |
Plane._getPlane(self)) |
Plane._getPlane(self)) |
332 |
|
|
333 |
if(cell_to_point == True): # Converts cell data to point data. |
if(cell_to_point == True): # Converts cell data to point data. |
334 |
c2p = CellDataToPointData(data_collector._getOutput()) |
c2p = CellDataToPointData(data_collector._getOutput()) |
335 |
MaskPoints.__init__(self, c2p._getOutput()) |
#MaskPoints.__init__(self, c2p._getOutput()) |
336 |
|
Clipper.__init__(self, c2p._getOutput(), |
337 |
|
Plane._getPlane(self)) |
338 |
|
Clipper._setClipFunction(self) |
339 |
elif(cell_to_point == False): # No conversion happens. |
elif(cell_to_point == False): # No conversion happens. |
340 |
MaskPoints.__init__(self, data_collector._getOutput()) |
#MaskPoints.__init__(self, data_collector._getOutput()) |
341 |
|
Clipper.__init__(self, data_collector._getOutput(), |
342 |
|
Plane._getPlane(self)) |
343 |
|
Clipper._setClipFunction(self) |
344 |
|
|
345 |
|
MaskPoints.__init__(self, Clipper._getOutput(self)) |
346 |
|
|
347 |
# NOTE: Glyph3D must come before Clipper. Otherwise, the output will |
# NOTE: Glyph3D must come before Clipper. Otherwise, the output will |
348 |
# be incorrect. |
# be incorrect. |
357 |
|
|
358 |
# NOTE: Clipper must come after Glyph3D. Otherwise, the output will |
# NOTE: Clipper must come after Glyph3D. Otherwise, the output will |
359 |
# be incorrect. |
# be incorrect. |
360 |
Clipper.__init__(self, Glyph3D._getOutput(self), |
#Clipper.__init__(self, Glyph3D._getOutput(self), |
361 |
Plane._getPlane(self)) |
# Plane._getPlane(self)) |
362 |
Clipper._setClipFunction(self) |
#Clipper._setClipFunction(self) |
363 |
|
|
364 |
DataSetMapper.__init__(self, Clipper._getOutput(self), |
#DataSetMapper.__init__(self, Clipper._getOutput(self), |
365 |
|
DataSetMapper.__init__(self, Glyph3D._getOutput(self), |
366 |
lookup_table._getLookupTable()) |
lookup_table._getLookupTable()) |
367 |
|
|
368 |
if(color_mode == ColorMode.VECTOR): # Color velocity by vector. |
if(color_mode == ColorMode.VECTOR): # Color velocity by vector. |