public abstract class ShadowType extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
byReference |
protected ArrayList<FlowInfo> |
flowInfoList |
static int |
LEGAL |
static float |
METERS_PER_DEGREE |
static int |
NESTED |
static int |
NOTHING_MAPPED
possible values for LevelOfDifficulty
|
static String |
PROP_CONTOURFILL_SINGLE_VALUE_AS_TEXTURE
Property to create a texture for a single value color filled contour
|
static String |
PROP_IMAGE_BY_REF
Image ByReference flags
|
static int |
SIMPLE_ANIMATE_FIELD |
static int |
SIMPLE_FIELD |
static int |
SIMPLE_TUPLE |
boolean |
trajectory1
trajectory flags
|
boolean |
trajectory2 |
static boolean |
yUp |
Constructor and Description |
---|
ShadowType(MathType type,
DataDisplayLink link,
ShadowType parent) |
Modifier and Type | Method and Description |
---|---|
void |
addLabelsToGroup(Object group,
VisADGeometryArray[] arrays,
GraphicsModeControl mode,
ContourControl control,
ProjectionControl p_cntrl,
int[] cnt,
float constant_alpha,
float[] contstant_color) |
void |
addSwitch(Object group,
Object swit,
Control control,
Set domain_set,
DataRenderer renderer) |
boolean |
addTextToGroup(Object group,
VisADGeometryArray array,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color) |
Object |
addToDetachableGroup(Object group,
VisADGeometryArray array,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color) |
void |
addToGroup(Object group,
Object branch) |
boolean |
addToGroup(Object group,
VisADGeometryArray array,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color) |
void |
addToSwitch(Object swit,
Object branch) |
static float[][] |
adjustFlowToEarth(int which,
float[][] flow_values,
float[][] spatial_values,
float flowScale,
DataRenderer renderer) |
static float[][] |
adjustFlowToEarth(int which,
float[][] flow_values,
float[][] spatial_values,
float flowScale,
DataRenderer renderer,
boolean force) |
static float[][] |
adjustFlowToEarth(int which,
float[][] flow_values,
float[][] spatial_values,
float flowScale,
DataRenderer renderer,
boolean force,
boolean isTraj,
float timeStep) |
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[] arrowScale,
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,
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
|
Object |
createImage(int data_width,
int data_height,
int texture_width,
int texture_height,
byte[][] color_values) |
Object[] |
createImages(int axis,
int data_width_in,
int data_height_in,
int data_depth_in,
int texture_width_in,
int texture_height_in,
int texture_depth_in,
byte[][] color_values) |
static byte |
floatToByte(float f) |
ShadowType |
getAdaptedShadowType() |
boolean |
getAdjustProjectionSeam() |
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() |
ArrayList<FlowInfo> |
getFlowInfo() |
boolean |
getIsLinearContour3D() |
boolean |
getIsTerminal() |
boolean |
getIsTexture3D() |
boolean |
getIsTextureMap() |
int |
getLevelOfDifficulty() |
DataDisplayLink |
getLink() |
boolean |
getMappedDisplayScalar() |
boolean |
getMultipleDisplayScalar() |
boolean |
getMultipleSpatialDisplayScalar() |
String |
getParentText() |
TextControl |
getParentTextControl() |
int[] |
getRefToComponent() |
Vector |
getTextMaps(int i,
int[] textIndices) |
MathType |
getType() |
int[] |
getValueIndices() |
Object |
makeBranch() |
boolean |
makeContour(int valueArrayLength,
int[] valueToScalar,
float[][] display_values,
int[] inherited_values,
Vector MapVector,
int[] valueToMap,
int domain_length,
boolean[][] range_select,
int spatialManifoldDimension,
Set spatial_set,
byte[][] color_values,
boolean indexed,
Object group,
GraphicsModeControl mode,
boolean[] swap,
float constant_alpha,
float[] constant_color,
ShadowType shadow_api,
ShadowRealTupleType Domain,
ShadowRealType[] DomainReferenceComponents,
Set domain_set,
Unit[] domain_units,
CoordinateSystem dataCoordinateSystem) |
VisADGeometryArray[] |
makeFlow(int which,
float[][] flow_values,
float flowScale,
float arrowScale,
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,
int valueArrayLength,
int[] valueToMap,
Vector MapVector) |
Object |
makeSwitch() |
VisADGeometryArray |
makeText(String[] text_values,
TextControl text_control,
float[][] spatial_values,
byte[][] color_values,
boolean[][] range_select) |
byte[][] |
makeTrajColor(float[][] rangeValues,
int valueArrayLength,
int[] valueToMap,
Vector MapVector) |
void |
makeTrajFlow(int which,
float[][] flow_values,
Data data,
float flowScale,
float[][] spatial_values,
Set spatial_set,
int spatialManifoldDimension,
byte[][] color_values,
boolean[][] range_select,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color,
int valueArrayLength,
int[] valueToMap,
Vector MapVector,
ArrayList flowInfoList) |
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
|
static void |
mapValues(float[][] display_values,
float[][] values,
ShadowRealType[] reals,
boolean copy)
Map values into display_values according to ScalarMap-s in reals
|
boolean |
recurseComponent(int i,
Object group,
Data data,
float[] value_array,
float[] default_values,
DataRenderer renderer) |
boolean |
recurseRange(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(String text,
TextControl control) |
boolean |
terminalTupleOrScalar(Object group,
float[][] display_values,
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(Object group,
VisADGeometryArray arrayX,
VisADGeometryArray arrayY,
VisADGeometryArray arrayZ,
VisADGeometryArray arrayXrev,
VisADGeometryArray arrayYrev,
VisADGeometryArray arrayZrev,
Object[] 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(Object group,
VisADGeometryArray arrayX,
VisADGeometryArray arrayY,
VisADGeometryArray arrayZ,
VisADGeometryArray arrayXrev,
VisADGeometryArray arrayYrev,
VisADGeometryArray arrayZrev,
Object[] imagesX,
Object[] imagesY,
Object[] imagesZ,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color,
int texture_width,
int texture_height,
int texture_depth,
DataRenderer renderer) |
void |
textureToGroup(Object group,
VisADGeometryArray array,
Object image,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color,
int texture_width,
int texture_height) |
int |
textureWidth(int data_width) |
String |
toString() |
boolean |
wantIndexed() |
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 String PROP_IMAGE_BY_REF
public static final String PROP_CONTOURFILL_SINGLE_VALUE_AS_TEXTURE
public static final boolean byReference
public static final boolean yUp
public boolean trajectory1
public boolean trajectory2
public static final float METERS_PER_DEGREE
public ShadowType(MathType type, DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
VisADException
RemoteException
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 boolean getAdjustProjectionSeam()
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, RemoteException
VisADException
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 void mapValues(float[][] display_values, float[][] values, ShadowRealType[] reals, boolean copy) throws VisADException
display_values
- return display valuesvalues
- data valuesreals
- the ShadowRealTypes corresponding to the Scalar in mapscopy
- if false, scale values in place if reals[index] has only one
mapping. Use true if values represent a getSamples(false) or
getFloats(false)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, 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, RemoteException
VisADException
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, RemoteException
VisADException
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[] arrowScale, float[][] display_values, int valueArrayLength, int[] valueToScalar, DisplayImpl display, float[] default_values, boolean[][] range_select, DataRenderer renderer, ShadowType shadow_api) throws VisADException, RemoteException
VisADException
RemoteException
public static float[][] adjustFlowToEarth(int which, float[][] flow_values, float[][] spatial_values, float flowScale, DataRenderer renderer) throws VisADException
VisADException
public static float[][] adjustFlowToEarth(int which, float[][] flow_values, float[][] spatial_values, float flowScale, DataRenderer renderer, boolean force) throws VisADException
VisADException
public static float[][] adjustFlowToEarth(int which, float[][] flow_values, float[][] spatial_values, float flowScale, DataRenderer renderer, boolean force, boolean isTraj, float timeStep) 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, int valueArrayLength, int[] valueToMap, Vector MapVector) throws VisADException
VisADException
public void makeTrajFlow(int which, float[][] flow_values, Data data, float flowScale, float[][] spatial_values, Set spatial_set, int spatialManifoldDimension, byte[][] color_values, boolean[][] range_select, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int valueArrayLength, int[] valueToMap, Vector MapVector, ArrayList flowInfoList) throws VisADException, RemoteException
VisADException
RemoteException
public byte[][] makeTrajColor(float[][] rangeValues, int valueArrayLength, int[] valueToMap, Vector MapVector) throws VisADException, RemoteException
VisADException
RemoteException
public VisADGeometryArray[] makeFlow(int which, float[][] flow_values, float flowScale, float arrowScale, float[][] spatial_values, byte[][] color_values, boolean[][] range_select) throws VisADException
VisADException
public VisADGeometryArray makeText(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, RemoteException
VisADException
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(Object group, float[][] display_values, String text_value, TextControl text_control, int valueArrayLength, int[] valueToScalar, float[] default_values, int[] inherited_values, DataRenderer renderer, ShadowType shadow_api) throws VisADException, RemoteException
VisADException
RemoteException
public boolean makeContour(int valueArrayLength, int[] valueToScalar, float[][] display_values, int[] inherited_values, Vector MapVector, int[] valueToMap, int domain_length, boolean[][] range_select, int spatialManifoldDimension, Set spatial_set, byte[][] color_values, boolean indexed, Object group, GraphicsModeControl mode, boolean[] swap, float constant_alpha, float[] constant_color, ShadowType shadow_api, ShadowRealTupleType Domain, ShadowRealType[] DomainReferenceComponents, Set domain_set, Unit[] domain_units, CoordinateSystem dataCoordinateSystem) 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 Vector getTextMaps(int i, int[] textIndices)
public boolean addToGroup(Object group, VisADGeometryArray array, GraphicsModeControl mode, float constant_alpha, float[] constant_color) throws VisADException
VisADException
public Object addToDetachableGroup(Object group, VisADGeometryArray array, GraphicsModeControl mode, float constant_alpha, float[] constant_color) throws VisADException
VisADException
public void addLabelsToGroup(Object group, VisADGeometryArray[] arrays, GraphicsModeControl mode, ContourControl control, ProjectionControl p_cntrl, int[] cnt, float constant_alpha, float[] contstant_color) throws VisADException
VisADException
public boolean addTextToGroup(Object group, VisADGeometryArray array, GraphicsModeControl mode, float constant_alpha, float[] constant_color) throws VisADException
VisADException
public Object createImage(int data_width, int data_height, int texture_width, int texture_height, byte[][] color_values) throws VisADException
VisADException
public Object[] createImages(int axis, int data_width_in, int data_height_in, int data_depth_in, int texture_width_in, int texture_height_in, int texture_depth_in, byte[][] color_values) throws VisADException
VisADException
public void textureToGroup(Object group, VisADGeometryArray array, Object image, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height) throws VisADException
VisADException
public void texture3DToGroup(Object group, VisADGeometryArray arrayX, VisADGeometryArray arrayY, VisADGeometryArray arrayZ, VisADGeometryArray arrayXrev, VisADGeometryArray arrayYrev, VisADGeometryArray arrayZrev, Object[] 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(Object group, VisADGeometryArray arrayX, VisADGeometryArray arrayY, VisADGeometryArray arrayZ, VisADGeometryArray arrayXrev, VisADGeometryArray arrayYrev, VisADGeometryArray arrayZrev, Object[] imagesX, Object[] imagesY, Object[] imagesZ, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height, int texture_depth, DataRenderer renderer) throws VisADException
VisADException
public Object makeSwitch()
public Object makeBranch()
public void addToGroup(Object group, Object branch) throws VisADException
VisADException
public void addToSwitch(Object swit, Object branch) throws VisADException
VisADException
public void addSwitch(Object group, Object swit, Control control, Set domain_set, DataRenderer renderer) throws VisADException
VisADException
public boolean recurseRange(Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer) throws VisADException, RemoteException
VisADException
RemoteException
public boolean recurseComponent(int i, Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer) throws VisADException, RemoteException
VisADException
RemoteException
public boolean wantIndexed()
public TextControl getParentTextControl()
public String getParentText()
public void setText(String text, TextControl control)
public boolean allowCurvedTexture()
public boolean allowConstantColorSurfaces()
public boolean allowLinearContour()
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.