|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.ShadowType visad.java2d.ShadowTypeJ2D
public abstract class ShadowTypeJ2D
The ShadowTypeJ2D hierarchy shadows the MathType hierarchy, within a DataDisplayLink, under Java2D.
Field Summary |
---|
Fields inherited from class visad.ShadowType |
---|
byReference, LEGAL, METERS_PER_DEGREE, NESTED, NOTHING_MAPPED, PROP_CONTOURFILL_SINGLE_VALUE_AS_TEXTURE, PROP_IMAGE_BY_REF, SIMPLE_ANIMATE_FIELD, SIMPLE_FIELD, SIMPLE_TUPLE, yUp |
Constructor Summary | |
---|---|
ShadowTypeJ2D(MathType type,
DataDisplayLink link,
ShadowType parent)
|
Method Summary | |
---|---|
void |
addLabelsToGroup(Object group,
VisADGeometryArray[] arrays,
GraphicsModeControl mode,
ContourControl control,
ProjectionControl p_cntrl,
int[] cnt_a,
float constant_alpha,
float[] constant_color)
|
boolean |
addToGroup(Object group,
VisADGeometryArray array,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color)
|
boolean |
allowCurvedTexture()
|
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,
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, 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 |
int |
checkIndices(int[] indices,
int[] display_indices,
int[] value_indices,
boolean[] isTransform,
int levelOfDifficulty)
checkIndices: check for rendering difficulty, etc |
static ShadowType |
getAdaptedParent(ShadowType parent)
|
ShadowType |
getAdaptedShadowType()
|
ShadowRealType[] |
getComponents(ShadowType type,
boolean doRef)
|
Data |
getData()
|
DisplayImpl |
getDisplay()
|
int[] |
getDisplayIndices()
|
int |
getLevelOfDifficulty()
|
boolean |
getMappedDisplayScalar()
|
boolean |
getMultipleDisplayScalar()
|
String |
getParentText()
|
TextControl |
getParentTextControl()
|
MathType |
getType()
|
int[] |
getValueIndices()
|
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[][] 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)
|
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)
|
VisADGeometryArray |
makeText(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 into 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 |
void |
setText(String text,
TextControl control)
|
boolean |
terminalTupleOrScalar(VisADGroup group,
float[][] display_values,
String text_value,
TextControl text_control,
int valueArrayLength,
int[] valueToScalar,
float[] default_values,
int[] inherited_values,
DataRenderer renderer)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ShadowTypeJ2D(MathType type, DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
VisADException
RemoteException
Method Detail |
---|
public static ShadowType getAdaptedParent(ShadowType parent)
public ShadowType getAdaptedShadowType()
getAdaptedShadowType
in class ShadowType
public ShadowRealType[] getComponents(ShadowType type, boolean doRef) throws VisADException
getComponents
in class ShadowType
VisADException
public String getParentText()
getParentText
in class ShadowType
public TextControl getParentTextControl()
getParentTextControl
in class ShadowType
public void setText(String text, TextControl control)
setText
in class ShadowType
public Data getData()
getData
in class ShadowType
public DisplayImpl getDisplay()
getDisplay
in class ShadowType
public MathType getType()
getType
in class ShadowType
public int getLevelOfDifficulty()
getLevelOfDifficulty
in class ShadowType
public boolean getMultipleDisplayScalar()
getMultipleDisplayScalar
in class ShadowType
public boolean getMappedDisplayScalar()
getMappedDisplayScalar
in class ShadowType
public int[] getDisplayIndices()
getDisplayIndices
in class ShadowType
public int[] getValueIndices()
getValueIndices
in class ShadowType
public int checkIndices(int[] indices, int[] display_indices, int[] value_indices, boolean[] isTransform, int levelOfDifficulty) throws VisADException, RemoteException
checkIndices
in class ShadowType
VisADException
RemoteException
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
VisADException
public static VisADGeometryArray makePointGeometry(float[][] spatial_values, byte[][] color_values) 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
assembleShape
in class ShadowType
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
assembleSpatial
in class ShadowType
VisADException
RemoteException
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, RemoteException
assembleFlow
in class ShadowType
VisADException
RemoteException
public VisADGeometryArray[] makeFlow(int which, float[][] flow_values, float flowScale, float[][] spatial_values, byte[][] color_values, boolean[][] range_select) throws VisADException
ShadowType
makeFlow
in class ShadowType
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
makeStreamline
in class ShadowType
VisADException
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
makeContour
in class ShadowType
VisADException
public void addLabelsToGroup(Object group, VisADGeometryArray[] arrays, GraphicsModeControl mode, ContourControl control, ProjectionControl p_cntrl, int[] cnt_a, float constant_alpha, float[] constant_color) throws VisADException
addLabelsToGroup
in class ShadowType
VisADException
public VisADGeometryArray makeText(String[] text_values, TextControl text_control, float[][] spatial_values, byte[][] color_values, boolean[][] range_select) throws VisADException
makeText
in class ShadowType
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
assembleColor
in class ShadowType
VisADException
RemoteException
public boolean[][] assembleSelect(float[][] display_values, int domain_length, int valueArrayLength, int[] valueToScalar, DisplayImpl display, ShadowType shadow_api) throws VisADException
assembleSelect
in class ShadowType
VisADException
public boolean terminalTupleOrScalar(VisADGroup group, float[][] display_values, String text_value, TextControl text_control, int valueArrayLength, int[] valueToScalar, float[] default_values, int[] inherited_values, DataRenderer renderer) throws VisADException, RemoteException
VisADException
RemoteException
public boolean addToGroup(Object group, VisADGeometryArray array, GraphicsModeControl mode, float constant_alpha, float[] constant_color) throws VisADException
addToGroup
in class ShadowType
VisADException
public boolean allowCurvedTexture()
allowCurvedTexture
in class ShadowType
public String toString()
toString
in class ShadowType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |