public interface MouseBehavior
| Modifier and Type | Method and Description |
|---|---|
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.
|
MouseHelper getMouseHelper()
MouseHelper defines the actions taken based
on MouseEvents.MouseHelper being used.VisADRay cursorRay(double[] cursor)
cursor - array (x,y,z) of cursor locationVisADRay,
DisplayRenderer.getCursor()VisADRay findRay(int screen_x, int screen_y)
screen_x - x coordinate of the componentscreen_y - y coordinate of the componentVisADRay,
LocalDisplay.getComponent()int[] getScreenCoords(double[] position)
position - array of VisAD coordinatesdouble[] multiply_matrix(double[] a,
double[] b)
a - first matrixb - second matrixdouble[] 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 translationdouble[] 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 translationvoid 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 valuesdouble[] make_translate(double transx,
double transy)
transx - x translation amounttransy - y translation amountmultiply_matrix(double[] a, double[] b)double[] make_translate(double transx,
double transy,
double transz)
transx - x translation amounttransy - y translation amounttransz - z translation amountmultiply_matrix(double[] a, double[] b)Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.