osgEarth 2.1.1
Public Member Functions | Protected Attributes

osgEarth::Util::Annotation::AnnotationData Class Reference

Inheritance diagram for osgEarth::Util::Annotation::AnnotationData:
Collaboration diagram for osgEarth::Util::Annotation::AnnotationData:

List of all members.

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 ViewpointgetViewpoint () const
virtual ~AnnotationData ()

Protected Attributes

std::string _name
std::string _description
Viewpoint_viewpoint

Detailed Description

Stores annotation metadata/extra information that can be stored in a node's UserData container.

Definition at line 46 of file Annotation.


Constructor & Destructor Documentation

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;
        }

Member Function Documentation

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; }

Here is the caller graph for this function:

const Viewpoint* osgEarth::Util::Annotation::AnnotationData::getViewpoint ( ) const [inline]

Definition at line 74 of file Annotation.

                                              {
            return _viewpoint;
        }

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:

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);
        }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 86 of file Annotation.

Definition at line 85 of file Annotation.

Definition at line 87 of file Annotation.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines