visad.cluster
Class ClientRendererJ3D
- java.lang.Object
-
- visad.DataRenderer
-
- visad.java3d.RendererJ3D
-
- visad.java3d.DefaultRendererJ3D
-
- visad.cluster.ClientRendererJ3D
-
- All Implemented Interfaces:
- java.lang.Cloneable
public class ClientRendererJ3D extends DefaultRendererJ3D
ClientRendererJ3D is the VisAD DataRenderer for cluster clients
-
-
Constructor Summary
Constructors Constructor and Description ClientRendererJ3D()ClientRendererJ3D(long to)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()DataShadowcomputeRanges(Data data, ShadowType type, DataShadow shadow)Compute ranges of values for each RealType in DisplayImpl.RealTypeVector.javax.media.j3d.NodeconvertSceneGraph(VisADSceneGraphObject scene)javax.media.j3d.BranchGroupdoTransform()create a scene graph for Data in links[0]static voidmain(java.lang.String[] args)DataShadowprepareAction(boolean go, boolean initialize, DataShadow shadow)check if re-transform is needed; if initialize is true then compute ranges for RealTypes and Animation samplingvoidsetResolutions(int[] rs)voidsetSpatialValues(float[][] spatial_values)set spatial values for Data depiction; used to detect when direct manipulation mouse selects a point of a Data depiction-
Methods inherited from class visad.java3d.DefaultRendererJ3D
addSwitch, clearScene, getLink, setLinks
-
Methods inherited from class visad.java3d.RendererJ3D
clearBranch, doAction, flush, getBranch, makeShadowFunctionType, makeShadowRealTupleType, makeShadowRealType, makeShadowSetType, makeShadowTextType, makeShadowTupleType, setBranchEarly, toggle
-
Methods inherited from class visad.DataRenderer
addException, addPoint, checkAction, checkClose, checkDirect, clearAVControls, clearExceptions, 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, spatialToEarth, spatialToEarth, stop_direct, suppressExceptions
-
-
-
-
Constructor Detail
-
ClientRendererJ3D
public ClientRendererJ3D()
-
ClientRendererJ3D
public ClientRendererJ3D(long to)
-
-
Method Detail
-
setResolutions
public void setResolutions(int[] rs)
-
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
-
doTransform
public javax.media.j3d.BranchGroup doTransform() throws VisADException, java.rmi.RemoteExceptioncreate a scene graph for Data in links[0]- Overrides:
doTransformin classDefaultRendererJ3D- Throws:
VisADExceptionjava.rmi.RemoteException
-
setSpatialValues
public void setSpatialValues(float[][] spatial_values)
Description copied from class:DataRendererset spatial values for Data depiction; used to detect when direct manipulation mouse selects a point of a Data depiction- Overrides:
setSpatialValuesin classDataRenderer- Parameters:
spatial_values- float[3][number_of_points] of 3-D locations of depiction points
-
convertSceneGraph
public javax.media.j3d.Node convertSceneGraph(VisADSceneGraphObject scene) throws VisADException
- Throws:
VisADException
-
computeRanges
public DataShadow computeRanges(Data data, ShadowType type, DataShadow shadow) throws VisADException, java.rmi.RemoteException
Description copied from class:DataRendererCompute ranges of values for each RealType in DisplayImpl.RealTypeVector.- Overrides:
computeRangesin classDataRenderer- Parameters:
data- Data object in which to compute ranges of RealType valuestype- ShadowType generated for MathType of datashadow- DataShadow instance whose contained double[][] array and animation sampling Set are modified according to RealType values in data, and used as return value- Returns:
- DataShadow instance containing double[][] array of RealType ranges, and an animation sampling Set
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
clone
public java.lang.Object clone()
- Overrides:
clonein classDefaultRendererJ3D- Returns:
- a copy of this DataRenderer
-
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