Table of Contents

Class: Shapes ..\subs.py

Helper class for handling Shapes within a display.

Methods   
__init__
addShape
moveShape
  __init__ 
__init__ (
        self,
        display,
        shapemap,
        )

<display> is the display this is working with; <shapemap> is the mapping parameter for shapes. Prior to creating this instance, the <display> should have all its ScalarMaps set up.

  addShape 
addShape (
        self,
        type,
        scale=.1,
        color=None,
        index=None,
        autoScale=1,
        )

Add a shape. Parameters: <type> of shape (cross,triangle,square, solid_square,solid_triangle, or a VisADGeometryArray. <scale> = relative size for the shape. <color> = color name (e.g., "green") <index> = the index of the shape to replace with this one. If autoScale is true, the shape will be scaled.

Returns an index to this shape. (For use with moveShape.)

  moveShape 
moveShape (
        self,
        inx,
        coordinates,
        )

Move the shape pointed to by <inx>, to the <coordinates> which is a list of values in the same order as returned by getDisplayMaps.


Table of Contents

This document was automatically generated on Wed Feb 26 13:00:02 2003 by HappyDoc version 2.1