osgEarth 2.1.1
|
Public Member Functions | |
AnnotationData () | |
void | setName (const std::string &value) |
const std::string & | getName () const |
void | setDescription (const std::string &value) |
const std::string & | getDescription () const |
void | setViewpoint (const Viewpoint &vp) |
const Viewpoint * | getViewpoint () const |
virtual | ~AnnotationData () |
Protected Attributes | |
std::string | _name |
std::string | _description |
Viewpoint * | _viewpoint |
Stores annotation metadata/extra information that can be stored in a node's UserData container.
Definition at line 46 of file Annotation.
osgEarth::Util::Annotation::AnnotationData::AnnotationData | ( | ) | [inline] |
Definition at line 49 of file Annotation.
: _viewpoint( 0L ) { }
virtual osgEarth::Util::Annotation::AnnotationData::~AnnotationData | ( | ) | [inline, virtual] |
Definition at line 79 of file Annotation.
{ if ( _viewpoint ) delete _viewpoint; }
const std::string& osgEarth::Util::Annotation::AnnotationData::getDescription | ( | ) | const [inline] |
Definition at line 63 of file Annotation.
{ return _description; }
const std::string& osgEarth::Util::Annotation::AnnotationData::getName | ( | ) | const [inline] |
Definition at line 57 of file Annotation.
{ return _name; }
const Viewpoint* osgEarth::Util::Annotation::AnnotationData::getViewpoint | ( | ) | const [inline] |
Definition at line 74 of file Annotation.
{ return _viewpoint; }
void osgEarth::Util::Annotation::AnnotationData::setDescription | ( | const std::string & | value | ) | [inline] |
Readable description of the annotation.
Definition at line 62 of file Annotation.
{ _description = value; }
void osgEarth::Util::Annotation::AnnotationData::setName | ( | const std::string & | value | ) | [inline] |
Readable name of the annotation.
Definition at line 56 of file Annotation.
{ _name = value; }
void osgEarth::Util::Annotation::AnnotationData::setViewpoint | ( | const Viewpoint & | vp | ) | [inline] |
Viewpoint associated with this annotation.
Definition at line 68 of file Annotation.
{ if ( _viewpoint ) delete _viewpoint; _viewpoint = new Viewpoint(vp); }
std::string osgEarth::Util::Annotation::AnnotationData::_description [protected] |
Definition at line 86 of file Annotation.
std::string osgEarth::Util::Annotation::AnnotationData::_name [protected] |
Definition at line 85 of file Annotation.
Definition at line 87 of file Annotation.