visad.bom
Class ShadowImageFunctionTypeJ3D

java.lang.Object
  extended by visad.ShadowType
      extended by visad.java3d.ShadowTypeJ3D
          extended by visad.java3d.ShadowFunctionOrSetTypeJ3D
              extended by visad.java3d.ShadowFunctionTypeJ3D
                  extended by visad.bom.ShadowImageFunctionTypeJ3D
All Implemented Interfaces:
Serializable

public class ShadowImageFunctionTypeJ3D
extends ShadowFunctionTypeJ3D

The ShadowImageFunctionTypeJ3D class shadows the FunctionType class for ImageRendererJ3D, within a DataDisplayLink, under Java3D.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class visad.java3d.ShadowTypeJ3D
appearanceCnt, shape3DCnt
 
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
ShadowImageFunctionTypeJ3D(MathType t, DataDisplayLink link, ShadowType parent)
           
 
Method Summary
 void buildCurvedTexture(Object group, Set domain_set, Unit[] dataUnits, Unit[] domain_units, float[] default_values, ShadowRealType[] DomainComponents, int valueArrayLength, int[] inherited_values, int[] valueToScalar, GraphicsModeControl mode, float constant_alpha, float[] value_array, float[] constant_color, byte[][] color_bytes, DisplayImpl display, int curved_size, ShadowRealTupleType Domain, CoordinateSystem dataCoordinateSystem, DataRenderer renderer, ShadowFunctionOrSetType adaptedShadowType, int[] start, int lenX, int lenY, float[][] samples, int bigX, int bigY)
           
 void buildLinearTexture(Object group, Set domain_set, Unit[] dataUnits, Unit[] domain_units, float[] default_values, ShadowRealType[] DomainComponents, int valueArrayLength, int[] inherited_values, int[] valueToScalar, GraphicsModeControl mode, float constant_alpha, float[] value_array, float[] constant_color, byte[][] color_bytes, DisplayImpl display)
           
 BufferedImage createImage(int data_width, int data_height, int texture_width, int texture_height, byte[][] color_bytes)
           
 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
static void main(String[] args)
           
 
Methods inherited from class visad.java3d.ShadowFunctionOrSetTypeJ3D
addSwitch, addToGroup, addToSwitch, adjustZ, getDomain, getImageComponentType, getRange, getTextMaps, getTextureType, makeBranch, makeGeometrys, makeSwitch, makeSwitch, makeVisADGeometrys, postProcess, preProcess, recurseRange, setTex3DCoords, setTexCoords, setTexCoords, setTexStackCoords, texture3DToGroup, textureDepth, textureHeight, textureStackToGroup, textureToGroup, textureToGroup, textureToGroup, textureWidth, wantIndexed
 
Methods inherited from class visad.java3d.ShadowTypeJ3D
addLabelsToGroup, addTextToGroup, addToGroup, allowConstantColorSurfaces, assembleColor, assembleFlow, assembleSelect, assembleShape, assembleSpatial, checkIndices, ensureNotEmpty, ensureNotEmpty, getAdaptedParent, getAdaptedShadowType, getComponents, getData, getDisplay, getDisplayIndices, getLevelOfDifficulty, getMappedDisplayScalar, getMultipleDisplayScalar, getParentText, getParentTextControl, getType, getValueIndices, makeAppearance, makeContour, makeFlow, makePointGeometry, makeStreamline, makeText, mapValues, mapValues, mapValues, setText, staticMakeAppearance, terminalTupleOrScalar, toString
 
Methods inherited from class visad.ShadowType
adjustFlowToEarth, adjustFlowToEarth, allowCurvedTexture, allowLinearContour, byteToFloat, floatToByte, getAdjustProjectionSeam, getAnyContour, getAnyFlow, getAnyShape, getAnyText, getComponentIndex, getComponentWithRef, getCurvedTexture, getDefaultColorIndex, getIsLinearContour3D, getIsTerminal, getIsTexture3D, getIsTextureMap, getLink, getMultipleSpatialDisplayScalar, getRefToComponent, makePointGeometry, makeSpatialSet, recurseComponent, terminalTupleOrScalar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShadowImageFunctionTypeJ3D

public ShadowImageFunctionTypeJ3D(MathType t,
                                  DataDisplayLink link,
                                  ShadowType parent)
                           throws VisADException,
                                  RemoteException
Throws:
VisADException
RemoteException
Method Detail

doTransform

public boolean doTransform(Object group,
                           Data data,
                           float[] value_array,
                           float[] default_values,
                           DataRenderer renderer)
                    throws VisADException,
                           RemoteException
Description copied from class: ShadowFunctionOrSetTypeJ3D
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

Overrides:
doTransform in class ShadowFunctionOrSetTypeJ3D
Parameters:
group - group to add to
data - the data to transform
value_array - the values
default_values - the default values
renderer - the renderer
Returns:
false
Throws:
VisADException
RemoteException

buildCurvedTexture

public void buildCurvedTexture(Object group,
                               Set domain_set,
                               Unit[] dataUnits,
                               Unit[] domain_units,
                               float[] default_values,
                               ShadowRealType[] DomainComponents,
                               int valueArrayLength,
                               int[] inherited_values,
                               int[] valueToScalar,
                               GraphicsModeControl mode,
                               float constant_alpha,
                               float[] value_array,
                               float[] constant_color,
                               byte[][] color_bytes,
                               DisplayImpl display,
                               int curved_size,
                               ShadowRealTupleType Domain,
                               CoordinateSystem dataCoordinateSystem,
                               DataRenderer renderer,
                               ShadowFunctionOrSetType adaptedShadowType,
                               int[] start,
                               int lenX,
                               int lenY,
                               float[][] samples,
                               int bigX,
                               int bigY)
                        throws VisADException,
                               DisplayException
Throws:
VisADException
DisplayException

buildLinearTexture

public void buildLinearTexture(Object group,
                               Set domain_set,
                               Unit[] dataUnits,
                               Unit[] domain_units,
                               float[] default_values,
                               ShadowRealType[] DomainComponents,
                               int valueArrayLength,
                               int[] inherited_values,
                               int[] valueToScalar,
                               GraphicsModeControl mode,
                               float constant_alpha,
                               float[] value_array,
                               float[] constant_color,
                               byte[][] color_bytes,
                               DisplayImpl display)
                        throws VisADException,
                               DisplayException
Throws:
VisADException
DisplayException

createImage

public BufferedImage createImage(int data_width,
                                 int data_height,
                                 int texture_width,
                                 int texture_height,
                                 byte[][] color_bytes)
                          throws VisADException
Throws:
VisADException

main

public static void main(String[] args)