visad.cluster
Class NodeRendererJ3D
- java.lang.Object
-
- visad.DataRenderer
-
- visad.java3d.RendererJ3D
-
- visad.java3d.DefaultRendererJ3D
-
- 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
-
-
Constructor Summary
Constructors Constructor and Description NodeRendererJ3D()this constructor is need for NodeDisplayRendererJ3D.makeDefaultRenderer() but it should never be calledNodeRendererJ3D(NodeAgent a)this DataRenderer transforms data into VisADSceneGraphObjects, but does not render, on cluster nodes; send scene graphs back via NodeAgent
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()booleandoAction()re-transform if needed; return false if not donevoidenableTransform()booleanfakeTransform()create a VisADGroup scene graph for Data in links[0]; a substitute for doTransform() without and Java3D classes in its signatureintgetResolution()static voidmain(java.lang.String[] args)ShadowTypemakeShadowFunctionType(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;ShadowTypemakeShadowRealTupleType(RealTupleType type, DataDisplayLink link, ShadowType parent)factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowRealTupleType; 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;ShadowTypemakeShadowRealType(RealType type, DataDisplayLink link, ShadowType parent)factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowRealType; 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;ShadowTypemakeShadowSetType(SetType type, DataDisplayLink link, ShadowType parent)factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowSetType; 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;ShadowTypemakeShadowTupleType(TupleType type, DataDisplayLink link, ShadowType parent)factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowTupleType; 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;DataShadowprepareAction(boolean go, boolean initialize, DataShadow shadow)check if re-transform is needed; if initialize is true then compute ranges for RealTypes and Animation samplingvoidsetResolution(int r)-
Methods inherited from class visad.java3d.DefaultRendererJ3D
addSwitch, clearScene, doTransform, getLink, setLinks
-
Methods inherited from class visad.java3d.RendererJ3D
clearBranch, flush, getBranch, makeShadowTextType, setBranchEarly, toggle
-
Methods inherited from class visad.DataRenderer
addException, addPoint, checkAction, checkClose, checkDirect, clearAVControls, clearExceptions, computeRanges, constrainDragPoint, 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, getPolygonOffset, getPolygonOffsetFactor, getProjectionControlListeners, getRanges, getRealVectorTypes, getWhyNotDirect, hasPolygonOffset, isLegalTextureMap, isTransformControl, realCheckDirect, release_direct, removeLink, set_all_feasible, setDisplay, setDisplayRenderer, setEarthSpatialData, setEarthSpatialDisplay, setHasPolygonOffset, setIsDirectManipulation, setLastMouseModifiers, setLatLonIndices, setLinks, setPickCrawlToCursor, setPolygonOffset, setPolygonOffsetFactor, setSpatialValues, spatialToEarth, spatialToEarth, stop_direct, suppressExceptions
-
-
-
-
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:DataRendererfactory 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;- Overrides:
makeShadowFunctionTypein classRendererJ3D- Parameters:
type- FunctionType that returned ShadowType will shadowlink- DataDisplayLink linking Data to be depictedparent- parent in ShadowType tree structure- Returns:
- constructed ShadowType
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
makeShadowRealTupleType
public ShadowType makeShadowRealTupleType(RealTupleType type, DataDisplayLink link, ShadowType parent) throws VisADException, java.rmi.RemoteException
Description copied from class:DataRendererfactory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowRealTupleType; 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;- Overrides:
makeShadowRealTupleTypein classRendererJ3D- Parameters:
type- FunctionType that returned ShadowType will shadowlink- DataDisplayLink linking Data to be depictedparent- parent in ShadowType tree structure- Returns:
- constructed ShadowType
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
makeShadowRealType
public ShadowType makeShadowRealType(RealType type, DataDisplayLink link, ShadowType parent) throws VisADException, java.rmi.RemoteException
Description copied from class:DataRendererfactory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowRealType; 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;- Overrides:
makeShadowRealTypein classRendererJ3D- Parameters:
type- FunctionType that returned ShadowType will shadowlink- DataDisplayLink linking Data to be depictedparent- parent in ShadowType tree structure- Returns:
- constructed ShadowType
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
makeShadowSetType
public ShadowType makeShadowSetType(SetType type, DataDisplayLink link, ShadowType parent) throws VisADException, java.rmi.RemoteException
Description copied from class:DataRendererfactory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowSetType; 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;- Overrides:
makeShadowSetTypein classRendererJ3D- Parameters:
type- FunctionType that returned ShadowType will shadowlink- DataDisplayLink linking Data to be depictedparent- parent in ShadowType tree structure- Returns:
- constructed ShadowType
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
makeShadowTupleType
public ShadowType makeShadowTupleType(TupleType type, DataDisplayLink link, ShadowType parent) throws VisADException, java.rmi.RemoteException
Description copied from class:DataRendererfactory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowTupleType; 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;- Overrides:
makeShadowTupleTypein classRendererJ3D- Parameters:
type- FunctionType that returned ShadowType will shadowlink- DataDisplayLink linking Data to be depictedparent- parent in ShadowType tree structure- Returns:
- constructed ShadowType
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
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:DataRenderercheck if re-transform is needed; if initialize is true then compute ranges for RealTypes and Animation sampling- Overrides:
prepareActionin classDataRenderer- Parameters:
go- flag indicating that re-transform is required for at least one DataRenderer linked to DisplayImplinitialize- flag indicating that initialization (i.e., auto-scaling) is requiredshadow- DataShadow shared by prepareAction() method of all DataRenderers linked to DisplayImpl- Returns:
- DataShadow containing ranges and animation sampling Set (return null if no need for initialization)
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
doAction
public boolean doAction() throws VisADException, java.rmi.RemoteExceptionre-transform if needed; return false if not done- Overrides:
doActionin classRendererJ3D- Returns:
- flag indicating if the transform was done successfully
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
fakeTransform
public boolean fakeTransform() throws VisADException, java.rmi.RemoteExceptioncreate a VisADGroup scene graph for Data in links[0]; a substitute for doTransform() without and Java3D classes in its signature- Throws:
VisADExceptionjava.rmi.RemoteException
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classDefaultRendererJ3D- Returns:
- a copy of this DataRenderer
- Throws:
java.lang.CloneNotSupportedException
-
main
public static void main(java.lang.String[] args) throws VisADException, java.rmi.RemoteException- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
DMelt 3.0 © DataMelt by jWork.ORG