|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MouseBehavior
MouseBehavior is the VisAD interface for mouse behaviors for Java3D and Java2D
| Method Summary | |
|---|---|
VisADRay |
cursorRay(double[] cursor)
Return the VisAD ray corresponding to the VisAD cursor coordinates. |
VisADRay |
findRay(int screen_x,
int screen_y)
Return the VisAD ray corresponding to the component coordinates. |
MouseHelper |
getMouseHelper()
Get the helper class used by this MouseBehavior. |
int[] |
getScreenCoords(double[] position)
Return the screen coordinates corresponding to the VisAD coordinates. |
void |
instance_unmake_matrix(double[] rot,
double[] scale,
double[] trans,
double[] matrix)
Get the rotation, scale and translation parameters for the specified matrix. |
double[] |
make_matrix(double rotx,
double roty,
double rotz,
double scale,
double transx,
double transy,
double transz)
Make a transformation matrix to perform the given rotation, scale and translation. |
double[] |
make_matrix(double rotx,
double roty,
double rotz,
double scalex,
double scaley,
double scalez,
double transx,
double transy,
double transz)
Make a transformation matrix to perform the given rotation, scale and translation. |
double[] |
make_translate(double transx,
double transy)
Create a translation matrix. |
double[] |
make_translate(double transx,
double transy,
double transz)
Create a translation matrix. |
double[] |
multiply_matrix(double[] a,
double[] b)
Multiply the two matrices together. |
| Method Detail |
|---|
MouseHelper getMouseHelper()
MouseHelper defines the actions taken based
on MouseEvents.
MouseHelper being used.VisADRay cursorRay(double[] cursor)
cursor - array (x,y,z) of cursor location
VisADRay,
DisplayRenderer.getCursor()
VisADRay findRay(int screen_x,
int screen_y)
screen_x - x coordinate of the componentscreen_y - y coordinate of the component
VisADRay,
LocalDisplay.getComponent()int[] getScreenCoords(double[] position)
position - array of VisAD coordinates
double[] multiply_matrix(double[] a,
double[] b)
a - first matrixb - second matrix
double[] make_matrix(double rotx,
double roty,
double rotz,
double scale,
double transx,
double transy,
double transz)
rotx - x rotationroty - y rotationrotz - z rotationscale - scaling factortransx - x translationtransy - y translationtransz - z translation
double[] make_matrix(double rotx,
double roty,
double rotz,
double scalex,
double scaley,
double scalez,
double transx,
double transy,
double transz)
rotx - x rotationroty - y rotationrotz - z rotationscalex - x scaling factorscaley - y scaling factorscalez - z scaling factortransx - x translationtransy - y translationtransz - z translation
void instance_unmake_matrix(double[] rot,
double[] scale,
double[] trans,
double[] matrix)
rot - array to hold x,y,z rotation valuesscale - array to hold scale value(s). If length == 1, assumes
uniform scaling.trans - array to hold x,y,z translation values
double[] make_translate(double transx,
double transy)
transx - x translation amounttransy - y translation amount
multiply_matrix(double[] a, double[] b)
double[] make_translate(double transx,
double transy,
double transz)
transx - x translation amounttransy - y translation amounttransz - z translation amount
multiply_matrix(double[] a, double[] b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||