Loading [MathJax]/jax/output/NativeMML/config.js
|
Isis 3 Programmer Reference
|
15 #include <QSharedPointer>
65 GisGeometry(
const double xlongitude,
const double ylatitude);
80 static Type type(
const QString >ype);
83 const GEOSGeometry *
geometry()
const;
110 bool centroid(
double &xlongitude,
double &ylatitude)
const;
113 GEOSGeometry *
makePoint(
const double x,
const double y)
const;
115 GEOSPreparedGeometry
const *
makePrepared(
const GEOSGeometry *geom)
const;
int points() const
Get number of points in geometry.
@ IsisCube
An ISIS Cube is used to create the geometry.
bool overlaps(const GisGeometry &target) const
Test for overlapping geometries.
GisGeometry * envelope() const
Computes the envelope or bounding box of this geometry.
double area() const
Computes the area of a geometry.
GisGeometry * centroid() const
Computes the centroid of the geometry and returns it as a new geometry.
Type m_type
Geometry type of GIS source.
GisGeometry()
Fundamental constructor of an empty object.
@ WKT
The GEOS library WKT reader is used to create the geometry.
QString isValidReason() const
Returns a string describing reason for invalid geometry.
GisGeometry * intersection(const GisGeometry &geom) const
Computes the intersection of two geometries.
Type type() const
Returns the type (origin) of the geometry.
const GEOSGeometry * geometry() const
Returns the GEOSGeometry object to extend functionality.
bool isEmpty() const
Tests for a defined but empty geometry.
GEOSPreparedGeometry const * makePrepared(const GEOSGeometry *geom) const
Creates a prepared geometry of current geometry.
void setGeometry(GEOSGeometry *geom)
Set the geometry directly taking ownership.
Encapsulation class provides support for GEOS-C API.
@ GeosGis
GEOS GIS. A geometry object cannot be created with this geometry type.
bool isDefined() const
Determines if the current geometry is valid.
GisGeometry * clone() const
Clones the contents of this geometry to a new instance.
bool equals(const GisGeometry &target) const
Test if target and this geometry are equal.
bool contains(const GisGeometry &target) const
Test if the target geometry is contained within this geometry.
const GEOSPreparedGeometry * preparedGeometry() const
Returns special GEOS prepared geometry if it exists.
GisGeometry * convexHull() const
Computes the convex hull of the geometry.
GisGeometry * g_union(const GisGeometry &geom) const
Computes the union of two geometries.
GisGeometry * simplify(const double &tolerance) const
Simplify complex or overdetermined geoemtry.
@ None
No geometry. A geometry object cannot be created with this geometry type.
IO Handler for Isis Cubes.
GEOSPreparedGeometry const * m_preparedGeom
A prepared geometry from the GEOS library.
GEOSGeometry * makePoint(const double x, const double y) const
Create a point geometry.
@ WKB
The GEOS library WKB reader is used to create the geometry.
QSharedPointer< GisGeometry > SharedGisGeometry
Definition for a SharedGisGeometry, a shared pointer to a GisGeometry.
bool intersects(const GisGeometry &target) const
Computes a new geometry from the intersection of the two geomtries.
static QString typeToString(const Type &type)
Returns the type of the Geometry as a QString.
GEOSGeometry * fromCube(Cube &cube) const
Reads Polygon from ISIS Cube and returns geometry from contents.
double intersectRatio(const GisGeometry &geom) const
Computes intersect ratio between two geometries.
GEOSGeometry * m_geom
Pointer to GEOS-C opaque structure.
double length() const
Computes the length of a geometry.
void destroy()
Destroys the GEOS elements of this geometry object.
double distance(const GisGeometry &target) const
Computes the distance between two geometries.
bool disjoint(const GisGeometry &target) const
Tests for disjoint geometries.
bool isValid() const
Determines validity of the geometry contained in this object.
Type
Source type of the geometry.
GisGeometry & operator=(GisGeometry const &geom)
Assignment operator for GISGeomtries.
virtual ~GisGeometry()
Destructor.
This is free and unencumbered software released into the public domain.
Q_DECLARE_METATYPE(Isis::PlotWindow *)
We have plot windows as QVariant data types, so here it's enabled.