AGXDynamics  2.31.1.0
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

◆ Priority

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.

◆ Types

Enumerator
TRACKBALL 
NUM_TYPES 

Definition at line 231 of file ExampleApplication.h.

Constructor & Destructor Documentation

◆ CameraManipulatorFactory()

agxOSG::CameraManipulatorFactory::CameraManipulatorFactory ( )

Member Function Documentation

◆ _shutdown()

void agx::Singleton::_shutdown ( )
protectedinherited

◆ create() [1/4]

CameraManipulatorType* agxOSG::CameraManipulatorFactory::create ( osgViewer::Viewer *  viewer = nullptr)

◆ create() [2/4]

CameraManipulatorType* agxOSG::CameraManipulatorFactory::create ( Types  type,
osgViewer::Viewer *  viewer = nullptr 
)

◆ create() [3/4]

CameraManipulatorType* agxOSG::CameraManipulatorFactory::create ( Types  type,
osgViewer::GraphicsWindow *  window = nullptr 
)

◆ create() [4/4]

CameraManipulatorType* agxOSG::CameraManipulatorFactory::create ( osgViewer::GraphicsWindow *  window = nullptr)

◆ getClassName()

virtual std::string agx::Singleton::getClassName ( ) const
pure virtualinherited

◆ getPriority()

int agx::Singleton::getPriority ( ) const
inherited

Return the shutdown priority of the singleton instance.

◆ getType()

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

Definition at line 251 of file ExampleApplication.h.

◆ getWindow()

osgViewer::GraphicsWindow* agxOSG::CameraManipulatorFactory::getWindow ( osgViewer::Viewer *  viewer,
size_t  num = 0 
) const
protected

◆ instance()

static CameraManipulatorFactory* agxOSG::CameraManipulatorFactory::instance ( )
static

◆ next() [1/2]

CameraManipulatorType* agxOSG::CameraManipulatorFactory::next ( osgViewer::Viewer *  viewer = nullptr)

◆ next() [2/2]

CameraManipulatorType* agxOSG::CameraManipulatorFactory::next ( osgViewer::GraphicsWindow *  window = nullptr)

◆ setType()

void agxOSG::CameraManipulatorFactory::setType ( Types  type)
inline

Definition at line 250 of file ExampleApplication.h.

◆ shutdown()

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

◆ m_currentType

Types agxOSG::CameraManipulatorFactory::m_currentType
protected

Definition at line 259 of file ExampleApplication.h.

◆ s_instance

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: