|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.RGBDisplayable
ucar.visad.display.Grid2DDisplayable
public class Grid2DDisplayable
A class to support showing 2D gridded data as color on a plane in a DisplayMaster.
| Field Summary |
|---|
| Fields inherited from class ucar.visad.display.RGBDisplayable |
|---|
COLOR_PALETTE, POLYGON_FILL, POLYGON_LINE, POLYGON_POINT, RGB_REAL_TYPE |
| Fields inherited from class ucar.visad.display.DisplayableData |
|---|
LINE_WIDTH, MANIPULABLE, VISIBLE |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
protected |
Grid2DDisplayable(Grid2DDisplayable that)
Constructs from another instance. |
|
Grid2DDisplayable(String name,
boolean alphaflag)
Constructs an instance with the supplied name. |
|
Grid2DDisplayable(String name,
RealType rgbRealType,
float[][] colorPalette,
boolean alphaflag)
Constructs from a name for the Displayable and the type of the RGB parameter. |
| Method Summary | |
|---|---|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display. |
int |
getCurvedSize()
Get the default texture curve size |
protected DataRenderer |
getDataRenderer()
Obtains the DataRenderer for this displayable. |
boolean |
getMissingTransparent()
Get whether this is textured or smoothed |
boolean |
getTextureEnable()
Get whether this is textured or smoothed |
boolean |
getUseDefaultRenderer()
Get whether to always use default renderer instead of specialized one. |
void |
loadData(FieldImpl field)
Set the data into the Displayable; set RGB Type |
protected ConstantMap |
makeTextureMap(boolean enable)
Create a ConstantMap for texture mapping |
protected void |
myAddConstantMaps(ConstantMap[] newMaps)
Adds this instance's data references to the associated VisAD display if possible. |
void |
setColoredByAnother(boolean yesno)
Set whether this GridDisplayable should have the data colored by another parameter. |
void |
setCurvedSize(int size)
Set the default texture curve size |
void |
setGrid2D(FieldImpl field)
Deprecated. Should use setData now. |
void |
setMissingTransparent(boolean enable)
Set whether missing values should be shown as transparent or not |
void |
setTextureEnable(boolean enable)
Set whether this should be shown as color shading or as a texture map. |
void |
setTextureProperties(FieldImpl grid)
A method that subclasses can call to set the texture properties on a Grid2DDisplayable. |
void |
setUseDefaultRenderer(boolean use)
Set whether to always use default renderer instead of specialized one. |
| Methods inherited from class ucar.visad.display.DisplayableData |
|---|
addAction, dataChange, destroy, getActive, getAnimationSet, getData, getLineWidth, getName, getPointSize, hasData, hasDataObject, isManipulable, isPickable, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setLineWidth, setManipulable, setPickable, setPointMode, setPointSize, setUseFastRendering, setVisible, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Grid2DDisplayable(String name,
boolean alphaflag)
throws VisADException,
RemoteException
name - a String identifieralphaflag - boolean flag whether to use transparency
VisADException - from construction of super class
RemoteException - from construction of super class
public Grid2DDisplayable(String name,
RealType rgbRealType,
float[][] colorPalette,
boolean alphaflag)
throws VisADException,
RemoteException
name - The name for the displayable.rgbRealType - The type of the RGB parameter. May be
null.colorPalette - The initial colorPalette to use. May be
null (Vis5D palette used
as default).alphaflag - boolean - use Display.RBGA if true
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected Grid2DDisplayable(Grid2DDisplayable that)
throws VisADException,
RemoteException
that - The other instance.
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
public void setGrid2D(FieldImpl field)
throws VisADException,
RemoteException
field - a VisAD FlatField with a 2D nature
VisADException - from construction of VisAd objects
RemoteException - from construction of VisAD objects
public void loadData(FieldImpl field)
throws VisADException,
RemoteException
loadData in interface GridDisplayablefield - a VisAD FlatField with a 2D nature
VisADException - from construction of VisAd objects
RemoteException - from construction of VisAD objects
public Displayable cloneForDisplay()
throws RemoteException,
VisADException
cloneForDisplay in class DisplayableDataVisADException - VisAD failure.
RemoteException - Java RMI failure.
protected DataRenderer getDataRenderer()
throws VisADException
getDataRenderer in class DisplayableDataVisADException - VisAD failure.
public void setTextureEnable(boolean enable)
throws VisADException,
RemoteException
enable - true to enable texturing
RemoteException
VisADException
protected void myAddConstantMaps(ConstantMap[] newMaps)
throws VisADException,
RemoteException
myAddConstantMaps in class DisplayableDatanewMaps - new maps
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected ConstantMap makeTextureMap(boolean enable)
throws VisADException,
RemoteException
enable - true to enable texture mapping
RemoteException - Java RMI error
VisADException - problem creating VisAD objectpublic boolean getTextureEnable()
public void setMissingTransparent(boolean enable)
throws VisADException,
RemoteException
enable - true enable missing transparency
RemoteException
VisADExceptionpublic boolean getMissingTransparent()
public void setUseDefaultRenderer(boolean use)
use - true to always use the default rendererpublic boolean getUseDefaultRenderer()
public void setTextureProperties(FieldImpl grid)
throws VisADException,
RemoteException
Grid2DDisplayable. Checks to see if the grid is
too big to not do texture mapping.
grid - grid to use to set the properties. Can be null.
RemoteException
VisADExceptionpublic void setColoredByAnother(boolean yesno)
setColoredByAnother in interface GridDisplayableyesno - true if colored by anotherpublic void setCurvedSize(int size)
setCurvedSize in class RGBDisplayablesize - size of texturepublic int getCurvedSize()
getCurvedSize in class RGBDisplayable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||