visad.java3d
Class DirectManipulationRendererJ3D
- java.lang.Object
-
- visad.DataRenderer
-
- visad.java3d.RendererJ3D
-
- visad.java3d.DirectManipulationRendererJ3D
-
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- BarbManipulationRendererJ3D, CurveManipulationRendererJ3D, PickManipulationRendererJ3D, PointManipulationRendererJ3D, RubberBandBoxRendererJ3D, RubberBandLineRendererJ3D
public class DirectManipulationRendererJ3D extends RendererJ3D
DirectManipulationRendererJ3D is the VisAD class for direct manipulation rendering under Java3D.
-
-
Constructor Summary
Constructors Constructor and Description DirectManipulationRendererJ3D()this DataRenderer supports direct manipulation for Real, RealTuple and Field Data objects (Field data objects must have RealType or RealTupleType ranges and Gridded1DSet domain Sets); no RealType may be mapped to multiple spatial DisplayRealTypes; the RealType of a Real object must be mapped to XAxis, YAxis or YAxis; at least one of the RealType components of a RealTuple object must be mapped to XAxis, YAxis or YAxis; the domain RealType and at least one RealType range component of a Field object must be mapped to XAxis, YAxis or ZAxis
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddPoint(float[] x)add point for temporary rendering; intended to be over-ridden by graphics-API-specific extensions of DataRenderervoidcheckDirect()set isDirectManipulation = true if this DataRenderer supports direct manipulation for the MathType of its linked Data, and for its ScalarMaps; intended to be over-ridden by extensions of DataRenderervoidclearScene()clear any scene graph created by this DataRenderer, and clear all instance variablesjava.lang.Objectclone()javax.media.j3d.BranchGroupdoTransform()create a BranchGroup scene graph for Data in links[0]booleanisLegalTextureMap()voidsetBranch(javax.media.j3d.BranchGroup b)for use by sub-classes that override doTransform()voidsetLinks(DataDisplayLink[] links, DisplayImpl d)set DataDisplayLinks for linked Data, and set associated DisplayImpl-
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, checkAction, checkClose, 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, getLink, getLinks, getPickCrawlToCursor, getPolygonOffset, getPolygonOffsetFactor, getProjectionControlListeners, getRanges, getRealVectorTypes, getWhyNotDirect, hasPolygonOffset, isTransformControl, prepareAction, 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
-
DirectManipulationRendererJ3D
public DirectManipulationRendererJ3D()
this DataRenderer supports direct manipulation for Real, RealTuple and Field Data objects (Field data objects must have RealType or RealTupleType ranges and Gridded1DSet domain Sets); no RealType may be mapped to multiple spatial DisplayRealTypes; the RealType of a Real object must be mapped to XAxis, YAxis or YAxis; at least one of the RealType components of a RealTuple object must be mapped to XAxis, YAxis or YAxis; the domain RealType and at least one RealType range component of a Field object must be mapped to XAxis, YAxis or ZAxis
-
-
Method Detail
-
setLinks
public void setLinks(DataDisplayLink[] links, DisplayImpl d) throws VisADException
Description copied from class:DataRendererset DataDisplayLinks for linked Data, and set associated DisplayImpl- Overrides:
setLinksin classRendererJ3D- Parameters:
links- array of DataDisplayLinks to setd- associated DisplayImpl to set- Throws:
VisADException- a VisAD error occurred
-
checkDirect
public void checkDirect() throws VisADException, java.rmi.RemoteExceptionDescription copied from class:DataRendererset isDirectManipulation = true if this DataRenderer supports direct manipulation for the MathType of its linked Data, and for its ScalarMaps; intended to be over-ridden by extensions of DataRenderer- Overrides:
checkDirectin classDataRenderer- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
addPoint
public void addPoint(float[] x) throws VisADExceptionDescription copied from class:DataRendereradd point for temporary rendering; intended to be over-ridden by graphics-API-specific extensions of DataRenderer- Overrides:
addPointin classDataRenderer- Parameters:
x- 3-D graphics coordinates of point to render- Throws:
VisADException- a VisAD error occurred
-
doTransform
public javax.media.j3d.BranchGroup doTransform() throws VisADException, java.rmi.RemoteExceptioncreate a BranchGroup scene graph for Data in links[0]- Specified by:
doTransformin classRendererJ3D- Throws:
VisADExceptionjava.rmi.RemoteException
-
setBranch
public void setBranch(javax.media.j3d.BranchGroup b)
for use by sub-classes that override doTransform()
-
isLegalTextureMap
public boolean isLegalTextureMap()
- Overrides:
isLegalTextureMapin classDataRenderer- Returns:
- flag indicating whether texture mapping is legal for this DataRenderer
-
clearScene
public void clearScene()
Description copied from class:DataRendererclear any scene graph created by this DataRenderer, and clear all instance variables- Overrides:
clearScenein classRendererJ3D
-
clone
public java.lang.Object clone()
- Specified by:
clonein classDataRenderer- Returns:
- a copy of this DataRenderer
-
-
DMelt 3.0 © DataMelt by jWork.ORG