visad.cluster
Class NodeRendererJ3D

java.lang.Object
  extended by visad.DataRenderer
      extended by visad.java3d.RendererJ3D
          extended by visad.java3d.DefaultRendererJ3D
              extended by visad.cluster.NodeRendererJ3D
All Implemented Interfaces:
java.lang.Cloneable

public class NodeRendererJ3D
extends DefaultRendererJ3D

NodeRendererJ3D is the VisAD class for transforming data into VisADSceneGraphObjects, but not rendering, on cluster nodes


Field Summary
 
Fields inherited from class visad.DataRenderer
enabled, pickCrawlToCursor
 
Constructor Summary
NodeRendererJ3D()
          this constructor is need for NodeDisplayRendererJ3D.makeDefaultRenderer() but it should never be called
NodeRendererJ3D(NodeAgent a)
          this DataRenderer transforms data into VisADSceneGraphObjects, but does not render, on cluster nodes; send scene graphs back via NodeAgent
 
Method Summary
 java.lang.Object clone()
           
 boolean doAction()
          re-transform if needed; return false if not done
 void enableTransform()
           
 boolean fakeTransform()
          create a VisADGroup scene graph for Data in links[0]; a substitute for doTransform() without and Java3D classes in its signature
 int getResolution()
           
static void main(java.lang.String[] args)
           
 ShadowType makeShadowFunctionType(FunctionType type, DataDisplayLink link, ShadowType parent)
          factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowFunctionType; these factories are invoked by the buildShadowType methods of the MathType subclasses, which are invoked by DataDisplayLink.prepareData, which is invoked by DataRenderer.prepareAction
 ShadowType makeShadowRealTupleType(RealTupleType type, DataDisplayLink link, ShadowType parent)
          factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowRealTupleType
 ShadowType makeShadowRealType(RealType type, DataDisplayLink link, ShadowType parent)
          factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowRealType
 ShadowType makeShadowSetType(SetType type, DataDisplayLink link, ShadowType parent)
          factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowSetType
 ShadowType makeShadowTupleType(TupleType type, DataDisplayLink link, ShadowType parent)
          factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowTupleType
 DataShadow prepareAction(boolean go, boolean initialize, DataShadow shadow)
          check if re-transform is needed; if initialize is true then compute ranges for RealType-s and Animation sampling
 void setResolution(int r)
           
 
Methods inherited from class visad.java3d.DefaultRendererJ3D
doTransform, getLink, setLinks
 
Methods inherited from class visad.java3d.RendererJ3D
clearBranch, clearScene, flush, getBranch, makeShadowTextType, setBranchEarly, toggle
 
Methods inherited from class visad.DataRenderer
addException, addPoint, checkAction, checkClose, checkDirect, clearAVControls, clearExceptions, computeRanges, drag_direct, earthToSpatial, earthToSpatial, findRayManifoldIntersection, get_all_feasible, get_any_changed, get_any_transform_control, getBadScale, getDisplay, getDisplayCoordinateSystem, getDisplayRenderer, getEarthDimension, getEarthUnits, getEnabled, getExceptionVector, getIsDirectManipulation, getLastMouseModifiers, getLatLonIndices, getLatLonRange, getLinks, getPickCrawlToCursor, getRanges, getRealVectorTypes, getWhyNotDirect, isLegalTextureMap, isTransformControl, realCheckDirect, release_direct, removeLink, set_all_feasible, setDisplay, setDisplayRenderer, setEarthSpatialData, setEarthSpatialDisplay, setIsDirectManipulation, setLastMouseModifiers, setLatLonIndices, setLinks, setPickCrawlToCursor, setSpatialValues, spatialToEarth, spatialToEarth, stop_direct, suppressExceptions
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeRendererJ3D

public NodeRendererJ3D()
this constructor is need for NodeDisplayRendererJ3D.makeDefaultRenderer() but it should never be called


NodeRendererJ3D

public NodeRendererJ3D(NodeAgent a)
this DataRenderer transforms data into VisADSceneGraphObjects, but does not render, on cluster nodes; send scene graphs back via NodeAgent

Method Detail

makeShadowFunctionType

public ShadowType makeShadowFunctionType(FunctionType type,
                                         DataDisplayLink link,
                                         ShadowType parent)
                                  throws VisADException,
                                         java.rmi.RemoteException
Description copied from class: DataRenderer
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowFunctionType; these factories are invoked by the buildShadowType methods of the MathType subclasses, which are invoked by DataDisplayLink.prepareData, which is invoked by DataRenderer.prepareAction

Overrides:
makeShadowFunctionType in class RendererJ3D
Throws:
VisADException
java.rmi.RemoteException

makeShadowRealTupleType

public ShadowType makeShadowRealTupleType(RealTupleType type,
                                          DataDisplayLink link,
                                          ShadowType parent)
                                   throws VisADException,
                                          java.rmi.RemoteException
Description copied from class: DataRenderer
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowRealTupleType

Overrides:
makeShadowRealTupleType in class RendererJ3D
Throws:
VisADException
java.rmi.RemoteException

makeShadowRealType

public ShadowType makeShadowRealType(RealType type,
                                     DataDisplayLink link,
                                     ShadowType parent)
                              throws VisADException,
                                     java.rmi.RemoteException
Description copied from class: DataRenderer
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowRealType

Overrides:
makeShadowRealType in class RendererJ3D
Throws:
VisADException
java.rmi.RemoteException

makeShadowSetType

public ShadowType makeShadowSetType(SetType type,
                                    DataDisplayLink link,
                                    ShadowType parent)
                             throws VisADException,
                                    java.rmi.RemoteException
Description copied from class: DataRenderer
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowSetType

Overrides:
makeShadowSetType in class RendererJ3D
Throws:
VisADException
java.rmi.RemoteException

makeShadowTupleType

public ShadowType makeShadowTupleType(TupleType type,
                                      DataDisplayLink link,
                                      ShadowType parent)
                               throws VisADException,
                                      java.rmi.RemoteException
Description copied from class: DataRenderer
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowTupleType

Overrides:
makeShadowTupleType in class RendererJ3D
Throws:
VisADException
java.rmi.RemoteException

setResolution

public void setResolution(int r)

getResolution

public int getResolution()

enableTransform

public void enableTransform()

prepareAction

public DataShadow prepareAction(boolean go,
                                boolean initialize,
                                DataShadow shadow)
                         throws VisADException,
                                java.rmi.RemoteException
Description copied from class: DataRenderer
check if re-transform is needed; if initialize is true then compute ranges for RealType-s and Animation sampling

Overrides:
prepareAction in class DataRenderer
Throws:
VisADException
java.rmi.RemoteException

doAction

public boolean doAction()
                 throws VisADException,
                        java.rmi.RemoteException
re-transform if needed; return false if not done

Overrides:
doAction in class RendererJ3D
Throws:
VisADException
java.rmi.RemoteException

fakeTransform

public boolean fakeTransform()
                      throws VisADException,
                             java.rmi.RemoteException
create a VisADGroup scene graph for Data in links[0]; a substitute for doTransform() without and Java3D classes in its signature

Throws:
VisADException
java.rmi.RemoteException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class DefaultRendererJ3D
Throws:
java.lang.CloneNotSupportedException

main

public static void main(java.lang.String[] args)
                 throws VisADException,
                        java.rmi.RemoteException
Throws:
VisADException
java.rmi.RemoteException