Package esys :: Package pyvisi :: Module map :: Class MapOnScalarClipWithRotation
[hide private]
[frames] | no frames]

Class MapOnScalarClipWithRotation

mapper.DataSetMapper --+
                       |
       actor.Actor3D --+
                       |
     clipper.Clipper --+
                       |
   rotation.Rotation --+
                       |
                      MapOnScalarClipWithRotation

This class works in a similar way to Map, except that it shows a 2D scalar field clipped using a scalar value and subsequently rotated around the z-axis to create a 3D looking effect. This class should only be used with 2D data sets and NOT 3D.

Instance Methods [hide private]
 
__init__(self, scene, data_collector, viewport=0, lut='color', cell_to_point=False)
Initialise the MapOnScalarClipWithRotation.
Boolean
_isModified(self)
Return whether the MapOnScalarClipWithRotation or DataCollector has been modified.
 
_render(self, scene)
Render the surface map clip using scalar data and subsequently rotated.

Inherited from mapper.DataSetMapper: setScalarRange

Inherited from actor.Actor3D: setColor, setOpacity, setRepresentationToWireframe

Inherited from clipper.Clipper: setClipValue, setInsideOutOff, setInsideOutOn

Inherited from rotation.Rotation: setAngle, setResolution

Method Details [hide private]

__init__(self, scene, data_collector, viewport=0, lut='color', cell_to_point=False)
(Constructor)

 

Initialise the MapOnScalarClipWithRotation.

Parameters:
  • scene (Scene object) - Scene in which objects are to be rendered on
  • data_collector (DataCollector object) - Deal with source of data for visualisation
  • viewport (Viewport constant) - Viewport in which objects are to be rendered on
  • lut (Lut constant) - Lookup table color scheme
  • cell_to_point (Boolean) - Converts cell data to point data (by averaging)
Overrides: rotation.Rotation.__init__

Attention: The source can either be point or cell data. If the source is cell data, a conversion to point data may or may not be required, in order for the object to be rendered correctly. If a conversion is needed, the 'cell_to_point' flag must be set to 'True', otherwise 'False' (which is the default). On occasions, an inaccurate object may be rendered from cell data even after conversion.

_isModified(self)

 

Return whether the MapOnScalarClipWithRotation or DataCollector has been modified.

Returns: Boolean
True or False

_render(self, scene)

 

Render the surface map clip using scalar data and subsequently rotated.

Parameters:
  • scene (Scene object) - Scene in which objects are to be rendered on