RE: VisADTriangleArray

A few additional comments. For 're-shaping' your shapes, you'll find
ScalarMap's inverseScaleValues() and scaleValues()  methods valuable.
They will allow you to redefine the shape of your in either the 'box'
coordinate or the coordindate of the ScalarMaps.  I found it most
convenient to then use the setShape(index, shape) to simply put the
modified shape back into the display.

This allows you to not only re-shape your shapes but to move them around
quickly and easily.  In the last update to the Jython-VisAD subs.py
routine, I added some convenience methods for defining and moving shapes
(but not for re-shaping).

One final note:  in one recent project I needed a filled-in triangle
that I could move and re-shape (it was defined in
latitude/longitude/elevation coordinates).  I started out using a Shape
for this, but actually ended up using an Irregular3DSet for no other
reason than it was more convenient to simply create a new Set each time
I needed to move and morph the triangle.

tom


On Sun, 2 Jun 2002, Ibrahim Z Mohammad wrote:

> I think I've figured out what I was doing wrong here so please dont bother
> to reply. I have another question, is there some field like 'Display.Rotate'
> similar to Display.ShapeScale to set the orientation of the shape? If not,
> then to change the orientation do I have to basically 'recreate' the shape
> in the new orientation? Also, is there a way to scale the shape using
> different scaling factors along each co-ordinate axis?
> Ibrahim
>   -----Original Message-----
--
Tom Whittaker
University of Wisconsin-Madison
Space Science and Engineering Center
Cooperative Institute for Meteorological Satellite Studies
Telephone/VoiceMail:  608.262.2759