|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.DataRenderer visad.java3d.RendererJ3D visad.java3d.DefaultRendererJ3D visad.bom.ImageRendererJ3D
public class ImageRendererJ3D
ImageRendererJ3D is the VisAD class for fast loading of images and image sequences under Java3D. WARNING - when reUseFrames is true during doTransform() ImageRendererJ3D makes these assumptions: 1. That the images in a new time sequence are identical to any images at the same time in a previous sequence. 2. That the image sequence defines the entire animation sampling.
Field Summary |
---|
Fields inherited from class visad.DataRenderer |
---|
enabled, pickCrawlToCursor |
Constructor Summary | |
---|---|
ImageRendererJ3D()
|
Method Summary | |
---|---|
void |
clearScene()
clear any scene graph created by this DataRenderer, and clear all instance variables |
Object |
clone()
|
BranchGroup |
doTransform()
create a BranchGroup scene graph for Data in links[0] |
VisADImageNode |
getImageNode()
|
boolean |
getLastAdjustProjectionSeam()
|
float |
getLastAlphaValue()
|
int |
getLastCurveSize()
|
long |
getLastDataHashCode()
|
float |
getLastZAxisValue()
|
boolean |
getReUseFrames()
|
boolean |
getSetSetOnReUseFrames()
|
static boolean |
isByRefUsable(DataDisplayLink link,
ShadowType shadow)
|
static boolean |
isImageType(MathType type)
determine whether the given MathType is usable with ImageRendererJ3D |
static boolean |
isRendererUsable(MathType type,
ScalarMap[] maps)
determine whether the given MathType and collection of ScalarMaps meets the criteria to use ImageRendererJ3D. |
static void |
main(String[] args)
run 'java visad.bom.ImageRendererJ3D len step' to test animation behavior of ImageRendererJ3D renders a loop of len at step ms per frame then updates loop by deleting first time and adding a new last time |
ShadowType |
makeShadowFunctionType(FunctionType type,
DataDisplayLink link,
ShadowType parent)
factory method for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowFunctionType; ShadowType trees are constructed that 'shadow' the MathType trees of Data to be depicted, via recursive calls to buildShadowType() methods of MathType sub-classes, to DataRenderer.makeShadow*Type() methods, to Shadow*Type constructors, then back to buildShadowType() methods; the recursive call chain is initiated by DataDisplayLink.prepareData() calls to buildShadowType() methods of MathType sub-classes; |
void |
setImageNode(VisADImageNode node)
|
void |
setLastAdjustProjectionSeam(boolean adjust)
|
void |
setLastAlphaValue(float alpha)
|
void |
setLastCurveSize(int csize)
|
void |
setLastDataHashCode(long lastdata_hashcode)
|
void |
setLastZAxisValue(float zaxis_value)
|
void |
setReUseFrames()
Deprecated. - use setReUseFrames(boolean reuse) |
void |
setReUseFrames(boolean reuse)
Toggle the re-using of frames when a new image or set of images is set in the datareference. |
void |
setSetSetOnReUseFrames(boolean ss)
|
void |
suggestBufImageType(int imageType)
Suggest to the underlying shadow type the buffered image type to use. |
static void |
verifyImageRendererUsable(MathType type,
ScalarMap[] maps)
Deprecated. Use isRendererUsable(MathType, ScalarMap[]) instead. |
Methods inherited from class visad.java3d.DefaultRendererJ3D |
---|
addSwitch, getLink, setLinks |
Methods inherited from class visad.java3d.RendererJ3D |
---|
clearBranch, doAction, flush, getBranch, makeShadowRealTupleType, makeShadowRealType, makeShadowSetType, makeShadowTextType, makeShadowTupleType, setBranchEarly, toggle |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageRendererJ3D()
Method Detail |
---|
public static boolean isImageType(MathType type)
public static void verifyImageRendererUsable(MathType type, ScalarMap[] maps) throws VisADException
VisADException
public static boolean isRendererUsable(MathType type, ScalarMap[] maps) throws VisADException
VisADException
public static boolean isByRefUsable(DataDisplayLink link, ShadowType shadow) throws VisADException, RemoteException
VisADException
RemoteException
public ShadowType makeShadowFunctionType(FunctionType type, DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
DataRenderer
makeShadowFunctionType
in class RendererJ3D
type
- FunctionType that returned ShadowType will shadowlink
- DataDisplayLink linking Data to be depictedparent
- parent in ShadowType tree structure
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic void setReUseFrames(boolean reuse)
WARNING - when reUseFrames is true during doTransform() ImageRendererJ3D makes these assumptions:
public void suggestBufImageType(int imageType)
public void setImageNode(VisADImageNode node)
public VisADImageNode getImageNode()
public void setReUseFrames()
public boolean getReUseFrames()
public void setSetSetOnReUseFrames(boolean ss)
public boolean getSetSetOnReUseFrames()
public void clearScene()
DataRenderer
clearScene
in class DefaultRendererJ3D
public BranchGroup doTransform() throws VisADException, RemoteException
DefaultRendererJ3D
doTransform
in class DefaultRendererJ3D
VisADException
RemoteException
public Object clone()
clone
in class DefaultRendererJ3D
public static void main(String[] args) throws VisADException, RemoteException, IOException
VisADException
RemoteException
IOException
public int getLastCurveSize()
public void setLastCurveSize(int csize)
public float getLastZAxisValue()
public void setLastZAxisValue(float zaxis_value)
public float getLastAlphaValue()
public void setLastAlphaValue(float alpha)
public long getLastDataHashCode()
public void setLastDataHashCode(long lastdata_hashcode)
public boolean getLastAdjustProjectionSeam()
public void setLastAdjustProjectionSeam(boolean adjust)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |