|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.DataRenderer visad.java3d.RendererJ3D visad.java3d.DirectManipulationRendererJ3D visad.bom.PickManipulationRendererJ3D
public class PickManipulationRendererJ3D
PickManipulationRendererJ3D is the VisAD class for picking data in 3D.
Field Summary |
---|
Fields inherited from class visad.DataRenderer |
---|
enabled, pickCrawlToCursor |
Constructor Summary | |
---|---|
PickManipulationRendererJ3D()
Default constructor |
|
PickManipulationRendererJ3D(int mmm,
int mmv)
Construct a new PickManipulationRenderer using the mouseModifiers supplied. |
Method Summary | |
---|---|
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 |
Methods inherited from class visad.java3d.DirectManipulationRendererJ3D |
---|
clearScene, doTransform, isLegalTextureMap, setBranch, setLinks |
Methods inherited from class visad.java3d.RendererJ3D |
---|
clearBranch, doAction, flush, getBranch, makeShadowFunctionType, makeShadowRealTupleType, makeShadowRealType, makeShadowSetType, makeShadowTextType, makeShadowTupleType, setBranchEarly, toggle |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PickManipulationRendererJ3D()
public PickManipulationRendererJ3D(int mmm, int mmv)
mmm
- mouse modifiers mask.mmv
- mouse modifiers value.Method Detail |
---|
public void checkDirect() throws VisADException, RemoteException
checkDirect
in class DirectManipulationRendererJ3D
VisADException
- a VisAD error occurred
RemoteException
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |