|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.DataRenderer visad.java2d.RendererJ2D visad.java2d.DirectManipulationRendererJ2D visad.bom.PickManipulationRendererJ2D
public class PickManipulationRendererJ2D
PickManipulationRendererJ2D is the VisAD class for picking data in 2D.
Field Summary |
---|
Fields inherited from class visad.DataRenderer |
---|
enabled, pickCrawlToCursor |
Constructor Summary | |
---|---|
PickManipulationRendererJ2D()
Default constructor |
|
PickManipulationRendererJ2D(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. |
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 PickManipulationRendererJ2D |
void |
setSpatialValues(float[][] spatial_values)
Set spatialValues from ShadowType.doTransform |
Methods inherited from class visad.java2d.DirectManipulationRendererJ2D |
---|
clone, doTransform, getExtraBranch, isLegalTextureMap, setLinks |
Methods inherited from class visad.java2d.RendererJ2D |
---|
clearBranch, clearScene, doAction, makeShadowFunctionType, makeShadowRealTupleType, makeShadowRealType, makeShadowSetType, makeShadowTextType, makeShadowTupleType, toggle |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PickManipulationRendererJ2D()
public PickManipulationRendererJ2D(int mmm, int mmv)
mmm
- mouse modifiers mask.mmv
- mouse modifiers value.Method Detail |
---|
public void checkDirect() throws VisADException, RemoteException
checkDirect
in class DirectManipulationRendererJ2D
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 DirectManipulationRendererJ2D
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 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 |