marble
GeoDataPolygon.cpp
Go to the documentation of this file.
A LinearRing that allows to store a closed, contiguous set of line segments.
Definition: GeoDataLinearRing.h:68
virtual bool contains(const GeoDataCoordinates &coordinates) const
Returns whether the given coordinates lie within the polygon.
Definition: GeoDataPolygon.cpp:196
virtual bool contains(const GeoDataCoordinates &coordinates) const
Returns whether the given coordinates lie within the polygon.
Definition: GeoDataLinearRing.cpp:58
GeoDataPolygon(TessellationFlags f=Tessellate)
Creates a new Polygon.
Definition: GeoDataPolygon.cpp:22
virtual void pack(QDataStream &stream) const
Serialize the Polygon to a stream.
Definition: GeoDataPolygon.cpp:155
bool tessellate() const
Returns whether the Polygon follows the earth's surface.
Definition: GeoDataPolygon.cpp:87
virtual void pack(QDataStream &stream) const
Reimplemented from Serializable.
Definition: GeoDataObject.cpp:114
virtual void unpack(QDataStream &stream)
Unserialize the LineString from a stream.
Definition: GeoDataLineString.cpp:662
void setTessellate(bool tessellate)
Sets the tessellation property for the Polygon.
Definition: GeoDataPolygon.cpp:92
TessellationFlags m_tessellationFlags
Definition: GeoDataPolygon_p.h:57
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Returns the smallest latLonAltBox that contains the Polygon.
Definition: GeoDataPolygon.cpp:118
GeoDataLinearRing & outerBoundary()
Returns the outer boundary that is represented as a LinearRing.
Definition: GeoDataPolygon.cpp:123
virtual void pack(QDataStream &stream) const
Serialize the LineString to a stream.
Definition: GeoDataLineString.cpp:644
void appendInnerBoundary(const GeoDataLinearRing &boundary)
Appends a given LinearRing as an inner boundary of the Polygon.
Definition: GeoDataPolygon.cpp:149
virtual void unpack(QDataStream &stream)
Unserialize the Polygon from a stream.
Definition: GeoDataPolygon.cpp:174
bool operator!=(const GeoDataPolygon &other) const
Definition: GeoDataPolygon.cpp:77
QVector< GeoDataLinearRing > & innerBoundaries()
Returns a set of inner boundaries which are represented as LinearRings.
Definition: GeoDataPolygon.cpp:139
virtual bool isClosed() const
Returns whether a Polygon is a closed polygon.
Definition: GeoDataPolygon.cpp:82
bool operator==(const GeoDataPolygon &other) const
Returns true/false depending on whether this and other are/are not equal.
Definition: GeoDataPolygon.cpp:49
virtual void unpack(QDataStream &steam)
Reimplemented from Serializable.
Definition: GeoDataObject.cpp:120
TessellationFlags tessellationFlags() const
Returns the tessellation flags for a Polygon.
Definition: GeoDataPolygon.cpp:107
Definition: MarbleGlobal.h:32
QVector< GeoDataLinearRing > inner
Definition: GeoDataPolygon_p.h:53
bool equals(const GeoDataGeometry &other) const
Definition: GeoDataGeometry.cpp:146
void setOuterBoundary(const GeoDataLinearRing &boundary)
Sets the given LinearRing as an outer boundary of the Polygon.
Definition: GeoDataPolygon.cpp:133
void setTessellationFlags(TessellationFlags f)
Sets the given tessellation flags for a Polygon.
Definition: GeoDataPolygon.cpp:112
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Returns the smallest latLonAltBox that contains the LineString.
Definition: GeoDataLineString.cpp:580
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.