AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxOSG::CameraManipulatorFactory Class Referenceabstract

#include <ExampleApplication.h>

+ Inheritance diagram for agxOSG::CameraManipulatorFactory:

Public Types

enum  Priority { HIGHEST_PRIORITY = 2147483647, LOWEST_PRIORITY = 10000, DEFAULT_PRIORITY = 1073741824 }
 Specifies the ranges of the priority which can be assigned to a singleton at the time of creation. More...
 
enum  Types { TRACKBALL, NUM_TYPES }
 

Public Member Functions

 CameraManipulatorFactory ()
 
CameraManipulatorType * create (osgViewer::Viewer *viewer=nullptr)
 
CameraManipulatorType * create (Types type, osgViewer::Viewer *viewer=nullptr)
 
CameraManipulatorType * create (Types type, osgViewer::GraphicsWindow *window=nullptr)
 
CameraManipulatorType * create (osgViewer::GraphicsWindow *window=nullptr)
 
virtual std::string getClassName () const =0
 
int getPriority () const
 Return the shutdown priority of the singleton instance. More...
 
Types getType () const
 
CameraManipulatorType * next (osgViewer::Viewer *viewer=nullptr)
 
CameraManipulatorType * next (osgViewer::GraphicsWindow *window=nullptr)
 
void setType (Types type)
 

Static Public Member Functions

static CameraManipulatorFactory * instance ()
 

Protected Member Functions

void _shutdown ()
 
osgViewer::GraphicsWindow * getWindow (osgViewer::Viewer *viewer, size_t num=0) const
 
virtual void shutdown () override
 Implement this method to cleanup your Singleton class. More...
 

Protected Attributes

Types m_currentType
 

Static Protected Attributes

static CameraManipulatorFactory * s_instance
 

Detailed Description

Definition at line 228 of file ExampleApplication.h.

Member Enumeration Documentation

enum agx::Singleton::Priority
inherited

Specifies the ranges of the priority which can be assigned to a singleton at the time of creation.

Enumerator
HIGHEST_PRIORITY 

The highest priority that can be given to a singleton.

LOWEST_PRIORITY 

The lowest priority that can be given to a singleton.

DEFAULT_PRIORITY 

The default priority given to a singleton.

Definition at line 35 of file Singleton.h.

Enumerator
TRACKBALL 
NUM_TYPES 

Definition at line 231 of file ExampleApplication.h.

Constructor & Destructor Documentation

agxOSG::CameraManipulatorFactory::CameraManipulatorFactory ( )

Member Function Documentation

void agx::Singleton::_shutdown ( )
protectedinherited
CameraManipulatorType* agxOSG::CameraManipulatorFactory::create ( osgViewer::Viewer *  viewer = nullptr)
CameraManipulatorType* agxOSG::CameraManipulatorFactory::create ( Types  type,
osgViewer::Viewer *  viewer = nullptr 
)
CameraManipulatorType* agxOSG::CameraManipulatorFactory::create ( Types  type,
osgViewer::GraphicsWindow *  window = nullptr 
)
CameraManipulatorType* agxOSG::CameraManipulatorFactory::create ( osgViewer::GraphicsWindow *  window = nullptr)
virtual std::string agx::Singleton::getClassName ( ) const
pure virtualinherited
int agx::Singleton::getPriority ( ) const
inherited

Return the shutdown priority of the singleton instance.

Types agxOSG::CameraManipulatorFactory::getType ( ) const
inline

Definition at line 251 of file ExampleApplication.h.

osgViewer::GraphicsWindow* agxOSG::CameraManipulatorFactory::getWindow ( osgViewer::Viewer *  viewer,
size_t  num = 0 
) const
protected
static CameraManipulatorFactory* agxOSG::CameraManipulatorFactory::instance ( )
static
CameraManipulatorType* agxOSG::CameraManipulatorFactory::next ( osgViewer::Viewer *  viewer = nullptr)
CameraManipulatorType* agxOSG::CameraManipulatorFactory::next ( osgViewer::GraphicsWindow *  window = nullptr)
void agxOSG::CameraManipulatorFactory::setType ( Types  type)
inline

Definition at line 250 of file ExampleApplication.h.

virtual void agxOSG::CameraManipulatorFactory::shutdown ( )
inlineoverrideprotectedvirtual

Implement this method to cleanup your Singleton class.

Reimplemented from agx::Singleton.

Definition at line 255 of file ExampleApplication.h.

Member Data Documentation

Types agxOSG::CameraManipulatorFactory::m_currentType
protected

Definition at line 259 of file ExampleApplication.h.

CameraManipulatorFactory* agxOSG::CameraManipulatorFactory::s_instance
staticprotected

Definition at line 258 of file ExampleApplication.h.


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