Marble::GeoDataLod
#include <GeoDataLod.h>
Public Member Functions | |
GeoDataLod () | |
GeoDataLod (const GeoDataLod &other) | |
~GeoDataLod () override | |
qreal | maxFadeExtent () const |
qreal | maxLodPixels () const |
qreal | minFadeExtent () const |
qreal | minLodPixels () const |
const char * | nodeType () const override |
bool | operator!= (const GeoDataLod &other) const |
GeoDataLod & | operator= (const GeoDataLod &other) |
bool | operator== (const GeoDataLod &other) const |
void | pack (QDataStream &stream) const override |
void | setMaxFadeExtent (qreal pixels) |
void | setMaxLodPixels (qreal pixels) |
void | setMinFadeExtent (qreal pixels) |
void | setMinLodPixels (qreal pixels) |
void | unpack (QDataStream &stream) override |
Public Member Functions inherited from Marble::GeoDataObject | |
GeoDataObject (const GeoDataObject &) | |
QString | id () const |
GeoDataObject & | operator= (const GeoDataObject &) |
void | pack (QDataStream &stream) const override |
GeoDataObject * | parent () |
const GeoDataObject * | parent () const |
QString | resolvePath (const QString &relativePath) const |
void | setId (const QString &value) |
void | setParent (GeoDataObject *parent) |
void | setTargetId (const QString &value) |
QString | targetId () const |
void | unpack (QDataStream &steam) override |
Public Member Functions inherited from Marble::GeoNode |
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 37 of file GeoDataLod.h.
Constructor & Destructor Documentation
◆ GeoDataLod() [1/2]
Marble::GeoDataLod::GeoDataLod | ( | ) |
Creates a new Level of Detail object.
Definition at line 13 of file GeoDataLod.cpp.
◆ GeoDataLod() [2/2]
Marble::GeoDataLod::GeoDataLod | ( | const GeoDataLod & | other | ) |
Creates a new Level of Detail object as a copy of other
.
Definition at line 19 of file GeoDataLod.cpp.
◆ ~GeoDataLod()
|
override |
Destroys a Level of Detail object.
Definition at line 25 of file GeoDataLod.cpp.
Member Function Documentation
◆ maxFadeExtent()
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 76 of file GeoDataLod.cpp.
◆ maxLodPixels()
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 56 of file GeoDataLod.cpp.
◆ minFadeExtent()
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 66 of file GeoDataLod.cpp.
◆ minLodPixels()
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 46 of file GeoDataLod.cpp.
◆ nodeType()
|
overridevirtual |
Provides type information for downcasting a GeoNode.
Implements Marble::GeoNode.
Definition at line 41 of file GeoDataLod.cpp.
◆ operator!=()
bool Marble::GeoDataLod::operator!= | ( | const GeoDataLod & | other | ) | const |
Definition at line 36 of file GeoDataLod.cpp.
◆ operator=()
GeoDataLod & Marble::GeoDataLod::operator= | ( | const GeoDataLod & | other | ) |
Definition at line 102 of file GeoDataLod.cpp.
◆ operator==()
bool Marble::GeoDataLod::operator== | ( | const GeoDataLod & | other | ) | const |
Provides type information for downcasting a GeoNode.
Definition at line 30 of file GeoDataLod.cpp.
◆ pack()
|
override |
Serialize the Lod to a stream.
- Parameters
-
stream the stream.
Definition at line 86 of file GeoDataLod.cpp.
◆ setMaxFadeExtent()
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 81 of file GeoDataLod.cpp.
◆ setMaxLodPixels()
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 61 of file GeoDataLod.cpp.
◆ setMinFadeExtent()
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 71 of file GeoDataLod.cpp.
◆ setMinLodPixels()
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 51 of file GeoDataLod.cpp.
◆ unpack()
|
override |
Unserialize the Lod from a stream.
- Parameters
-
stream the stream.
Definition at line 94 of file GeoDataLod.cpp.
Member Data Documentation
◆ d
|
protected |
Definition at line 140 of file GeoDataLod.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:51:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.