osgEarth 2.1.1
Public Member Functions | Protected Member Functions | Protected Attributes | Friends

osgEarth::Util::GeoObject Class Reference

Inheritance diagram for osgEarth::Util::GeoObject:
Collaboration diagram for osgEarth::Util::GeoObject:

List of all members.

Public Member Functions

virtual bool getLocation (osg::Vec3d &output) const =0
virtual float getPriority () const
virtual osg::Node * getNode () const =0
GeoCellgetGeoCell () const

Protected Member Functions

 GeoObject ()

Protected Attributes

osg::observer_ptr< GeoCell_cell
float _priority

Friends

class GeoCell

Detailed Description

Base class for an object indexed by a GeoCell hierarchy.

Definition at line 150 of file SpatialData.


Constructor & Destructor Documentation

GeoObject::GeoObject ( ) [protected]

Definition at line 106 of file SpatialData.cpp.

{
    //NOP
}

Member Function Documentation

GeoCell* osgEarth::Util::GeoObject::getGeoCell ( ) const [inline]

The cell currently holding this object.

Definition at line 166 of file SpatialData.

{ return _cell.get(); }
virtual bool osgEarth::Util::GeoObject::getLocation ( osg::Vec3d &  output) const [pure virtual]

Outputs the location (for spatial indexing), which must be in the same SRS as the GeoGraph.

Here is the caller graph for this function:

virtual osg::Node* osgEarth::Util::GeoObject::getNode ( ) const [pure virtual]

Gets the node to render for this object.

virtual float osgEarth::Util::GeoObject::getPriority ( ) const [inline, virtual]

The priority of the object relative to other objects

Definition at line 160 of file SpatialData.

{ return 0.0; }

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class GeoCell [friend]

Definition at line 172 of file SpatialData.


Member Data Documentation

osg::observer_ptr<GeoCell> osgEarth::Util::GeoObject::_cell [protected]

Definition at line 170 of file SpatialData.

Definition at line 171 of file SpatialData.


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