marble
#include <GeoDataLod.h>
Public Member Functions | |
GeoDataLod () | |
GeoDataLod (const GeoDataLod &other) | |
virtual | ~GeoDataLod () |
qreal | maxFadeExtent () const |
qreal | maxLodPixels () const |
qreal | minFadeExtent () const |
qreal | minLodPixels () const |
virtual const char * | nodeType () const |
bool | operator!= (const GeoDataLod &other) const |
GeoDataLod & | operator= (const GeoDataLod &other) |
bool | operator== (const GeoDataLod &other) const |
virtual void | pack (QDataStream &stream) const |
void | setMaxFadeExtent (qreal pixels) |
void | setMaxLodPixels (qreal pixels) |
void | setMinFadeExtent (qreal pixels) |
void | setMinLodPixels (qreal pixels) |
virtual void | unpack (QDataStream &stream) |
Public Member Functions inherited from Marble::GeoDataObject | |
GeoDataObject () | |
GeoDataObject (const GeoDataObject &) | |
virtual | ~GeoDataObject () |
QString | id () const |
GeoDataObject & | operator= (const GeoDataObject &) |
virtual GeoDataObject * | parent () const |
QString | resolvePath (const QString &relativePath) const |
void | setId (const QString &value) |
virtual void | setParent (GeoDataObject *parent) |
void | setTargetId (const QString &value) |
QString | targetId () const |
Public Member Functions inherited from Marble::GeoNode | |
GeoNode () | |
virtual | ~GeoNode () |
Public Member Functions inherited from Marble::Serializable | |
virtual | ~Serializable () |
Protected Attributes | |
GeoDataLodPrivate *const | d |
Additional Inherited Members | |
Protected Member Functions inherited from Marble::GeoDataObject | |
virtual bool | equals (const GeoDataObject &other) const |
Detailed Description
The level of detail which indicates visibility and importance.
GeoDataLod is a tool class that implements the Lod tag/class of the Open Geospatial Consortium standard KML 2.2.
"Lod" is an abbreviation for "Level of Detail" and refers to the extent of the region of a feature. In geodesic coordinates the size of the region can be described in terms of a LatLon(Alt)Box. Projected to screen coordinates the size of a region would naturally be measured in pixels. The size of such a region varies depending on the distance of the observer towards the feature.
The "Level of Detail" describes how many pixels a region needs to cover in order to be considered "active" and visible. It also describes how "quickly" the feature fades in and out.
Definition at line 44 of file GeoDataLod.h.
Constructor & Destructor Documentation
Marble::GeoDataLod::GeoDataLod | ( | ) |
Creates a new Level of Detail object.
Definition at line 19 of file GeoDataLod.cpp.
Marble::GeoDataLod::GeoDataLod | ( | const GeoDataLod & | other | ) |
Creates a new Level of Detail object as a copy of other
.
Definition at line 25 of file GeoDataLod.cpp.
|
virtual |
Destroys a Level of Detail object.
Definition at line 31 of file GeoDataLod.cpp.
Member Function Documentation
qreal Marble::GeoDataLod::maxFadeExtent | ( | ) | const |
Returns how "quickly" the region fades when the region is near. Returns the distance (counted from maxLodPixels) over which the feature fades in or out.
Definition at line 92 of file GeoDataLod.cpp.
qreal Marble::GeoDataLod::maxLodPixels | ( | ) | const |
Returns the maximum size that is needed for the region to be active Returns the maximum number of pixels the region has to be projected on for the feature to be considered active. A value of -1 would mean no minimum number of pixels which is also the standard value.
Definition at line 68 of file GeoDataLod.cpp.
qreal Marble::GeoDataLod::minFadeExtent | ( | ) | const |
Returns how "quickly" the region fades when the region is far away. Returns the distance (counted from minLodPixels) over which the feature fades in or out.
Definition at line 80 of file GeoDataLod.cpp.
qreal Marble::GeoDataLod::minLodPixels | ( | ) | const |
Returns the minimum size that is needed for the region to be active Returns the minimum number of pixels the region has to be projected on for the feature to be considered active. A value of 0 would mean no minimum number of pixels which is also the standard value.
Definition at line 56 of file GeoDataLod.cpp.
|
virtual |
Provides type information for downcasting a GeoNode.
Implements Marble::GeoDataObject.
Definition at line 50 of file GeoDataLod.cpp.
bool Marble::GeoDataLod::operator!= | ( | const GeoDataLod & | other | ) | const |
Definition at line 45 of file GeoDataLod.cpp.
GeoDataLod & Marble::GeoDataLod::operator= | ( | const GeoDataLod & | other | ) |
Definition at line 120 of file GeoDataLod.cpp.
bool Marble::GeoDataLod::operator== | ( | const GeoDataLod & | other | ) | const |
Provides type information for downcasting a GeoNode.
Definition at line 36 of file GeoDataLod.cpp.
|
virtual |
Serialize the Lod to a stream.
- Parameters
-
stream the stream.
Reimplemented from Marble::GeoDataObject.
Definition at line 104 of file GeoDataLod.cpp.
void Marble::GeoDataLod::setMaxFadeExtent | ( | qreal | pixels | ) |
Sets how "quickly" the region fades when the region is near. Sets the distance (counted from maxLodPixels) over which the feature fades in or out.
Definition at line 98 of file GeoDataLod.cpp.
void Marble::GeoDataLod::setMaxLodPixels | ( | qreal | pixels | ) |
Sets the maximum size that is needed for the region to be active Sets the maximum number of pixels the region has to be projected on for the feature to be considered active.
Definition at line 74 of file GeoDataLod.cpp.
void Marble::GeoDataLod::setMinFadeExtent | ( | qreal | pixels | ) |
Sets how "quickly" the region fades when the region is far away. Sets the distance (counted from minLodPixels) over which the feature fades in or out.
Definition at line 86 of file GeoDataLod.cpp.
void Marble::GeoDataLod::setMinLodPixels | ( | qreal | pixels | ) |
Sets the minimum size that is needed for the region to be active Sets the minimum number of pixels the region has to be projected on for the feature to be considered active.
Definition at line 62 of file GeoDataLod.cpp.
|
virtual |
Unserialize the Lod from a stream.
- Parameters
-
stream the stream.
Reimplemented from Marble::GeoDataObject.
Definition at line 112 of file GeoDataLod.cpp.
Member Data Documentation
|
protected |
Definition at line 159 of file GeoDataLod.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.