|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.tools.crs.georeferencing.application.Scene2DValues
public class Scene2DValues
Helper for the Controller
to handle operations in painting the scenes.
Constructor Summary | |
---|---|
Scene2DValues(GeometryFactory geom)
Creates a new instance of Scene2DValues |
Method Summary | |
---|---|
void |
computeZoomedEnvelope(boolean isZoomedIn,
double resizing,
AbstractGRPoint mousePosition)
Computes the zoom of the envelope for the georeferencing scene or the footprint scene. |
Envelope |
createZoomedEnv(Envelope env,
double newSize,
AbstractGRPoint center)
Creates the envelope for zoom in worldCoordinates. |
void |
createZoomedEnvWithMinPoint(AbstractGRPoint.PointType type,
Rectangle rect)
Creates a new envelope from an envelope and a centerPoint and translates it to the relative bounds. |
ICRS |
getCrs()
|
Envelope |
getEnvelopeFootprint()
|
Envelope |
getEnvelopeGeoref()
|
Rectangle |
getGeorefDimension()
|
int[] |
getPixelCoord(AbstractGRPoint abstractGRPoint)
In this method firstly there is a computation from the span of the raster-envelope, after that the point is calculated relative to the min-point of the raster-envelope, after that the percent is computed and finally multiplicated with the imagedimension. |
List<String> |
getSelectedLayers()
|
AbstractGRPoint |
getWorldDimension(AbstractGRPoint dimension)
Converts the pixelDimension to a dimension with world coordinates. |
AbstractGRPoint |
getWorldPoint(AbstractGRPoint pixelPoint)
Converts the pixelPoint to a point with world coordinates. |
void |
moveEnvelope(AbstractGRPoint mouseChange)
Computes the translation of the envelope for the georeferencing scene or the footprint scene. |
void |
setCentroidWorldEnvelopePosition(double xCoord,
double yCoord,
AbstractGRPoint.PointType type)
Sets the point as the centroid of the envelope. |
void |
setCentroidWorldEnvelopePosition(double xCoord,
double yCoord,
double spanX,
double spanY,
AbstractGRPoint.PointType type)
Sets the points xCoord and yCoord as the centroid of the envelope with specified spans in x- and y-direction. |
void |
setDimensionFootpanel(Rectangle dimension)
|
void |
setEnvelopeFootprint(Envelope createEnvelope)
|
void |
setEnvelopeGeoref(double[] c,
ICRS crs)
|
void |
setEnvelopeGeoref(Envelope envelopeGeoref)
|
void |
setGeorefDimension(Rectangle georefDimension)
|
void |
transformAspectRatioGeorefPartial(Envelope envelope)
Determines the ratio the boundingbox has to orient on. |
void |
transformProportionFullOrientationFoot(Envelope envelope)
|
void |
transformProportionGeorefFullOrientation(Envelope envelope)
The full orientation orients on the maximal span dimension. |
void |
transformProportionPartialOrientationFoot(Envelope envelope)
Transforms the ratio of the dimensions of the footprintPanel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scene2DValues(GeometryFactory geom)
Scene2DValues
geom
- Method Detail |
---|
public AbstractGRPoint getWorldPoint(AbstractGRPoint pixelPoint)
pixelPoint
- , not null
public AbstractGRPoint getWorldDimension(AbstractGRPoint dimension)
dimension
- , not null
.
public int[] getPixelCoord(AbstractGRPoint abstractGRPoint)
abstractGRPoint
- the worldCoordinatePoint which should be translated back to pixelCoordinates, not be null
public Rectangle getGeorefDimension()
public void setGeorefDimension(Rectangle georefDimension)
public void setDimensionFootpanel(Rectangle dimension)
public void setCentroidWorldEnvelopePosition(double xCoord, double yCoord, double spanX, double spanY, AbstractGRPoint.PointType type)
xCoord
- x-coordiante in worldCoordinate-representation, not be null
.yCoord
- y-coordiante in worldCoordinate-representation, not be null
.spanX
- x-dimension that should be the width of the envelope, if not specified use -1 instead.spanY
- y-dimension that should be the height of the envelope, if not specified use -1 instead.public void setCentroidWorldEnvelopePosition(double xCoord, double yCoord, AbstractGRPoint.PointType type)
xCoord
- x-coordiante in worldCoordinate-representation, not be null
.yCoord
- y-coordiante in worldCoordinate-representation, not be null
.public void moveEnvelope(AbstractGRPoint mouseChange)
mouseChange
- the translation of the scene in pixelCoordinates, not null
public void computeZoomedEnvelope(boolean isZoomedIn, double resizing, AbstractGRPoint mousePosition)
isZoomedIn
- true, if one zoom in, otherwise falseresizing
- the factor the scene should be resized → 0<resizing<1, could be null
mousePosition
- where the zoom should orient on, not null
public Envelope createZoomedEnv(Envelope env, double newSize, AbstractGRPoint center)
env
- to be zoomed, not null
newSize
- the absolute value to be resized, not null.center
- in worldCoordinates where the zoom should orient on, not null
- Returns:
- the zoomed envelope.
public void createZoomedEnvWithMinPoint(AbstractGRPoint.PointType type, Rectangle rect)
public void transformAspectRatioGeorefPartial(Envelope envelope)
The partial orientation orients on the minimal span dimension.
envelope
- to be transformed, mustn't be null
.public void transformProportionGeorefFullOrientation(Envelope envelope)
envelope
- to be transformed, must be not null
.public void transformProportionPartialOrientationFoot(Envelope envelope)
envelope
- the footprint envelope that has to be transformed, must not be null
.public void transformProportionFullOrientationFoot(Envelope envelope)
public ICRS getCrs()
public void setEnvelopeFootprint(Envelope createEnvelope)
public void setEnvelopeGeoref(Envelope envelopeGeoref)
public void setEnvelopeGeoref(double[] c, ICRS crs)
public List<String> getSelectedLayers()
public Envelope getEnvelopeFootprint()
public Envelope getEnvelopeGeoref()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |