|
SGT Home | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | 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. |
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(SoTValue v)
Get physical value as a function of SoTValue. |
double |
getTransU(double p)
Transform from physical to user coordinates. |
java.lang.String |
toString()
Returns a string representation of the object. |
| 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 |
| 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)
u - user valuepublic AxisTransform copy()
LinearTransform.public double getTransP(GeoDate t)
t - timepublic double getTransP(SoTValue v)
AxisTransformSoTValue.getTransP in class AxisTransformpublic double getTransU(double p)
p - physical valuepublic GeoDate getTimeTransU(double p)
p - physical valuepublic SoTValue getSoTTransU(double p)
AxisTransformSoTValuegetSoTTransU in class AxisTransformpublic java.lang.String toString()
java.lang.ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString in class java.lang.Objectjava.lang.Object
|
SGT Home | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||