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 |
![]() | |
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 |
Protected Attributes | |
GeoDataLodPrivate *const | d |
Additional Inherited Members | |
![]() | |
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 39 of file GeoDataLod.h.
Constructor & Destructor Documentation
◆ GeoDataLod() [1/2]
Marble::GeoDataLod::GeoDataLod | ( | ) |
Creates a new Level of Detail object.
Definition at line 14 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 20 of file GeoDataLod.cpp.
◆ ~GeoDataLod()
|
override |
Destroys a Level of Detail object.
Definition at line 26 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 87 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 63 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 75 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 51 of file GeoDataLod.cpp.
◆ nodeType()
|
overridevirtual |
Provides type information for downcasting a GeoNode.
Implements Marble::GeoNode.
Definition at line 45 of file GeoDataLod.cpp.
◆ operator==()
bool Marble::GeoDataLod::operator== | ( | const GeoDataLod & | other | ) | const |
Provides type information for downcasting a GeoNode.
Definition at line 31 of file GeoDataLod.cpp.
◆ pack()
|
override |
Serialize the Lod to a stream.
- Parameters
-
stream the stream.
Definition at line 99 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 93 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 69 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 81 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 57 of file GeoDataLod.cpp.
◆ unpack()
|
override |
Unserialize the Lod from a stream.
- Parameters
-
stream the stream.
Definition at line 107 of file GeoDataLod.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:09:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.