|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.sgt.AxisTransform
gov.noaa.pmel.sgt.LinearTransform
public class 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.
Field Summary |
---|
Fields inherited from class gov.noaa.pmel.sgt.AxisTransform |
---|
changes_, ident_, p1_, p2_, space_, t1_, t2_, u1_, u2_ |
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 |
---|
clone, equals, finalize, 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 coordinatespublic 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 Transform
u
- user value
public AxisTransform copy()
LinearTransform
.
public double getTransP(GeoDate t)
t
- time
public double getTransP(SoTValue v)
AxisTransform
SoTValue
.
getTransP
in class AxisTransform
public double getTransP(long t)
long
representation of time
to physical coordinates.
public double getTransU(double p)
getTransU
in interface Transform
p
- physical value
public GeoDate getTimeTransU(double p)
p
- physical value
public long getLongTimeTransU(double p)
long
representation of time.
p
- physical value
public SoTValue getSoTTransU(double p)
AxisTransform
SoTValue
getSoTTransU
in class AxisTransform
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |