visad.java3d
Class ShadowFunctionOrSetTypeJ3D

java.lang.Object
  extended by visad.ShadowType
      extended by visad.java3d.ShadowTypeJ3D
          extended by visad.java3d.ShadowFunctionOrSetTypeJ3D
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ShadowFunctionTypeJ3D, ShadowSetTypeJ3D

public class ShadowFunctionOrSetTypeJ3D
extends ShadowTypeJ3D

The ShadowFunctionOrSetTypeJ3D is an abstract parent for ShadowFunctionTypeJ3D and ShadowSetTypeJ3D.

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
ShadowFunctionOrSetTypeJ3D(MathType t, DataDisplayLink link, ShadowType parent)
           
 
Method Summary
 void addSwitch(Object group, Object swit, Control control, Set domain_set, DataRenderer renderer)
           
 void addToGroup(Object group, Object branch)
           
 void addToSwitch(Object swit, Object branch)
           
 void adjustZ(float[] coordinates)
           
 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
 ShadowRealTupleTypeJ3D getDomain()
           
 int getImageComponentType(int buffImgType)
           
 ShadowTypeJ3D getRange()
           
 Vector getTextMaps(int i, int[] textIndices)
           
 int getTextureType(int buffImgType)
           
 Object makeBranch()
           
 GeometryArray[] makeGeometrys(VisADGeometryArray array)
           
 Object makeSwitch()
           
 Object makeSwitch(int length)
           
 VisADGeometryArray[] makeVisADGeometrys(VisADGeometryArray array)
           
 void postProcess(Object group)
          render accumulated Vector of value_array-s to and add to group; then clear AccumulationVector
 void preProcess()
          clear AccumulationVector
 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)
           
 void setTexCoords(float[] texCoords, float ratiow, float ratioh, boolean yUp)
           
 float[] setTexStackCoords(int length, int axis, float ratiow, float ratioh, float ratiod)
           
 void texture3DToGroup(Object group, VisADGeometryArray arrayX, VisADGeometryArray arrayY, VisADGeometryArray arrayZ, VisADGeometryArray arrayXrev, VisADGeometryArray arrayYrev, VisADGeometryArray arrayZrev, 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)
          Get the possibly adjusted texture depth.
 int textureHeight(int data_height)
          Get the possibly adjusted texture height.
 void textureStackToGroup(Object group, VisADGeometryArray arrayX, VisADGeometryArray arrayY, VisADGeometryArray arrayZ, VisADGeometryArray arrayXrev, VisADGeometryArray arrayYrev, VisADGeometryArray arrayZrev, BufferedImage[] imagesX, BufferedImage[] imagesY, BufferedImage[] 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, BufferedImage image, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height)
           
 void textureToGroup(Object group, VisADGeometryArray array, BufferedImage image, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height, boolean byReference, boolean yUp, VisADImageTile tile)
           
 void textureToGroup(Object group, VisADGeometryArray array, BufferedImage image, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height, boolean byReference, boolean yUp, VisADImageTile tile, boolean smoothen)
           
 int textureWidth(int data_width)
          Get the possibly adjusted texture width.
 boolean 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

ShadowFunctionOrSetTypeJ3D

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

getDomain

public ShadowRealTupleTypeJ3D getDomain()

getRange

public ShadowTypeJ3D getRange()

preProcess

public void preProcess()
                throws VisADException
clear AccumulationVector

Overrides:
preProcess in class ShadowTypeJ3D
Throws:
VisADException

doTransform

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

textureWidth

public int textureWidth(int data_width)
Get the possibly adjusted texture width.

Overrides:
textureWidth in class ShadowType
Parameters:
data_width - The initial texture width.
Returns:
If DisplayImplJ3D.TEXTURE_NPOT then return data_width, otherwise return the minimum power of two greater than data_width.
See Also:
DisplayImplJ3D.TEXTURE_NPOT

textureHeight

public int textureHeight(int data_height)
Get the possibly adjusted texture height.

Overrides:
textureHeight in class ShadowType
Parameters:
data_height - The initial texture height.
Returns:
If DisplayImplJ3D.TEXTURE_NPOT then return data_height, otherwise return the minimum power of two greater than data_height.
See Also:
DisplayImplJ3D.TEXTURE_NPOT

textureDepth

public int textureDepth(int data_depth)
Get the possibly adjusted texture depth.

Overrides:
textureDepth in class ShadowType
Parameters:
data_depth - The initial texture depth.
Returns:
If DisplayImplJ3D.TEXTURE_NPOT then return data_depth, otherwise return the minimum power of two greater than data_depth.
See Also:
DisplayImplJ3D.TEXTURE_NPOT

adjustZ

public void adjustZ(float[] coordinates)
Overrides:
adjustZ in class ShadowType

getImageComponentType

public int getImageComponentType(int buffImgType)

getTextureType

public int getTextureType(int buffImgType)

setTexCoords

public void setTexCoords(float[] texCoords,
                         float ratiow,
                         float ratioh)
Overrides:
setTexCoords in class ShadowType

setTexCoords

public void setTexCoords(float[] texCoords,
                         float ratiow,
                         float ratioh,
                         boolean yUp)

setTex3DCoords

public float[] setTex3DCoords(int length,
                              int axis,
                              float ratiow,
                              float ratioh,
                              float ratiod)
Overrides:
setTex3DCoords in class ShadowType

setTexStackCoords

public float[] setTexStackCoords(int length,
                                 int axis,
                                 float ratiow,
                                 float ratioh,
                                 float ratiod)
Overrides:
setTexStackCoords in class ShadowType

getTextMaps

public Vector getTextMaps(int i,
                          int[] textIndices)
Overrides:
getTextMaps in class ShadowType

textureToGroup

public void textureToGroup(Object group,
                           VisADGeometryArray array,
                           BufferedImage image,
                           GraphicsModeControl mode,
                           float constant_alpha,
                           float[] constant_color,
                           int texture_width,
                           int texture_height,
                           boolean byReference,
                           boolean yUp,
                           VisADImageTile tile)
                    throws VisADException
Throws:
VisADException

textureToGroup

public void textureToGroup(Object group,
                           VisADGeometryArray array,
                           BufferedImage image,
                           GraphicsModeControl mode,
                           float constant_alpha,
                           float[] constant_color,
                           int texture_width,
                           int texture_height)
                    throws VisADException
Overrides:
textureToGroup in class ShadowType
Throws:
VisADException

textureToGroup

public void textureToGroup(Object group,
                           VisADGeometryArray array,
                           BufferedImage image,
                           GraphicsModeControl mode,
                           float constant_alpha,
                           float[] constant_color,
                           int texture_width,
                           int texture_height,
                           boolean byReference,
                           boolean yUp,
                           VisADImageTile tile,
                           boolean smoothen)
                    throws VisADException
Throws:
VisADException

texture3DToGroup

public void texture3DToGroup(Object group,
                             VisADGeometryArray arrayX,
                             VisADGeometryArray arrayY,
                             VisADGeometryArray arrayZ,
                             VisADGeometryArray arrayXrev,
                             VisADGeometryArray arrayYrev,
                             VisADGeometryArray arrayZrev,
                             BufferedImage[] images,
                             GraphicsModeControl mode,
                             float constant_alpha,
                             float[] constant_color,
                             int texture_width,
                             int texture_height,
                             int texture_depth,
                             DataRenderer renderer)
                      throws VisADException
Overrides:
texture3DToGroup in class ShadowType
Throws:
VisADException

textureStackToGroup

public void textureStackToGroup(Object group,
                                VisADGeometryArray arrayX,
                                VisADGeometryArray arrayY,
                                VisADGeometryArray arrayZ,
                                VisADGeometryArray arrayXrev,
                                VisADGeometryArray arrayYrev,
                                VisADGeometryArray arrayZrev,
                                BufferedImage[] imagesX,
                                BufferedImage[] imagesY,
                                BufferedImage[] imagesZ,
                                GraphicsModeControl mode,
                                float constant_alpha,
                                float[] constant_color,
                                int texture_width,
                                int texture_height,
                                int texture_depth,
                                DataRenderer renderer)
                         throws VisADException
Overrides:
textureStackToGroup in class ShadowType
Throws:
VisADException

makeGeometrys

public GeometryArray[] makeGeometrys(VisADGeometryArray array)
                              throws VisADException
Throws:
VisADException

makeVisADGeometrys

public VisADGeometryArray[] makeVisADGeometrys(VisADGeometryArray array)
                                        throws VisADException
Throws:
VisADException

makeSwitch

public Object makeSwitch()
Overrides:
makeSwitch in class ShadowType

makeSwitch

public Object makeSwitch(int length)
                  throws VisADException
Throws:
VisADException

makeBranch

public Object makeBranch()
Overrides:
makeBranch in class ShadowType

addToGroup

public void addToGroup(Object group,
                       Object branch)
                throws VisADException
Overrides:
addToGroup in class ShadowType
Throws:
VisADException

addToSwitch

public void addToSwitch(Object swit,
                        Object branch)
                 throws VisADException
Overrides:
addToSwitch in class ShadowType
Throws:
VisADException

addSwitch

public void addSwitch(Object group,
                      Object swit,
                      Control control,
                      Set domain_set,
                      DataRenderer renderer)
               throws VisADException
Overrides:
addSwitch in class ShadowType
Throws:
VisADException

recurseRange

public boolean recurseRange(Object group,
                            Data data,
                            float[] value_array,
                            float[] default_values,
                            DataRenderer renderer)
                     throws VisADException,
                            RemoteException
Overrides:
recurseRange in class ShadowType
Throws:
VisADException
RemoteException

wantIndexed

public boolean wantIndexed()
Overrides:
wantIndexed in class ShadowType

postProcess

public void postProcess(Object group)
                 throws VisADException
render accumulated Vector of value_array-s to and add to group; then clear AccumulationVector

Overrides:
postProcess in class ShadowTypeJ3D
Throws:
VisADException