public class CursorUtil extends Object
Constructor and Description |
---|
CursorUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
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)
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.