|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.geometry.projection.CoordinateTransformation
public class CoordinateTransformation
Handles transformation of coordinates from one system to another. Both reverse and forward projection are provided, along with input and output scaling and offsets. This allows a variety of transformations, including but not limited to:
Copyright 2005 Partner Software, Inc.
| Constructor Summary | |
|---|---|
CoordinateTransformation()
|
|
| Method Summary | |
|---|---|
void |
CoordinateTransform(Cog state)
|
double |
getInputOffsetX()
|
double |
getInputOffsetY()
|
double |
getInputScaleX()
|
double |
getInputScaleY()
|
double |
getOutputOffsetX()
|
double |
getOutputOffsetY()
|
double |
getOutputScaleX()
|
double |
getOutputScaleY()
|
java.lang.String |
getProjectionName()
|
java.lang.String |
getReverseProjectionName()
|
boolean |
isIdentity()
|
void |
setInputOffsetX(double d)
|
void |
setInputOffsetY(double d)
|
void |
setInputScaleX(double d)
|
void |
setInputScaleY(double d)
|
void |
setOutputOffsetX(double d)
|
void |
setOutputOffsetY(double d)
|
void |
setOutputScaleX(double d)
|
void |
setOutputScaleY(double d)
|
Cog |
toCog()
Returns the complete internal state of this object in the form of a Cog. |
void |
transform(DoubleBuffer coords)
Modifies the given DoubleBuffer, treating it as a list of x, y pairs. |
Point |
transform(double x,
double y)
|
void |
transform(Point point)
Modifies the coordinates of the input Point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoordinateTransformation()
| Method Detail |
|---|
public void CoordinateTransform(Cog state)
public Point transform(double x,
double y)
public void transform(Point point)
public void transform(DoubleBuffer coords)
public boolean isIdentity()
public Cog toCog()
CoggableCog.
toCog in interface Coggablepublic void setInputScaleX(double d)
public double getInputScaleX()
public void setInputScaleY(double d)
public double getInputScaleY()
public void setInputOffsetX(double d)
public double getInputOffsetX()
public void setInputOffsetY(double d)
public double getInputOffsetY()
public java.lang.String getProjectionName()
public void setOutputScaleX(double d)
public double getOutputScaleX()
public void setOutputScaleY(double d)
public double getOutputScaleY()
public void setOutputOffsetX(double d)
public double getOutputOffsetX()
public void setOutputOffsetY(double d)
public double getOutputOffsetY()
public java.lang.String getReverseProjectionName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||