public class MappedLocation extends AbstractPropertyChangeObject implements MapSerializer
| Constructor and Description |
|---|
MappedLocation(Map<String,Object> map) |
MappedLocation(Point sourcePixel,
Point targetPoint) |
| Modifier and Type | Method and Description |
|---|---|
GeometryFactory |
getGeometryFactory() |
Point |
getSourcePixel() |
Point |
getSourcePoint(GeoReferencedImage image,
BoundingBox boundingBox,
boolean useTransform) |
LineString |
getSourceToTargetLine(GeoReferencedImage image,
BoundingBox boundingBox,
boolean useTransform) |
Point |
getTargetPixel(BoundingBox boundingBox,
int imageWidth,
int imageHeight) |
Point |
getTargetPoint() |
void |
setGeometryFactory(GeometryFactory geometryFactory) |
void |
setSourcePixel(Point sourcePixel) |
void |
setTargetPoint(Point targetPoint) |
static Point |
targetPointToPixel(BoundingBox boundingBox,
Point point,
int imageWidth,
int imageHeight) |
static Point |
toImagePoint(BoundingBox boundingBox,
Point modelPoint,
int imageWidth,
int imageHeight) |
Map<String,Object> |
toMap()
Convert the object to a Map of property name, value pairs.
|
static double[] |
toModelCoordinates(GeoReferencedImage image,
BoundingBox boundingBox,
boolean useTransform,
double... coordinates) |
String |
toString() |
addListener, addListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeSupport, removeListener, removeListenerpublic static Point targetPointToPixel(BoundingBox boundingBox, Point point, int imageWidth, int imageHeight)
public static Point toImagePoint(BoundingBox boundingBox, Point modelPoint, int imageWidth, int imageHeight)
public static double[] toModelCoordinates(GeoReferencedImage image, BoundingBox boundingBox, boolean useTransform, double... coordinates)
public GeometryFactory getGeometryFactory()
public Point getSourcePixel()
public Point getSourcePoint(GeoReferencedImage image, BoundingBox boundingBox, boolean useTransform)
public LineString getSourceToTargetLine(GeoReferencedImage image, BoundingBox boundingBox, boolean useTransform)
public Point getTargetPixel(BoundingBox boundingBox, int imageWidth, int imageHeight)
public Point getTargetPoint()
public void setGeometryFactory(GeometryFactory geometryFactory)
public void setSourcePixel(Point sourcePixel)
public void setTargetPoint(Point targetPoint)
public Map<String,Object> toMap()
MapSerializerConvert the object to a Map of property name, value pairs. The values can be one of the following supported types. Other values should be converted to one of these values.
toMap in interface MapSerializerCopyright © 2015 Revolution Systems Inc.. All rights reserved.