Package esys :: Package lsm :: Package vis :: Package core :: Module edgeExtractor :: Class EdgeExtractor
[hide private]
[frames] | no frames]

Class EdgeExtractor

         object --+    
                  |    
extractor.Extractor --+
                      |
                     EdgeExtractor
Known Subclasses:

Objects can be used in conjunction with EdgeData objects to extract piecewise-linear edges from data-records. Each linear segment of an edge is rendered as a truncated cone, hence there is a radius associated with each point on the edge and a color associated with each linear segment on the edge.

Instance Methods [hide private]
 
__init__(self, pointListMap=<__builtin__.function object>, radiusListMap=<__builtin__.function object>, colorValListMap=<__builtin__.function object>, radiusScale=1.0)
Constructor.
float
getRadiusScale(self)
Returns the radius scaling factor.
sequence of floats
getRadiusList(self, dataRecord)
Returns the radii associated with each segment end-point.
sequence of coordinates
getPointList(self, dataRecord)
Returns the coordinates (3 float-element sequence) of each segment end-point.
sequence of colors
getColorValList(self, dataRecord)
Returns the color of each segment.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, pointListMap=<__builtin__.function object>, radiusListMap=<__builtin__.function object>, colorValListMap=<__builtin__.function object>, radiusScale=1.0)
(Constructor)

 

Constructor.

Parameters:
  • pointListMap (callable) - Callable which takes a single data-record as an argument and returns a list of coordinates representing the end-points of the linear segments of the edge.
  • radiusListMap (callable) - Callable which takes a single data-record as an argument and returns a list of radii values.
  • colorValListMap (callable) - Callable which takes a single data-record as an argument and returns a list of color values. Each color value is associated with a linear segment of the edge.
  • radiusScale (float) - Scale which is multiplied by all radii.
Overrides: object.__init__

getRadiusList(self, dataRecord)

 

Returns the radii associated with each segment end-point.

Returns: sequence of floats
Sequence of float radii values.

getPointList(self, dataRecord)

 

Returns the coordinates (3 float-element sequence) of each segment end-point.

Returns: sequence of coordinates
Sequence of coordinate values.

getColorValList(self, dataRecord)

 

Returns the color of each segment.

Returns: sequence of colors
Sequence of color objects.