OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Friends | List of all members
osgSim::GeographicLocation Class Reference

#include <GeographicLocation.h>

Inheritance diagram for osgSim::GeographicLocation:
Inheritance graph
[legend]
Collaboration diagram for osgSim::GeographicLocation:
Collaboration graph
[legend]

Public Member Functions

 GeographicLocation ()
 
 GeographicLocation (double lat, double lon)
 
bool operator== (const GeographicLocation &v) const
 
bool operator!= (const GeographicLocation &v) const
 
bool operator< (const GeographicLocation &v) const
 
double * ptr ()
 
const double * ptr () const
 
void set (double lat, double lon)
 
double & latitude ()
 
double & longitude ()
 
double latitude () const
 
double longitude () const
 
bool valid () const
 
bool isNaN () const
 
const GeographicLocation operator+ (const GeographicLocation &rhs) const
 binary vector add More...
 
const GeographicLocation operator- (const GeographicLocation &rhs) const
 binary vector subtract More...
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Friends

std::ostream & operator<< (std::ostream &output, const GeographicLocation &loc)
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Detailed Description

Stores a double precision geographic location, latitude and longitude. Derived from Referenced so it can be used as an osg::Object userData.

Definition at line 28 of file GeographicLocation.h.

Constructor & Destructor Documentation

osgSim::GeographicLocation::GeographicLocation ( )
inline

Definition at line 32 of file GeographicLocation.h.

Here is the caller graph for this function:

osgSim::GeographicLocation::GeographicLocation ( double  lat,
double  lon 
)
inline

Definition at line 33 of file GeographicLocation.h.

Member Function Documentation

bool osgSim::GeographicLocation::isNaN ( ) const
inline

Definition at line 57 of file GeographicLocation.h.

Here is the call graph for this function:

Here is the caller graph for this function:

double& osgSim::GeographicLocation::latitude ( )
inline

Definition at line 50 of file GeographicLocation.h.

double osgSim::GeographicLocation::latitude ( ) const
inline

Definition at line 53 of file GeographicLocation.h.

double& osgSim::GeographicLocation::longitude ( )
inline

Definition at line 51 of file GeographicLocation.h.

double osgSim::GeographicLocation::longitude ( ) const
inline

Definition at line 54 of file GeographicLocation.h.

bool osgSim::GeographicLocation::operator!= ( const GeographicLocation v) const
inline

Definition at line 36 of file GeographicLocation.h.

const GeographicLocation osgSim::GeographicLocation::operator+ ( const GeographicLocation rhs) const
inline

binary vector add

Definition at line 60 of file GeographicLocation.h.

Here is the call graph for this function:

const GeographicLocation osgSim::GeographicLocation::operator- ( const GeographicLocation rhs) const
inline

binary vector subtract

Definition at line 66 of file GeographicLocation.h.

Here is the call graph for this function:

bool osgSim::GeographicLocation::operator< ( const GeographicLocation v) const
inline

Definition at line 37 of file GeographicLocation.h.

bool osgSim::GeographicLocation::operator== ( const GeographicLocation v) const
inline

Definition at line 35 of file GeographicLocation.h.

double* osgSim::GeographicLocation::ptr ( )
inline

Definition at line 45 of file GeographicLocation.h.

const double* osgSim::GeographicLocation::ptr ( ) const
inline

Definition at line 46 of file GeographicLocation.h.

void osgSim::GeographicLocation::set ( double  lat,
double  lon 
)
inline

Definition at line 48 of file GeographicLocation.h.

bool osgSim::GeographicLocation::valid ( ) const
inline

Definition at line 56 of file GeographicLocation.h.

Here is the call graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  output,
const GeographicLocation loc 
)
friend

Definition at line 71 of file GeographicLocation.h.


The documentation for this class was generated from the following file: