NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: Program to visualize layers

Hi Ugo,
 
Excellent work on your DEMViewer.
 
One appraoch to multiple layers would be to make each layer
a different data object, each with a Linear2DSet domain set.
Each data object (i.e., each layer) would be connected to the
DisplayImplJ3D by its own addReference call which would
include a ConstantMap[] array to set each layer at a different
ZAxis value, and possibly an Alpha value for transparency.
You could disable a layer by calling setData(null) on its
DataReference, and enable it by calling setData(layer_data)
where layer_data is just the data object for the layer.
 
Good luck, and let us know if you have any problems or
questions.
 
Cheers,
Bill
 
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
whibbard@xxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html
 

  • 1999 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: