/usr/include/marble/GeoDataLod.h is in libmarble-dev 4:4.8.2-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | //
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2009 Torsten Rahn <tackat@kde.org>
//
#ifndef MARBLE_GEODATALOD_H
#define MARBLE_GEODATALOD_H
#include "GeoDataObject.h"
namespace Marble
{
class GeoDataLodPrivate;
/*!
\class GeoDataLod
\brief 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.
*/
class GEODATA_EXPORT GeoDataLod : public GeoDataObject
{
public:
/*!
\brief Creates a new Level of Detail object.
*/
GeoDataLod();
/*!
\brief Creates a new Level of Detail object as a copy of @p other.
*/
GeoDataLod( const GeoDataLod& other );
/*!
\brief Destroys a Level of Detail object.
*/
virtual ~GeoDataLod();
/*!
\brief Provides type information for downcasting a GeoNode
*/
virtual const char* nodeType() const;
/*!
\brief 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.
*/
qreal minLodPixels() const;
/*!
\brief Sets the minimum size that is needed for the region to be active
Sets the minimum number of \a pixels the region has to be projected on for
the feature to be considered active.
*/
void setMinLodPixels( qreal pixels );
/*!
\brief 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.
*/
qreal maxLodPixels() const;
/*!
\brief Sets the maximum size that is needed for the region to be active
Sets the maximum number of \a pixels the region has to be projected on for
the feature to be considered active.
*/
void setMaxLodPixels( qreal pixels );
/*!
\brief 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.
*/
qreal minFadeExtent() const;
/*!
\brief 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.
*/
void setMinFadeExtent( qreal pixels );
/*!
\brief 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.
*/
qreal maxFadeExtent() const;
/*!
\brief 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.
*/
void setMaxFadeExtent( qreal pixels );
// Serialization
/*!
\brief Serialize the Lod to a stream.
\param stream the stream.
*/
virtual void pack( QDataStream& stream ) const;
/*!
\brief Unserialize the Lod from a stream.
\param stream the stream.
*/
virtual void unpack( QDataStream& stream );
GeoDataLod &operator=( const GeoDataLod& other );
protected:
GeoDataLodPrivate * const d;
};
}
#endif
|