public class PickManipulationRendererJ3D extends DirectManipulationRendererJ3D
enabled, pickCrawlToCursor
Constructor and Description |
---|
PickManipulationRendererJ3D()
Default constructor
|
PickManipulationRendererJ3D(int mmm,
int mmv)
Construct a new PickManipulationRenderer using the mouseModifiers
supplied.
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(float[] x)
Add a point.
|
float |
checkClose(double[] origin,
double[] direction)
Check if ray intersects sub-manifold.
|
void |
checkDirect()
Check if direct manipulation is possible.
|
Object |
clone() |
void |
drag_direct(VisADRay ray,
boolean first,
int mouseModifiers)
Actual workhorse method of manipulation renderer.
|
int |
getCloseIndex()
Return the index of the closes point.
|
CoordinateSystem |
getDisplayCoordinateSystem()
Get the CoordinateSystem for the display side.
|
String |
getWhyNotDirect()
If direct manipulation is not possible, get the error message
explaining why.
|
static void |
main(String[] args)
test PickManipulationRendererJ3D
|
void |
setSpatialValues(float[][] spatial_values)
Set spatialValues from ShadowType.doTransform
|
clearScene, doTransform, isLegalTextureMap, setBranch, setLinks
clearBranch, doAction, flush, getBranch, makeShadowFunctionType, makeShadowRealTupleType, makeShadowRealType, makeShadowSetType, makeShadowTextType, makeShadowTupleType, setBranchEarly, toggle
addException, checkAction, clearAVControls, clearExceptions, computeRanges, constrainDragPoint, earthToSpatial, earthToSpatial, findRayManifoldIntersection, get_all_feasible, get_any_changed, get_any_transform_control, getBadScale, getDisplay, getDisplayRenderer, getEarthDimension, getEarthUnits, getEnabled, getExceptionVector, getIsDirectManipulation, getLastMouseModifiers, getLatLonIndices, getLatLonRange, getLink, getLinks, getPickCrawlToCursor, getPolygonOffset, getPolygonOffsetFactor, getProjectionControlListeners, getRanges, getRealVectorTypes, hasPolygonOffset, isTransformControl, prepareAction, realCheckDirect, release_direct, removeLink, set_all_feasible, setDisplay, setDisplayRenderer, setEarthSpatialData, setEarthSpatialDisplay, setHasPolygonOffset, setIsDirectManipulation, setLastMouseModifiers, setLatLonIndices, setLinks, setPickCrawlToCursor, setPolygonOffset, setPolygonOffsetFactor, spatialToEarth, spatialToEarth, stop_direct, suppressExceptions
public PickManipulationRendererJ3D()
public PickManipulationRendererJ3D(int mmm, int mmv)
mmm
- mouse modifiers mask.mmv
- mouse modifiers value.public void checkDirect() throws VisADException, RemoteException
checkDirect
in class DirectManipulationRendererJ3D
VisADException
- a VisAD error occurredRemoteException
- an RMI error occurredpublic String getWhyNotDirect()
getWhyNotDirect
in class DataRenderer
public void addPoint(float[] x) throws VisADException
addPoint
in class DirectManipulationRendererJ3D
x
- point value.VisADException
- a VisAD error occurredpublic CoordinateSystem getDisplayCoordinateSystem()
getDisplayCoordinateSystem
in class DataRenderer
public void setSpatialValues(float[][] spatial_values)
setSpatialValues
in class DataRenderer
spatial_values
- X, Y, Z valuespublic float checkClose(double[] origin, double[] direction)
checkClose
in class DataRenderer
origin
- x,y,z values of the raydirection
- x,y,z values of the ray?public int getCloseIndex()
public void drag_direct(VisADRay ray, boolean first, int mouseModifiers)
drag_direct
in class DataRenderer
ray
- ray of point where click is.first
- if this is the first time.mouseModifiers
- modifiers used with the mouse.public Object clone()
clone
in class DirectManipulationRendererJ3D
public static void main(String[] args) throws VisADException, RemoteException
VisADException
RemoteException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.