|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.util.CursorUtil
public class CursorUtil
Utility methods for cursor-related functions, including converting between pixel, cursor and domain coordinates, and evaluating functions at a given cursor location.
Constructor Summary | |
---|---|
CursorUtil()
|
Method Summary | |
---|---|
static double[] |
cursorToDomain(DisplayImpl d,
double[] cursor)
Converts the given cursor coordinates to domain coordinates. |
static double[] |
cursorToDomain(DisplayImpl d,
RealType[] types,
double[] cursor)
Converts the given cursor coordinates to domain coordinates. |
static int[] |
cursorToPixel(DisplayImpl d,
double[] cursor)
Converts the given cursor coordinates to pixel coordinates. |
static double[] |
domainToCursor(DisplayImpl d,
double[] domain)
Converts the given domain coordinates to cursor coordinates. |
static double[] |
domainToCursor(DisplayImpl d,
RealType[] types,
double[] domain)
Converts the given domain coordinates to cursor coordinates. |
static int[] |
domainToPixel(DisplayImpl d,
double[] domain)
Converts the given domain coordinates to pixel coordinates. |
static double[] |
evaluate(FunctionImpl data,
double[] domain)
Evaluates the given function at the specified domain coordinates. |
static double[][] |
getScaleValues(DisplayImpl d,
RealType[] types)
Gets scale values (multiplier and offset) for the X, Y and Z maps corresponding to the given RealTypes (or the first ScalarMaps to X, Y and Z if types is null). |
static ScalarMap[] |
getXYZMaps(DisplayImpl d,
RealType[] types)
Gets X, Y and Z maps for the given display, corresponding to the specified RealTypes, or the first ScalarMaps to X, Y and Z if types is null. |
static double[] |
pixelToCursor(DisplayImpl d,
int x,
int y)
Converts the given pixel coordinates to cursor coordinates. |
static double[] |
pixelToDomain(DisplayImpl d,
int x,
int y)
Converts the given pixel coordinates to domain coordinates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CursorUtil()
Method Detail |
---|
public static double[] cursorToDomain(DisplayImpl d, RealType[] types, double[] cursor)
public static double[] domainToCursor(DisplayImpl d, RealType[] types, double[] domain)
public static double[] cursorToDomain(DisplayImpl d, double[] cursor)
public static double[] domainToCursor(DisplayImpl d, double[] domain)
public static double[] pixelToCursor(DisplayImpl d, int x, int y)
public static int[] cursorToPixel(DisplayImpl d, double[] cursor)
public static double[] pixelToDomain(DisplayImpl d, int x, int y)
public static int[] domainToPixel(DisplayImpl d, double[] domain)
public static double[] evaluate(FunctionImpl data, double[] domain) throws VisADException, RemoteException
VisADException
RemoteException
public static double[][] getScaleValues(DisplayImpl d, RealType[] types)
public static ScalarMap[] getXYZMaps(DisplayImpl d, RealType[] types)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |