|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--gov.noaa.pmel.sgt.AxisTransform
|
+--gov.noaa.pmel.sgt.LinearTransform
Performs a linear transformation on cartesian axes. If the transformtion is for space the equation is phys = a*user + b and if time is phys = at*time + bt.
| Constructor Summary | |
LinearTransform()
Default constructor. |
|
LinearTransform(double p1,
double p2,
double u1,
double u2)
LinearTransform constructor. |
|
LinearTransform(double p1,
double p2,
GeoDate t1,
GeoDate t2)
LinearTransform constructor. |
|
LinearTransform(Range2D pr,
Range2D ur)
LinearTransform constructor. |
|
LinearTransform(Range2D pr,
SoTRange str)
LinearTransform constructor. |
|
LinearTransform(Range2D pr,
TimeRange tr)
LinearTransform constructor. |
|
| Method Summary | |
AxisTransform |
copy()
Create a copy of the LinearTransform. |
long |
getLongTimeTransU(double p)
Transform from physical coordinates to long
representation of time. |
SoTValue |
getSoTTransU(double p)
Get user transform value as a SoTValue |
GeoDate |
getTimeTransU(double p)
Transform from physical coordinates to time. |
double |
getTransP(double u)
Transform from user to physical coordinates. |
double |
getTransP(GeoDate t)
Transform from time to physical coordinates. |
double |
getTransP(long t)
Transform from long representation of time
to physical coordinates. |
double |
getTransP(SoTValue v)
Get physical value as a function of SoTValue. |
double |
getTransU(double p)
Transform from physical to user coordinates. |
java.lang.String |
toString()
|
| Methods inherited from class gov.noaa.pmel.sgt.AxisTransform |
addPropertyChangeListener, getId, getRangeP, getRangeU, getSoTRangeU, getTimeRangeU, isSpace, isTime, removePropertyChangeListener, setId, setRangeP, setRangeP, setRangeU, setRangeU, setRangeU, setRangeU, setRangeU, setRangeU |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LinearTransform()
Transform(0.0, 1.0, 0.0, 1.0).
public LinearTransform(double p1,
double p2,
double u1,
double u2)
LinearTransform constructor.
This constructor is used to define
transforms that use double user values.
p1 - minimum value, physical coordinatesp2 - maximum value, physical coordinatesu1 - minimum value, user coordinatesu2 - maximum value, user coordinates
public LinearTransform(Range2D pr,
Range2D ur)
LinearTransform constructor. This constructor is used to define
transforms that use double user values.
pr - physical coordinate rangeur - user coordinate rangeRange2D
public LinearTransform(double p1,
double p2,
GeoDate t1,
GeoDate t2)
LinearTransform constructor. This constructor is used to define
transforms that use GeoDate user values.
p1 - minimum value, physical coordinatesp2 - maximum value, physical coordinatest1 - minimum timet2 - maximum timeGeoDate
public LinearTransform(Range2D pr,
TimeRange tr)
LinearTransform constructor. This constructor is used to define
transforms that use GeoDate user values.
pr - physical coordinates rangetr - time rangeRange2D,
TimeRange,
GeoDate
public LinearTransform(Range2D pr,
SoTRange str)
LinearTransform constructor. This constructor is used to define
transforms that use SoTRange user values.
pr - physical coordinates rangestr - space or time rangeSoTRange,
Range2D| Method Detail |
public double getTransP(double u)
getTransP in interface Transformu - user value
public AxisTransform copy()
LinearTransform.
copy in class AxisTransformpublic double getTransP(GeoDate t)
getTransP in class AxisTransformt - time
public double getTransP(SoTValue v)
AxisTransformSoTValue.
getTransP in class AxisTransformpublic double getTransP(long t)
long representation of time
to physical coordinates.
getTransP in class AxisTransformpublic double getTransU(double p)
getTransU in interface Transformp - physical value
public GeoDate getTimeTransU(double p)
getTimeTransU in class AxisTransformp - physical value
public long getLongTimeTransU(double p)
long
representation of time.
getLongTimeTransU in class AxisTransformp - physical value
public SoTValue getSoTTransU(double p)
AxisTransformSoTValue
getSoTTransU in class AxisTransformpublic java.lang.String toString()
toString in class java.lang.Object
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||