Marble::GeoDataLod

Search for usage in LXR

Marble::GeoDataLod Class Reference

#include <GeoDataLod.h>

Inheritance diagram for Marble::GeoDataLod:

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
 
GeoDataLodoperator= (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
 
GeoDataObjectoperator= (const GeoDataObject &)
 
void pack (QDataStream &stream) const override
 
const GeoDataObjectparent () const
 
GeoDataObjectparent ()
 
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

- 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 39 of file GeoDataLod.h.

Constructor & Destructor Documentation

Marble::GeoDataLod::GeoDataLod ( )

Creates a new Level of Detail object.

Definition at line 14 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 20 of file GeoDataLod.cpp.

Marble::GeoDataLod::~GeoDataLod ( )
override

Destroys a Level of Detail object.

Definition at line 26 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 87 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 63 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 75 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 51 of file GeoDataLod.cpp.

const char * Marble::GeoDataLod::nodeType ( ) const
overridevirtual

Provides type information for downcasting a GeoNode.

Implements Marble::GeoNode.

Definition at line 45 of file GeoDataLod.cpp.

bool Marble::GeoDataLod::operator== ( const GeoDataLod other) const

Provides type information for downcasting a GeoNode.

Definition at line 31 of file GeoDataLod.cpp.

void Marble::GeoDataLod::pack ( QDataStream stream) const
override

Serialize the Lod to a stream.

Parameters
streamthe stream.

Definition at line 99 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 93 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 69 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 81 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 57 of file GeoDataLod.cpp.

void Marble::GeoDataLod::unpack ( QDataStream stream)
override

Unserialize the Lod from a stream.

Parameters
streamthe stream.

Definition at line 107 of file GeoDataLod.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:23:32 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.