|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.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.
Constructor Summary | |
---|---|
CachingCoordinateSystem(CoordinateSystem cs)
Construct a new CachingCoordinateSystem that wraps around the input. |
Method Summary | |
---|---|
boolean |
equals(java.lang.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. |
Methods inherited from class visad.CoordinateSystem |
---|
canConvert, checkTable, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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(java.lang.Object obj)
equals
in class CoordinateSystem
obj
- other object in question
public CoordinateSystem getCachedCoordinateSystem()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |