/usr/include/osgEarthAnnotation/AnnotationEditing is in libosgearth-dev 2.9.0+dfsg-1.
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 | /* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2016 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 OSGEARTHANNO_ANNOTATION_EDITING_H
#define OSGEARTHANNO_ANNOTATION_EDITING_H 1
#include <osgEarthAnnotation/Common>
#include <osgEarthAnnotation/GeoPositionNode>
#include <osgEarthAnnotation/CircleNode>
#include <osgEarthAnnotation/EllipseNode>
#include <osgEarthAnnotation/RectangleNode>
#include <osgEarthAnnotation/Draggers>
#include <osgEarth/MapNode>
namespace osgEarth { namespace Annotation
{
class OSGEARTHANNO_EXPORT AnnotationEditor : public osg::Group
{
protected:
AnnotationEditor();
virtual ~AnnotationEditor() { }
};
/**
* An editor node that allows you to move the position of LocalizedNode annotations
*/
class OSGEARTHANNO_EXPORT GeoPositionNodeEditor : public AnnotationEditor
{
public:
/**
* Create a new LocalizedAnnotationEditor
* @param localizedNode
* The LocalizedNode to edit
*/
GeoPositionNodeEditor(GeoPositionNode* localizedNode);
virtual ~GeoPositionNodeEditor();
virtual void updateDraggers();
Dragger* getPositionDragger() { return _dragger; }
void setPosition( const GeoPoint& pos );
protected:
osg::ref_ptr< GeoPositionNode > _node;
Dragger* _dragger;
};
class OSGEARTHANNO_EXPORT CircleNodeEditor : public GeoPositionNodeEditor
{
public:
/**
* Create a new CircleEditor
* @param circleNode
* The CircleNode to edit
*/
CircleNodeEditor(CircleNode* circleNode);
virtual ~CircleNodeEditor();
void computeBearing();
void setBearing( const Angle& value );
virtual void updateDraggers();
Dragger* getRadiusDragger() { return _radiusDragger; }
double _bearing;
Dragger* _radiusDragger;
};
class OSGEARTHANNO_EXPORT EllipseNodeEditor : public GeoPositionNodeEditor
{
public:
/**
* Create a new EllipseNodeEditor
* @param ellipseNode
* The EllipseNodeEditor to edit
*/
EllipseNodeEditor(EllipseNode* ellipseNode);
virtual ~EllipseNodeEditor();
virtual void updateDraggers();
Dragger* _majorDragger;
Dragger* _minorDragger;
};
class OSGEARTHANNO_EXPORT RectangleNodeEditor : public GeoPositionNodeEditor
{
public:
/**
* Create a new RectangleNodeEditor
* @param rectangleNode
* The RectangleNodeEditor to edit
*/
RectangleNodeEditor(RectangleNode* rectangleNode);
virtual ~RectangleNodeEditor();
virtual void updateDraggers();
Dragger* _llDragger;
Dragger* _lrDragger;
Dragger* _urDragger;
Dragger* _ulDragger;
};
} } // namespace osgEarth::Annotation
#endif // OSGEARTHANNO_FEATURE_EDITING_H
|