|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.ShadowType
public abstract class ShadowType
The ShadowType hierarchy shadows the MathType hierarchy, within a DataDisplayLink.
Field Summary | |
---|---|
static int |
LEGAL
|
static float |
METERS_PER_DEGREE
|
static int |
NESTED
|
static int |
NOTHING_MAPPED
possible values for LevelOfDifficulty |
static int |
SIMPLE_ANIMATE_FIELD
|
static int |
SIMPLE_FIELD
|
static int |
SIMPLE_TUPLE
|
Constructor Summary | |
---|---|
ShadowType(MathType type,
DataDisplayLink link,
ShadowType parent)
|
Method Summary | |
---|---|
void |
addSwitch(java.lang.Object group,
java.lang.Object swit,
Control control,
Set domain_set,
DataRenderer renderer)
|
boolean |
addTextToGroup(java.lang.Object group,
VisADGeometryArray array,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color)
|
void |
addToGroup(java.lang.Object group,
java.lang.Object branch)
|
boolean |
addToGroup(java.lang.Object group,
VisADGeometryArray array,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color)
|
void |
addToSwitch(java.lang.Object swit,
java.lang.Object branch)
|
static float[][] |
adjustFlowToEarth(int which,
float[][] flow_values,
float[][] spatial_values,
float flowScale,
DataRenderer renderer)
|
void |
adjustZ(float[] coordinates)
|
boolean |
allowConstantColorSurfaces()
|
boolean |
allowCurvedTexture()
|
boolean |
allowLinearContour()
|
byte[][] |
assembleColor(float[][] display_values,
int valueArrayLength,
int[] valueToScalar,
DisplayImpl display,
float[] default_values,
boolean[][] range_select,
boolean[] single_missing,
ShadowType shadow_api)
composite and transform color and Alpha DisplayRealType values from display_values, and return as (Red, Green, Blue, Alpha) |
void |
assembleFlow(float[][] flow1_values,
float[][] flow2_values,
float[] flowScale,
float[][] display_values,
int valueArrayLength,
int[] valueToScalar,
DisplayImpl display,
float[] default_values,
boolean[][] range_select,
DataRenderer renderer,
ShadowType shadow_api)
assemble Flow components; Flow components are 'single', so no compositing is required |
boolean[][] |
assembleSelect(float[][] display_values,
int domain_length,
int valueArrayLength,
int[] valueToScalar,
DisplayImpl display,
ShadowType shadow_api)
return a composite of SelectRange DisplayRealType values from display_values, as 0.0 for select and Double.Nan for no select (these values can be added to other DisplayRealType values) |
VisADGeometryArray[] |
assembleShape(float[][] display_values,
int valueArrayLength,
int[] valueToMap,
java.util.Vector MapVector,
int[] valueToScalar,
DisplayImpl display,
float[] default_values,
int[] inherited_values,
float[][] spatial_values,
byte[][] color_values,
boolean[][] range_select,
int index,
ShadowType shadow_api)
collect and transform Shape DisplayRealType values from display_values; offset by spatial_values, colored by color_values and selected by range_select |
Set |
assembleSpatial(float[][] spatial_values,
float[][] display_values,
int valueArrayLength,
int[] valueToScalar,
DisplayImpl display,
float[] default_values,
int[] inherited_values,
Set domain_set,
boolean allSpatial,
boolean set_for_shape,
int[] spatialDimensions,
boolean[][] range_select,
float[][] flow1_values,
float[][] flow2_values,
float[] flowScale,
boolean[] swap,
DataRenderer renderer,
ShadowType shadow_api)
collect and transform spatial DisplayRealType values from display_values; add spatial offset DisplayRealType values; adjust flow1_values and flow2_values for any coordinate transform; if needed, return a spatial Set from spatial_values, with the same topology as domain_set (or an appropriate Irregular topology); domain_set = null and allSpatial = false if not called from ShadowFunctionType |
static float |
byteToFloat(byte b)
|
int |
checkIndices(int[] indices,
int[] display_indices,
int[] value_indices,
boolean[] isTransform,
int levelOfDifficulty)
scans ShadowType tree to determine display feasibility and precompute useful information for Data transform; indices & display_indices are counts (at leaves) of numbers of occurrences of RealTypes and DisplayRealTypes; isTransform flags for (Animation, Range, Value) re-transform; levelOfDifficulty passed down and up call chain |
static byte |
floatToByte(float f)
|
ShadowType |
getAdaptedShadowType()
|
boolean |
getAnyContour()
|
boolean |
getAnyFlow()
|
boolean |
getAnyShape()
|
boolean |
getAnyText()
|
int[] |
getComponentIndex()
|
ShadowRealType[] |
getComponents(ShadowType type,
boolean doRef)
|
ShadowRealTupleType[] |
getComponentWithRef()
|
boolean |
getCurvedTexture()
|
Data |
getData()
|
static int |
getDefaultColorIndex(DisplayImpl display,
int index)
|
DisplayImpl |
getDisplay()
|
int[] |
getDisplayIndices()
|
boolean |
getIsLinearContour3D()
|
boolean |
getIsTerminal()
|
boolean |
getIsTexture3D()
|
boolean |
getIsTextureMap()
|
int |
getLevelOfDifficulty()
|
DataDisplayLink |
getLink()
|
boolean |
getMappedDisplayScalar()
|
boolean |
getMultipleDisplayScalar()
|
boolean |
getMultipleSpatialDisplayScalar()
|
java.lang.String |
getParentText()
|
TextControl |
getParentTextControl()
|
int[] |
getRefToComponent()
|
java.util.Vector |
getTextMaps(int i,
int[] textIndices)
|
MathType |
getType()
|
int[] |
getValueIndices()
|
java.lang.Object |
makeBranch()
|
boolean |
makeContour(int valueArrayLength,
int[] valueToScalar,
float[][] display_values,
int[] inherited_values,
java.util.Vector MapVector,
int[] valueToMap,
int domain_length,
boolean[][] range_select,
int spatialManifoldDimension,
Set spatial_set,
byte[][] color_values,
boolean indexed,
java.lang.Object group,
GraphicsModeControl mode,
boolean[] swap,
float constant_alpha,
float[] constant_color,
ShadowType shadow_api)
|
VisADGeometryArray[] |
makeFlow(int which,
float[][] flow_values,
float flowScale,
float[][] spatial_values,
byte[][] color_values,
boolean[][] range_select)
which = 0 for Flow1 and which = 1 for Flow2 |
static VisADGeometryArray |
makePointGeometry(float[][] spatial_values,
byte[][] color_values)
|
static VisADGeometryArray |
makePointGeometry(float[][] spatial_values,
byte[][] color_values,
boolean compress)
|
Set |
makeSpatialSet(Set domain_set,
SetType type,
float[][] spatial_values)
|
VisADGeometryArray[] |
makeStreamline(int which,
float[][] flow_values,
float flowScale,
float[][] spatial_values,
Set spatial_set,
int spatialManifoldDimension,
byte[][] color_values,
boolean[][] range_select)
|
java.lang.Object |
makeSwitch()
|
VisADGeometryArray |
makeText(java.lang.String[] text_values,
TextControl text_control,
float[][] spatial_values,
byte[][] color_values,
boolean[][] range_select)
|
static void |
mapValues(float[][] display_values,
double[][] values,
ShadowRealType[] reals)
map values to display_values according to ScalarMap-s in reals |
static void |
mapValues(float[][] display_values,
float[][] values,
ShadowRealType[] reals)
map values into display_values according to ScalarMap-s in reals |
boolean |
recurseComponent(int i,
java.lang.Object group,
Data data,
float[] value_array,
float[] default_values,
DataRenderer renderer)
|
boolean |
recurseRange(java.lang.Object group,
Data data,
float[] value_array,
float[] default_values,
DataRenderer renderer)
|
float[] |
setTex3DCoords(int length,
int axis,
float ratiow,
float ratioh,
float ratiod)
|
void |
setTexCoords(float[] texCoords,
float ratiow,
float ratioh)
|
float[] |
setTexStackCoords(int length,
int axis,
float ratiow,
float ratioh,
float ratiod)
|
void |
setText(java.lang.String text,
TextControl control)
|
boolean |
terminalTupleOrScalar(java.lang.Object group,
float[][] display_values,
java.lang.String text_value,
TextControl text_control,
int valueArrayLength,
int[] valueToScalar,
float[] default_values,
int[] inherited_values,
DataRenderer renderer,
ShadowType shadow_api)
transform data into a (Java3D or Java2D) scene graph; add generated scene graph components as children of group; group is Group (Java3D) or VisADGroup (Java2D); value_array are inherited valueArray values; default_values are defaults for each display.DisplayRealTypeVector; return true if need post-process |
void |
texture3DToGroup(java.lang.Object group,
VisADGeometryArray arrayX,
VisADGeometryArray arrayY,
VisADGeometryArray arrayZ,
VisADGeometryArray arrayXrev,
VisADGeometryArray arrayYrev,
VisADGeometryArray arrayZrev,
java.awt.image.BufferedImage[] images,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color,
int texture_width,
int texture_height,
int texture_depth,
DataRenderer renderer)
|
int |
textureDepth(int data_depth)
|
int |
textureHeight(int data_height)
|
void |
textureStackToGroup(java.lang.Object group,
VisADGeometryArray arrayX,
VisADGeometryArray arrayY,
VisADGeometryArray arrayZ,
VisADGeometryArray arrayXrev,
VisADGeometryArray arrayYrev,
VisADGeometryArray arrayZrev,
java.awt.image.BufferedImage[] imagesX,
java.awt.image.BufferedImage[] imagesY,
java.awt.image.BufferedImage[] imagesZ,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color,
int texture_width,
int texture_height,
int texture_depth,
DataRenderer renderer)
|
void |
textureToGroup(java.lang.Object group,
VisADGeometryArray array,
java.awt.image.BufferedImage image,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color,
int texture_width,
int texture_height)
|
int |
textureWidth(int data_width)
|
java.lang.String |
toString()
|
boolean |
wantIndexed()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NOTHING_MAPPED
public static final int SIMPLE_TUPLE
public static final int SIMPLE_ANIMATE_FIELD
public static final int SIMPLE_FIELD
public static final int NESTED
public static final int LEGAL
public static final float METERS_PER_DEGREE
Constructor Detail |
---|
public ShadowType(MathType type, DataDisplayLink link, ShadowType parent) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
Method Detail |
---|
public DataDisplayLink getLink()
public int getLevelOfDifficulty()
public boolean getIsTerminal()
public boolean getIsTextureMap()
public boolean getCurvedTexture()
public boolean getIsTexture3D()
public boolean getIsLinearContour3D()
public int[] getRefToComponent()
public ShadowRealTupleType[] getComponentWithRef()
public int[] getComponentIndex()
public ShadowRealType[] getComponents(ShadowType type, boolean doRef) throws VisADException
VisADException
public Data getData()
public ShadowType getAdaptedShadowType()
public boolean getAnyContour()
public boolean getAnyFlow()
public boolean getAnyShape()
public boolean getAnyText()
public int checkIndices(int[] indices, int[] display_indices, int[] value_indices, boolean[] isTransform, int levelOfDifficulty) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public DisplayImpl getDisplay()
public MathType getType()
public boolean getMultipleDisplayScalar()
public boolean getMultipleSpatialDisplayScalar()
public boolean getMappedDisplayScalar()
public int[] getDisplayIndices()
public int[] getValueIndices()
public static void mapValues(float[][] display_values, double[][] values, ShadowRealType[] reals) throws VisADException
VisADException
public static void mapValues(float[][] display_values, float[][] values, ShadowRealType[] reals) throws VisADException
VisADException
public static VisADGeometryArray makePointGeometry(float[][] spatial_values, byte[][] color_values) throws VisADException
VisADException
public static VisADGeometryArray makePointGeometry(float[][] spatial_values, byte[][] color_values, boolean compress) throws VisADException
VisADException
public VisADGeometryArray[] assembleShape(float[][] display_values, int valueArrayLength, int[] valueToMap, java.util.Vector MapVector, int[] valueToScalar, DisplayImpl display, float[] default_values, int[] inherited_values, float[][] spatial_values, byte[][] color_values, boolean[][] range_select, int index, ShadowType shadow_api) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public Set assembleSpatial(float[][] spatial_values, float[][] display_values, int valueArrayLength, int[] valueToScalar, DisplayImpl display, float[] default_values, int[] inherited_values, Set domain_set, boolean allSpatial, boolean set_for_shape, int[] spatialDimensions, boolean[][] range_select, float[][] flow1_values, float[][] flow2_values, float[] flowScale, boolean[] swap, DataRenderer renderer, ShadowType shadow_api) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public Set makeSpatialSet(Set domain_set, SetType type, float[][] spatial_values) throws VisADException
VisADException
public void assembleFlow(float[][] flow1_values, float[][] flow2_values, float[] flowScale, float[][] display_values, int valueArrayLength, int[] valueToScalar, DisplayImpl display, float[] default_values, boolean[][] range_select, DataRenderer renderer, ShadowType shadow_api) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public static float[][] adjustFlowToEarth(int which, float[][] flow_values, float[][] spatial_values, float flowScale, DataRenderer renderer) throws VisADException
VisADException
public VisADGeometryArray[] makeStreamline(int which, float[][] flow_values, float flowScale, float[][] spatial_values, Set spatial_set, int spatialManifoldDimension, byte[][] color_values, boolean[][] range_select) throws VisADException
VisADException
public VisADGeometryArray[] makeFlow(int which, float[][] flow_values, float flowScale, float[][] spatial_values, byte[][] color_values, boolean[][] range_select) throws VisADException
VisADException
public VisADGeometryArray makeText(java.lang.String[] text_values, TextControl text_control, float[][] spatial_values, byte[][] color_values, boolean[][] range_select) throws VisADException
VisADException
public byte[][] assembleColor(float[][] display_values, int valueArrayLength, int[] valueToScalar, DisplayImpl display, float[] default_values, boolean[][] range_select, boolean[] single_missing, ShadowType shadow_api) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public static final float byteToFloat(byte b)
public static final byte floatToByte(float f)
public static int getDefaultColorIndex(DisplayImpl display, int index)
public boolean[][] assembleSelect(float[][] display_values, int domain_length, int valueArrayLength, int[] valueToScalar, DisplayImpl display, ShadowType shadow_api) throws VisADException
VisADException
public boolean terminalTupleOrScalar(java.lang.Object group, float[][] display_values, java.lang.String text_value, TextControl text_control, int valueArrayLength, int[] valueToScalar, float[] default_values, int[] inherited_values, DataRenderer renderer, ShadowType shadow_api) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public boolean makeContour(int valueArrayLength, int[] valueToScalar, float[][] display_values, int[] inherited_values, java.util.Vector MapVector, int[] valueToMap, int domain_length, boolean[][] range_select, int spatialManifoldDimension, Set spatial_set, byte[][] color_values, boolean indexed, java.lang.Object group, GraphicsModeControl mode, boolean[] swap, float constant_alpha, float[] constant_color, ShadowType shadow_api) throws VisADException
VisADException
public int textureWidth(int data_width)
public int textureHeight(int data_height)
public int textureDepth(int data_depth)
public void adjustZ(float[] coordinates)
public void setTexCoords(float[] texCoords, float ratiow, float ratioh)
public float[] setTex3DCoords(int length, int axis, float ratiow, float ratioh, float ratiod)
public float[] setTexStackCoords(int length, int axis, float ratiow, float ratioh, float ratiod)
public java.util.Vector getTextMaps(int i, int[] textIndices)
public boolean addToGroup(java.lang.Object group, VisADGeometryArray array, GraphicsModeControl mode, float constant_alpha, float[] constant_color) throws VisADException
VisADException
public boolean addTextToGroup(java.lang.Object group, VisADGeometryArray array, GraphicsModeControl mode, float constant_alpha, float[] constant_color) throws VisADException
VisADException
public void textureToGroup(java.lang.Object group, VisADGeometryArray array, java.awt.image.BufferedImage image, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height) throws VisADException
VisADException
public void texture3DToGroup(java.lang.Object group, VisADGeometryArray arrayX, VisADGeometryArray arrayY, VisADGeometryArray arrayZ, VisADGeometryArray arrayXrev, VisADGeometryArray arrayYrev, VisADGeometryArray arrayZrev, java.awt.image.BufferedImage[] images, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height, int texture_depth, DataRenderer renderer) throws VisADException
VisADException
public void textureStackToGroup(java.lang.Object group, VisADGeometryArray arrayX, VisADGeometryArray arrayY, VisADGeometryArray arrayZ, VisADGeometryArray arrayXrev, VisADGeometryArray arrayYrev, VisADGeometryArray arrayZrev, java.awt.image.BufferedImage[] imagesX, java.awt.image.BufferedImage[] imagesY, java.awt.image.BufferedImage[] imagesZ, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height, int texture_depth, DataRenderer renderer) throws VisADException
VisADException
public java.lang.Object makeSwitch()
public java.lang.Object makeBranch()
public void addToGroup(java.lang.Object group, java.lang.Object branch) throws VisADException
VisADException
public void addToSwitch(java.lang.Object swit, java.lang.Object branch) throws VisADException
VisADException
public void addSwitch(java.lang.Object group, java.lang.Object swit, Control control, Set domain_set, DataRenderer renderer) throws VisADException
VisADException
public boolean recurseRange(java.lang.Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public boolean recurseComponent(int i, java.lang.Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public boolean wantIndexed()
public TextControl getParentTextControl()
public java.lang.String getParentText()
public void setText(java.lang.String text, TextControl control)
public boolean allowCurvedTexture()
public boolean allowConstantColorSurfaces()
public boolean allowLinearContour()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |