This file is indexed.

/usr/include/osgEarthSymbology/AltitudeSymbol is in libosgearth-dev 2.7.0+dfsg-2+b3.

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
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
 * Copyright 2015 Pelican Mapping
 * http://osgearth.org
 *
 * osgEarth is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 */

#ifndef OSGEARTHSYMBOLOGY_ALTITUDE_SYMBOL_H
#define OSGEARTHSYMBOLOGY_ALTITUDE_SYMBOL_H 1

#include <osgEarthSymbology/Symbol>
#include <osgEarthSymbology/Expression>

namespace osgEarth { namespace Symbology
{
    /**
     * Symbol that conveys information about altitude and terrain interaction
     */
    class OSGEARTHSYMBOLOGY_EXPORT AltitudeSymbol : public Symbol
    {
    public:
        /**
         * Controls if/how models are clamped to the terrain
         */
        enum Clamping
        {
            /** Do not clamp Z values to the terrain (but still apply the offset, if applicable) */
            CLAMP_NONE,

            /** Sample the terrain under the point, and set the feature's Z to the terrain height,
                ignoring and discarding the feature's original Z value. */
            CLAMP_TO_TERRAIN,

            /** Sample the terrain under the point, and ADD the terrain height to the feature's 
                pre-existing Z value. */
            CLAMP_RELATIVE_TO_TERRAIN,

            /** The feature has a attribute value that describes its height above "height zero",
                which is typically the ellipsoid or MSL. While this will not actually modify the
                feature's geometry, it will install ... */
            CLAMP_ABSOLUTE
        };

        /**
         * Clamping technique - when and where to do clamping.
         */
        enum Technique
        {
            /** Clamp geometry to the map model's elevation data. */
            TECHNIQUE_MAP,

            /** Clamp geometry to the terrain's scene graph. */
            TECHNIQUE_SCENE,

            /** Clamp geometry to the terrain as they are rendered by the GPU. */
            TECHNIQUE_GPU,

            /** Clamp geometry at draw time using projective texturing. */
            TECHNIQUE_DRAPE
        };

        /**
         * Binding - at what granularity the clamping is performed
         */
        enum Binding
        {
            /** Clamp every vertex independently */
            BINDING_VERTEX,

            /** Clamp to the centroid of the entire geometry */
            BINDING_CENTROID
        };

    public:
        META_Object(osgEarthSymbology, AltitudeSymbol);

        AltitudeSymbol(const AltitudeSymbol& rhs,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
        AltitudeSymbol( const Config& conf =Config() );

        /** How to clamp instances to the terrain (default is CLAMP_NONE) */
        optional<Clamping>& clamping() { return _clamping; }
        const optional<Clamping>& clamping() const { return _clamping; }

        /** Method of terrain following to use (default is TECHNIQUE_MAP) */
        optional<Technique>& technique() { return _technique; }
        const optional<Technique>& technique() const { return _technique; }

        /** Terrain resolution at which to perform clamping (in map units) */
        optional<float>& clampingResolution() { return _resolution; }
        const optional<float>& clampingResolution() const { return _resolution; }

        /** Granularity at which to clamp a geometry */
        optional<Binding>& binding() { return _binding; }
        const optional<Binding>& binding() const { return _binding; }

        /** Vertical offset of geometry after clamping */
        optional<NumericExpression>& verticalOffset() { return _verticalOffset; }
        const optional<NumericExpression>& verticalOffset() const { return _verticalOffset; }

        /** Vertical scale factor to apply to geometry's Z after clamping. */
        optional<NumericExpression>& verticalScale() { return _verticalScale; }
        const optional<NumericExpression>& verticalScale() const { return _verticalScale; }

    public:
        virtual Config getConfig() const;
        virtual void mergeConfig( const Config& conf );
        static void parseSLD(const Config& c, class Style& style);

    protected:
        virtual ~AltitudeSymbol() { }

        optional<Clamping>           _clamping;
        optional<Technique>          _technique;
        optional<Binding>            _binding;
        optional<float>              _resolution;
        optional<NumericExpression>  _verticalOffset;
        optional<NumericExpression>  _verticalScale;
    };

} } // namespace osgEarth::Symbology

#endif // OSGEARTH_SYMBOLOGY_SYMBOL_H