|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.CoordinateSystem visad.CachingCoordinateSystem
public class CachingCoordinateSystem
A wrapper class for CoordinateSystems that will cache the last values input and output values of the toReference and fromReference methods. If the inputs are the same as the last time these methods were called, the previously calculated values are returned.
Field Summary | |
---|---|
static boolean |
debugTime
Show time to transform |
Constructor Summary | |
---|---|
CachingCoordinateSystem(CoordinateSystem cs)
Construct a new CachingCoordinateSystem that wraps around the input. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Check for equality of CoordinateSystem objects |
double[][] |
fromReference(double[][] inputs)
Wrapper around the fromReference method of the input CoordinateSystem. |
float[][] |
fromReference(float[][] inputs)
Wrapper around the fromReference method of the input CoordinateSystem. |
CoordinateSystem |
getCachedCoordinateSystem()
Access to the "cached" CS |
double[][] |
toReference(double[][] inputs)
Wrapper around the toReference method of the input CoordinateSystem. |
float[][] |
toReference(float[][] inputs)
Wrapper around the toReference method of the input CoordinateSystem. |
String |
toString()
A decriptive string of this CS. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static boolean debugTime
Constructor Detail |
---|
public CachingCoordinateSystem(CoordinateSystem cs) throws VisADException
cs
- CoordinateSystem to wrap
VisADException
Method Detail |
---|
public double[][] toReference(double[][] inputs) throws VisADException
toReference
in class CoordinateSystem
inputs
- values to transform
VisADException
- when wrapped CS doespublic double[][] fromReference(double[][] inputs) throws VisADException
fromReference
in class CoordinateSystem
inputs
- values to transform
VisADException
- when wrapped CS doespublic float[][] toReference(float[][] inputs) throws VisADException
toReference
in class CoordinateSystem
inputs
- values to transform
VisADException
- when wrapped CS doespublic float[][] fromReference(float[][] inputs) throws VisADException
fromReference
in class CoordinateSystem
inputs
- values to transform
VisADException
- when wrapped CS doespublic boolean equals(Object obj)
equals
in class CoordinateSystem
obj
- other object in question
public CoordinateSystem getCachedCoordinateSystem()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |