This file is indexed.

/usr/include/osgEarthSymbology/Stroke is in libosgearth-dev 2.5.0+dfsg-8build1.

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
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
 * Copyright 2008-2013 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_STROKE_H
#define OSGEARTHSYMBOLOGY_STROKE_H 1

#include <osgEarthSymbology/Common>
#include <osgEarthSymbology/Color>
#include <osgEarth/Config>
#include <osgEarth/Units>


namespace osgEarth { namespace Symbology
{
    /**
     * Drawing parameters for a line.
     */
    class OSGEARTHSYMBOLOGY_EXPORT Stroke
    {
    public:

        /** Style for rendering the end caps of a line string. */
        enum LineCapStyle
        {
            LINECAP_FLAT,   /** no endcap. the line ends at the terminal point. */
            LINECAP_SQUARE, /** endcap extends width()/2 past the terminal point and is squared off. */
            LINECAP_ROUND   /** endcap extends width()/2 past the terminal point and is rounded off. */
        };

        /** Style for rendering the joins between line segments. */
        enum LineJoinStyle
        {
            LINEJOIN_MITRE, /** outside joins form a sharp point. */
            LINEJOIN_ROUND  /** outside joins form an arc. */
        };

    public:
        Stroke();
        Stroke(float r, float g, float b, float a );
        Stroke(const Color& color );
        Stroke(const Config& conf );
        Stroke(const Stroke& rhs);

        virtual ~Stroke() { }

        /** Line color. */
        Color& color() { return _color; }
        const Color& color() const { return _color; }

        /** Capping of line ends. */
        optional<LineCapStyle>& lineCap() { return _lineCap; }
        const optional<LineCapStyle>& lineCap() const { return _lineCap; }

        /** How to render line joints in a LineString. */
        optional<LineJoinStyle>& lineJoin() { return _lineJoin; }
        const optional<LineJoinStyle>& lineJoin() const { return _lineJoin; }

        /** Line rendering width. */
        optional<float>& width() { return _width; }
        const optional<float>& width() const { return _width; }

        /** Units for the width property. (default = Units::PIXELS) */
        optional<Units>& widthUnits() { return _widthUnits; }
        const optional<Units>& widthUnits() const { return _widthUnits; }

        /** Minimum with of a line in pixels (default = 0.0, no minimum).
            This typically only applies to lines with map unit width, and
            tells the renderer to maintain a minimum pixel width so that 
            the geometry is always visible. */
        optional<float>& minPixels() { return _minPixels; }
        const optional<float>& minPixels() const { return _minPixels; }

        /** Stippling pattern. Bitmask of pixels to draw. */
        optional<unsigned short>& stipplePattern() { return _stipplePattern; }
        const optional<unsigned short>& stipplePattern() const { return _stipplePattern; }

        /** Stippling factor; number of times to repeat each bit in the stipplePattern. */
        optional<unsigned>& stippleFactor() { return _stippleFactor; }
        const optional<unsigned>& stippleFactor() const { return _stippleFactor; }

        /** Backwards-compatibility only */
        optional<unsigned short>& stipple() { return _stipplePattern; }
        const optional<unsigned short>& stipple() const { return _stipplePattern; }


        /** Rounding ratio - when rounding corners/caps, this is the ratio
            of rounded-segment length to width(). The smaller this value,
            the more detailed the rounding will be. (Default is 0.4) */
        optional<float>& roundingRatio() { return _roundingRatio; }
        const optional<float>& roundingRatio() const { return _roundingRatio; }

    public:
        virtual Config getConfig() const;
        virtual void mergeConfig( const Config& conf );

    protected:
        Color                    _color;
        optional<LineCapStyle>   _lineCap;
        optional<LineJoinStyle>  _lineJoin;
        optional<float>          _width;
        optional<Units>          _widthUnits;
        optional<unsigned>       _stippleFactor;
        optional<unsigned short> _stipplePattern;
        optional<float>          _roundingRatio;
        optional<float>          _minPixels;

        void init();
    };

} } // namespace osgEarth::Symbology

#endif // OSGEARTHSYMBOLOGY_STROKE_H