This file is indexed.

/usr/include/osgEarthSymbology/GeometryFactory is in libosgearth-dev 2.4.0+dfsg-6.

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
/* -*-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_GEOMETRY_FACTORY
#define OSGEARTHSYMBOLOGY_GEOMETRY_FACTORY

#include <osgEarthSymbology/Common>
#include <osgEarthSymbology/Geometry>
#include <osgEarth/SpatialReference>

/**
 * A collection of utilities for creating geometric features
 */
namespace osgEarth { namespace Symbology
{
    using namespace osgEarth;

    /**
     * Convenience class for building simple tessellated Geometry shapes.
     */
    class OSGEARTHSYMBOLOGY_EXPORT GeometryFactory
    {
    public:
        /**
         * Constructs the factory.
         * @param srs The spatial reference in which to create the geometry, or NULL to
         *            create simple localized geometry.
         */
        GeometryFactory( const SpatialReference* srs =0L );

        /** dtor */
        virtual ~GeometryFactory() { }

        /**
         * Creates a circle geometry.
         * @param center Center point (must be in map SRS if a map was provided in ctor)
         * @param radius Circle radius
         * @param numSegments Number of circumference segments, or zero to automatically calculate it
         * @param geomToUse Use this geometry instead of creating a Polygon.
         */
        Geometry* createCircle( 
            const osg::Vec3d& center,
            const Distance&   radius,
            unsigned          numSegments =0,
            Geometry*         geomToUse   =0L) const;

        /**
         * Creates an arc geometry.
         * @param center Center point (must be in map SRS if a map was provided in ctor)
         * @param radius Arc radius
         * @param start  Starting angle of the arc
         * @param end    Ending angle of the arc
         * @param numSegments Number of circumference segments, or zero to automatically calculate it
         * @param pie    Indicates to create a pie shape rather than an arc.
         */
        Geometry* createArc(
            const osg::Vec3d& center,
            const Distance&   radius,
            const Angle&      startAngle,
            const Angle&      endAngle,
            unsigned          numSegments =0,
            Geometry*         geomToUse   =0L,
            bool              pie = false) const;

        /**
         * Creates a ellipse geometry.
         * @param center Center point (must be in map SRS if a map was provided in ctor)
         * @param radiusMajor Major radius (X-axis) length
         * @param radiusMinor Minor radius (Y-axis) length
         * @param rotationAngle with respect to the X-axis
         * @param numSegments Number of circumference segments, or zero to automatically calculate it
         * @param geomToUse Use this geometry instead of creating a Polygon.
         */
        Geometry* createEllipse(
            const osg::Vec3d& center,
            const Distance&   radiusMajor,
            const Distance&   radiusMinor,
            const Angle&      rotationAngle,
            unsigned          numSegments =0,
            Geometry*         geomToUse   =0L) const;

        /**
         * Creates a ellipse geometry.
         * @param center Center point (must be in map SRS if a map was provided in ctor)
         * @param radiusMajor Major radius (X-axis) length
         * @param radiusMinor Minor radius (Y-axis) length
         * @param rotationAngle with respect to the X-axis
         * @param start  Starting angle of the arc
         * @param end    Ending angle of the arc
         * @param numSegments Number of circumference segments, or zero to automatically calculate it
         * @param geomToUse Use this geometry instead of creating a Polygon.
         * @param pie    Indicates to create a pie shape rather than an arc.
         */
        Geometry* createEllipticalArc(
            const osg::Vec3d& center,
            const Distance&   radiusMajor,
            const Distance&   radiusMinor,
            const Angle&      rotationAngle,
            const Angle&      startAngle,
            const Angle&      endAngle,
            unsigned          numSegments =0,
            Geometry*         geomToUse   =0L,
            bool              pie = false) const;

        /**
         * Creates a rectangle geometry
         * @param center Center point (must be in map SRS if the map was provided in ctor)
         * @param width The width of the rectangle
         * @param height The height of the rectangle
         */
        Geometry* createRectangle(
            const osg::Vec3d& center,
            const Distance&   width,
            const Distance&   height ) const;

    protected:

        osg::ref_ptr<const SpatialReference> _srs;
    };

} } // namespace osgEarth::Symbology

#endif // OSGEARTHSYMBOLOGY_GEOMETRY_FACTORY