public abstract class ShadowTypeJ3D extends ShadowType
| Modifier and Type | Field and Description |
|---|---|
static int |
appearanceCnt
For logging the number of Appearance objects created
|
static int |
shape3DCnt
For logging the number of Shape3D objects created
|
byReference, flowInfoList, LEGAL, METERS_PER_DEGREE, NESTED, NOTHING_MAPPED, PROP_CONTOURFILL_SINGLE_VALUE_AS_TEXTURE, PROP_IMAGE_BY_REF, SIMPLE_ANIMATE_FIELD, SIMPLE_FIELD, SIMPLE_TUPLE, trajectory1, trajectory2, yUp| Constructor and Description |
|---|
ShadowTypeJ3D(MathType type,
DataDisplayLink link,
ShadowType parent)
Create a new ShadowTypeJ3D
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLabelsToGroup(Object group,
VisADGeometryArray[] arrays,
GraphicsModeControl mode,
ContourControl control,
ProjectionControl p_cntrl,
int[] cnt_a,
float constant_alpha,
float[] constant_color) |
boolean |
addTextToGroup(Object group,
VisADGeometryArray array,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color) |
BranchGroup |
addToDetachableGroup(Object group,
VisADGeometryArray array,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color)
Convenience method that returns a Branch node, which may be parented,
and whose only child can be detached.
|
boolean |
addToGroup(Object group,
VisADGeometryArray array,
GraphicsModeControl mode,
float constant_alpha,
float[] constant_color)
Add the GeometryArray to the group
|
boolean |
allowConstantColorSurfaces()
Do we allo constant color surfaces?
|
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, 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
|
boolean |
doTransform(Object group,
Data data,
float[] value_array,
float[] default_values,
DataRenderer renderer)
transform data into a Java3D scene graph; add generated scene graph
components as children of group; value_array are inherited valueArray
values; default_values are defaults for each display.DisplayRealTypeVector;
return true if need post-process; this is default (for ShadowTextType)
|
void |
ensureNotEmpty(Object obj)
this is a work-around for the NullPointerException at
org.scijava.java3d.Shape3DRetained.setLive(Shape3DRetained.java:448)
|
static void |
ensureNotEmpty(Object obj,
DisplayImpl display) |
static ShadowType |
getAdaptedParent(ShadowType parent)
Get the adapted ShadowType for the parent
|
ShadowType |
getAdaptedShadowType()
Get the adapted ShadowType for this instance
|
ShadowRealType[] |
getComponents(ShadowType type,
boolean doRef) |
Data |
getData()
Get the data
|
DisplayImpl |
getDisplay()
Get the display
|
int[] |
getDisplayIndices() |
int |
getLevelOfDifficulty()
Get the level of difficulty for this transform
|
boolean |
getMappedDisplayScalar() |
boolean |
getMultipleDisplayScalar() |
String |
getParentText() |
TextControl |
getParentTextControl() |
MathType |
getType()
Get the MathType of the Data
|
int[] |
getValueIndices() |
Appearance |
makeAppearance(GraphicsModeControl mode,
TransparencyAttributes constant_alpha,
ColoringAttributes constant_color,
GeometryArray geometry,
boolean no_material)
Make an Appearance object for this display
|
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) |
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 |
postProcess(Object group)
render accumulated Vector of value_array-s to and add to group; then clear
AccumulationVector
|
void |
preProcess()
clear AccumulationVector
|
void |
setText(String text,
TextControl control) |
static Appearance |
staticMakeAppearance(GraphicsModeControl mode,
TransparencyAttributes constant_alpha,
ColoringAttributes constant_color,
GeometryArray geometry,
boolean no_material)
Construct an Appearance object from a GeometryArray
|
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) |
String |
toString()
Get a String representation of this object
|
addSwitch, addToGroup, addToSwitch, adjustFlowToEarth, adjustFlowToEarth, adjustFlowToEarth, adjustZ, allowCurvedTexture, allowLinearContour, byteToFloat, createImage, createImages, floatToByte, getAdjustProjectionSeam, getAnyContour, getAnyFlow, getAnyShape, getAnyText, getComponentIndex, getComponentWithRef, getCurvedTexture, getDefaultColorIndex, getFlowInfo, getIsLinearContour3D, getIsTerminal, getIsTexture3D, getIsTextureMap, getLink, getMultipleSpatialDisplayScalar, getRefToComponent, getTextMaps, makeBranch, makePointGeometry, makeSpatialSet, makeSwitch, makeTrajColor, makeTrajFlow, recurseComponent, recurseRange, setTex3DCoords, setTexCoords, setTexStackCoords, terminalTupleOrScalar, texture3DToGroup, textureDepth, textureHeight, textureStackToGroup, textureToGroup, textureWidth, wantIndexedpublic static int appearanceCnt
public static int shape3DCnt
public ShadowTypeJ3D(MathType type, DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
type - MathType of the datalink - the data/display linkparent - parent ShadowTypeRemoteException - problem creating remote instanceVisADException - problem creating local instancepublic static ShadowType getAdaptedParent(ShadowType parent)
parent - the parent object to testpublic ShadowType getAdaptedShadowType()
getAdaptedShadowType in class ShadowTypepublic ShadowRealType[] getComponents(ShadowType type, boolean doRef) throws VisADException
getComponents in class ShadowTypetype - doRef - VisADExceptionpublic String getParentText()
getParentText in class ShadowTypepublic TextControl getParentTextControl()
getParentTextControl in class ShadowTypepublic void setText(String text, TextControl control)
setText in class ShadowTypetext - control - public Data getData()
getData in class ShadowTypepublic DisplayImpl getDisplay()
getDisplay in class ShadowTypepublic MathType getType()
getType in class ShadowTypepublic int getLevelOfDifficulty()
getLevelOfDifficulty in class ShadowTypepublic boolean getMultipleDisplayScalar()
getMultipleDisplayScalar in class ShadowTypepublic boolean getMappedDisplayScalar()
getMappedDisplayScalar in class ShadowTypepublic int[] getDisplayIndices()
getDisplayIndices in class ShadowTypepublic int[] getValueIndices()
getValueIndices in class ShadowTypepublic int checkIndices(int[] indices,
int[] display_indices,
int[] value_indices,
boolean[] isTransform,
int levelOfDifficulty)
throws VisADException,
RemoteException
checkIndices in class ShadowTypeindices - display_indices - value_indices - isTransform - levelOfDifficulty - RemoteExceptionVisADExceptionpublic void preProcess()
throws VisADException
VisADExceptionpublic boolean doTransform(Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer) throws VisADException, RemoteException
group - group to add todata - the data to transformvalue_array - the valuesdefault_values - the default valuesrenderer - the rendererRemoteExceptionVisADExceptionpublic void postProcess(Object group) throws VisADException
group - VisADExceptionpublic static void mapValues(float[][] display_values,
double[][] values,
ShadowRealType[] reals)
throws VisADException
display_values - values - reals - VisADExceptionpublic static void mapValues(float[][] display_values,
float[][] values,
ShadowRealType[] reals)
throws VisADException
display_values - values - reals - VisADExceptionpublic static void mapValues(float[][] display_values,
float[][] values,
ShadowRealType[] reals,
boolean copy)
throws VisADException
display_values - values - reals - copy - VisADExceptionpublic static VisADGeometryArray makePointGeometry(float[][] spatial_values, byte[][] color_values) throws VisADException
spatial_values - color_values - VisADExceptionpublic Appearance makeAppearance(GraphicsModeControl mode, TransparencyAttributes constant_alpha, ColoringAttributes constant_color, GeometryArray geometry, boolean no_material)
mode - GraphicsModeControlconstant_alpha - the constant alpha valueconstant_color - the constant color valuegeometry - the GeometryArrayno_material - flag for materialpublic static Appearance staticMakeAppearance(GraphicsModeControl mode, TransparencyAttributes constant_alpha, ColoringAttributes constant_color, GeometryArray geometry, boolean no_material)
mode - GraphicsModeControlconstant_alpha - transparency attributesconstant_color - color to usegeometry - geometry to use for the appearanceno_material - true to not use a Material for illumination, false to use it for
2-D geometriespublic 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 ShadowTypedisplay_values - valueArrayLength - valueToMap - MapVector - valueToScalar - display - default_values - inherited_values - spatial_values - color_values - range_select - index - shadow_api - RemoteExceptionVisADExceptionpublic 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 ShadowTypespatial_values - display_values - valueArrayLength - valueToScalar - display - default_values - inherited_values - domain_set - allSpatial - set_for_shape - spatialDimensions - range_select - flow1_values - flow2_values - flowScale - swap - renderer - shadow_api - RemoteExceptionVisADExceptionpublic 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
assembleFlow in class ShadowTypeflow1_values - flow2_values - flowScale - display_values - valueArrayLength - valueToScalar - display - default_values - range_select - renderer - shadow_api - RemoteExceptionVisADExceptionpublic VisADGeometryArray[] makeFlow(int which, float[][] flow_values, float flowScale, float arrowScale, float[][] spatial_values, byte[][] color_values, boolean[][] range_select) throws VisADException
ShadowTypemakeFlow in class ShadowTypewhich - flow_values - flowScale - spatial_values - color_values - range_select - VisADExceptionpublic 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 ShadowTypewhich - flow_values - flowScale - spatial_values - spatial_set - spatialManifoldDimension - color_values - range_select - valueArrayLength - valueToMap - MapVector - VisADExceptionpublic 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 ShadowTypevalueArrayLength - valueToScalar - display_values - inherited_values - MapVector - valueToMap - domain_length - range_select - spatialManifoldDimension - spatial_set - color_values - indexed - group - mode - swap - constant_alpha - constant_color - shadow_api - Domain - DomainReferenceComponents - domain_set - domain_units - dataCoordinateSystem - VisADExceptionpublic 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 ShadowTypeVisADExceptionpublic VisADGeometryArray makeText(String[] text_values, TextControl text_control, float[][] spatial_values, byte[][] color_values, boolean[][] range_select) throws VisADException
makeText in class ShadowTypetext_values - text_control - spatial_values - color_values - range_select - VisADExceptionpublic 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 ShadowTypedisplay_values - valueArrayLength - valueToScalar - display - default_values - range_select - single_missing - shadow_api - RemoteExceptionVisADExceptionpublic boolean[][] assembleSelect(float[][] display_values,
int domain_length,
int valueArrayLength,
int[] valueToScalar,
DisplayImpl display,
ShadowType shadow_api)
throws VisADException
assembleSelect in class ShadowTypedisplay_values - domain_length - valueArrayLength - valueToScalar - display - shadow_api - VisADExceptionpublic 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) throws VisADException, RemoteException
group - display_values - text_value - text_control - valueArrayLength - valueToScalar - default_values - inherited_values - renderer - RemoteExceptionVisADExceptionpublic void ensureNotEmpty(Object obj)
obj - public static void ensureNotEmpty(Object obj, DisplayImpl display)
obj - display - public boolean addToGroup(Object group, VisADGeometryArray array, GraphicsModeControl mode, float constant_alpha, float[] constant_color) throws VisADException
addToGroup in class ShadowTypegroup - Grouparray - array to addmode - GraphicsModeControlconstant_alpha - constant alpha valueconstant_color - constant color valueVisADException - unable to add the array to the grouppublic BranchGroup addToDetachableGroup(Object group, VisADGeometryArray array, GraphicsModeControl mode, float constant_alpha, float[] constant_color) throws VisADException
addToDetachableGroup in class ShadowTypeVisADExceptionpublic boolean addTextToGroup(Object group, VisADGeometryArray array, GraphicsModeControl mode, float constant_alpha, float[] constant_color) throws VisADException
addTextToGroup in class ShadowTypegroup - array - mode - constant_alpha - constant_color - VisADExceptionpublic boolean allowConstantColorSurfaces()
allowConstantColorSurfaces in class ShadowTypepublic String toString()
toString in class ShadowTypeCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.