visad.java3d
Class ShadowFunctionOrSetTypeJ3D
- java.lang.Object
-
- visad.ShadowType
-
- visad.java3d.ShadowTypeJ3D
-
- visad.java3d.ShadowFunctionOrSetTypeJ3D
-
- All Implemented Interfaces:
- java.io.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, trajectory1, trajectory2, yUp
-
-
Constructor Summary
Constructors Constructor and Description ShadowFunctionOrSetTypeJ3D(MathType t, DataDisplayLink link, ShadowType parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddSwitch(java.lang.Object group, java.lang.Object swit, Control control, Set domain_set, DataRenderer renderer)voidaddToGroup(java.lang.Object group, java.lang.Object branch)voidaddToSwitch(java.lang.Object swit, java.lang.Object branch)voidadjustZ(float[] coordinates)booleandoTransform(java.lang.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-processShadowRealTupleTypeJ3DgetDomain()intgetImageComponentType(int buffImgType)ShadowTypeJ3DgetRange()java.util.VectorgetTextMaps(int i, int[] textIndices)intgetTextureType(int buffImgType)java.lang.ObjectmakeBranch()javax.media.j3d.GeometryArray[]makeGeometrys(VisADGeometryArray array)java.lang.ObjectmakeSwitch()java.lang.ObjectmakeSwitch(int length)VisADGeometryArray[]makeVisADGeometrys(VisADGeometryArray array)voidpostProcess(java.lang.Object group)render accumulated Vector of value_array-s to and add to group; then clear AccumulationVectorvoidpostProcessTraj()voidpreProcess()clear AccumulationVectorbooleanrecurseRange(java.lang.Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer)float[]setTex3DCoords(int length, int axis, float ratiow, float ratioh, float ratiod)voidsetTexCoords(float[] texCoords, float ratiow, float ratioh)voidsetTexCoords(float[] texCoords, float ratiow, float ratioh, boolean yUp)float[]setTexStackCoords(int length, int axis, float ratiow, float ratioh, float ratiod)voidtexture3DToGroup(java.lang.Object group, VisADGeometryArray arrayX, VisADGeometryArray arrayY, VisADGeometryArray arrayZ, VisADGeometryArray arrayXrev, VisADGeometryArray arrayYrev, VisADGeometryArray arrayZrev, java.awt.image.BufferedImage[] images, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height, int texture_depth, DataRenderer renderer)inttextureDepth(int data_depth)Get the possibly adjusted texture depth.inttextureHeight(int data_height)Get the possibly adjusted texture height.voidtextureStackToGroup(java.lang.Object group, VisADGeometryArray arrayX, VisADGeometryArray arrayY, VisADGeometryArray arrayZ, VisADGeometryArray arrayXrev, VisADGeometryArray arrayYrev, VisADGeometryArray arrayZrev, java.awt.image.BufferedImage[] imagesX, java.awt.image.BufferedImage[] imagesY, java.awt.image.BufferedImage[] imagesZ, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height, int texture_depth, DataRenderer renderer)voidtextureToGroup(java.lang.Object group, VisADGeometryArray array, java.awt.image.BufferedImage image, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height)voidtextureToGroup(java.lang.Object group, VisADGeometryArray array, java.awt.image.BufferedImage image, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height, boolean byReference, boolean yUp, VisADImageTile tile)voidtextureToGroup(java.lang.Object group, VisADGeometryArray array, java.awt.image.BufferedImage image, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height, boolean byReference, boolean yUp, VisADImageTile tile, boolean smoothen)inttextureWidth(int data_width)Get the possibly adjusted texture width.booleanwantIndexed()-
Methods inherited from class visad.java3d.ShadowTypeJ3D
addLabelsToGroup, addTextToGroup, addToDetachableGroup, 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, adjustFlowToEarth, allowCurvedTexture, allowLinearContour, byteToFloat, floatToByte, getAdjustProjectionSeam, getAnyContour, getAnyFlow, getAnyShape, getAnyText, getComponentIndex, getComponentWithRef, getCurvedTexture, getDefaultColorIndex, getFlowInfo, getIsLinearContour3D, getIsTerminal, getIsTexture3D, getIsTextureMap, getLink, getMultipleSpatialDisplayScalar, getRefToComponent, makePointGeometry, makeSpatialSet, makeTrajColor, makeTrajFlow, recurseComponent, terminalTupleOrScalar
-
-
-
-
Constructor Detail
-
ShadowFunctionOrSetTypeJ3D
public ShadowFunctionOrSetTypeJ3D(MathType t, DataDisplayLink link, ShadowType parent) throws VisADException, java.rmi.RemoteException
- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
Method Detail
-
getDomain
public ShadowRealTupleTypeJ3D getDomain()
-
getRange
public ShadowTypeJ3D getRange()
-
preProcess
public void preProcess() throws VisADExceptionclear AccumulationVector- Overrides:
preProcessin classShadowTypeJ3D- Throws:
VisADException
-
doTransform
public boolean doTransform(java.lang.Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer) throws VisADException, java.rmi.RemoteExceptiontransform 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:
doTransformin classShadowTypeJ3D- Parameters:
group- group to add todata- the data to transformvalue_array- the valuesdefault_values- the default valuesrenderer- the renderer- Returns:
- false
- Throws:
VisADExceptionjava.rmi.RemoteException
-
textureWidth
public int textureWidth(int data_width)
Get the possibly adjusted texture width.- Overrides:
textureWidthin classShadowType- Parameters:
data_width- The initial texture width.- Returns:
- If
DisplayImplJ3D.TEXTURE_NPOTthen returndata_width, otherwise return the minimum power of two greater thandata_width. - See Also:
DisplayImplJ3D.TEXTURE_NPOT
-
textureHeight
public int textureHeight(int data_height)
Get the possibly adjusted texture height.- Overrides:
textureHeightin classShadowType- Parameters:
data_height- The initial texture height.- Returns:
- If
DisplayImplJ3D.TEXTURE_NPOTthen returndata_height, otherwise return the minimum power of two greater thandata_height. - See Also:
DisplayImplJ3D.TEXTURE_NPOT
-
textureDepth
public int textureDepth(int data_depth)
Get the possibly adjusted texture depth.- Overrides:
textureDepthin classShadowType- Parameters:
data_depth- The initial texture depth.- Returns:
- If
DisplayImplJ3D.TEXTURE_NPOTthen returndata_depth, otherwise return the minimum power of two greater thandata_depth. - See Also:
DisplayImplJ3D.TEXTURE_NPOT
-
adjustZ
public void adjustZ(float[] coordinates)
- Overrides:
adjustZin classShadowType
-
getImageComponentType
public int getImageComponentType(int buffImgType)
-
getTextureType
public int getTextureType(int buffImgType)
-
setTexCoords
public void setTexCoords(float[] texCoords, float ratiow, float ratioh)- Overrides:
setTexCoordsin classShadowType
-
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:
setTex3DCoordsin classShadowType
-
setTexStackCoords
public float[] setTexStackCoords(int length, int axis, float ratiow, float ratioh, float ratiod)- Overrides:
setTexStackCoordsin classShadowType
-
getTextMaps
public java.util.Vector getTextMaps(int i, int[] textIndices)- Overrides:
getTextMapsin classShadowType
-
textureToGroup
public void textureToGroup(java.lang.Object group, VisADGeometryArray array, java.awt.image.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(java.lang.Object group, VisADGeometryArray array, java.awt.image.BufferedImage image, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height) throws VisADException- Overrides:
textureToGroupin classShadowType- Throws:
VisADException
-
textureToGroup
public void textureToGroup(java.lang.Object group, VisADGeometryArray array, java.awt.image.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(java.lang.Object group, VisADGeometryArray arrayX, VisADGeometryArray arrayY, VisADGeometryArray arrayZ, VisADGeometryArray arrayXrev, VisADGeometryArray arrayYrev, VisADGeometryArray arrayZrev, java.awt.image.BufferedImage[] images, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height, int texture_depth, DataRenderer renderer) throws VisADException- Overrides:
texture3DToGroupin classShadowType- Throws:
VisADException
-
textureStackToGroup
public void textureStackToGroup(java.lang.Object group, VisADGeometryArray arrayX, VisADGeometryArray arrayY, VisADGeometryArray arrayZ, VisADGeometryArray arrayXrev, VisADGeometryArray arrayYrev, VisADGeometryArray arrayZrev, java.awt.image.BufferedImage[] imagesX, java.awt.image.BufferedImage[] imagesY, java.awt.image.BufferedImage[] imagesZ, GraphicsModeControl mode, float constant_alpha, float[] constant_color, int texture_width, int texture_height, int texture_depth, DataRenderer renderer) throws VisADException- Overrides:
textureStackToGroupin classShadowType- Throws:
VisADException
-
makeGeometrys
public javax.media.j3d.GeometryArray[] makeGeometrys(VisADGeometryArray array) throws VisADException
- Throws:
VisADException
-
makeVisADGeometrys
public VisADGeometryArray[] makeVisADGeometrys(VisADGeometryArray array) throws VisADException
- Throws:
VisADException
-
makeSwitch
public java.lang.Object makeSwitch()
- Overrides:
makeSwitchin classShadowType
-
makeSwitch
public java.lang.Object makeSwitch(int length) throws VisADException- Throws:
VisADException
-
makeBranch
public java.lang.Object makeBranch()
- Overrides:
makeBranchin classShadowType
-
addToGroup
public void addToGroup(java.lang.Object group, java.lang.Object branch) throws VisADException- Overrides:
addToGroupin classShadowType- Throws:
VisADException
-
addToSwitch
public void addToSwitch(java.lang.Object swit, java.lang.Object branch) throws VisADException- Overrides:
addToSwitchin classShadowType- Throws:
VisADException
-
addSwitch
public void addSwitch(java.lang.Object group, java.lang.Object swit, Control control, Set domain_set, DataRenderer renderer) throws VisADException- Overrides:
addSwitchin classShadowType- Throws:
VisADException
-
recurseRange
public boolean recurseRange(java.lang.Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer) throws VisADException, java.rmi.RemoteException- Overrides:
recurseRangein classShadowType- Throws:
VisADExceptionjava.rmi.RemoteException
-
wantIndexed
public boolean wantIndexed()
- Overrides:
wantIndexedin classShadowType
-
postProcessTraj
public void postProcessTraj() throws VisADException- Throws:
VisADException
-
postProcess
public void postProcess(java.lang.Object group) throws VisADExceptionrender accumulated Vector of value_array-s to and add to group; then clear AccumulationVector- Overrides:
postProcessin classShadowTypeJ3D- Throws:
VisADException
-
-
DMelt 3.0 © DataMelt by jWork.ORG