AGX Dynamics  2.35.0.1
agxOSG::CameraManipulatorFactory Class Reference

#include <ExampleApplication.h>

+ Inheritance diagram for agxOSG::CameraManipulatorFactory:

Public Types

enum  Types { TRACKBALL , NUM_TYPES }
 
- Public Types inherited from agx::Singleton
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...
 

Public Member Functions

 CameraManipulatorFactory ()
 
CameraManipulatorType * create (osgViewer::GraphicsWindow *window=nullptr)
 
CameraManipulatorType * create (osgViewer::Viewer *viewer=nullptr)
 
CameraManipulatorType * create (Types type, osgViewer::GraphicsWindow *window=nullptr)
 
CameraManipulatorType * create (Types type, osgViewer::Viewer *viewer=nullptr)
 
Types getType () const
 
CameraManipulatorType * next (osgViewer::GraphicsWindow *window=nullptr)
 
CameraManipulatorType * next (osgViewer::Viewer *viewer=nullptr)
 
void setType (Types type)
 
- Public Member Functions inherited from agx::Singleton
 Singleton (int priority=DEFAULT_PRIORITY)
 Default constructor. More...
 
virtual std::string getClassName () const =0
 
int getPriority () const
 Return the shutdown priority of the singleton instance. More...
 

Static Public Member Functions

static CameraManipulatorFactory * instance ()
 

Protected Member Functions

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 Member Functions inherited from agx::Singleton
virtual ~Singleton ()
 Destructor. More...
 
void _shutdown ()
 

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

◆ Types

Enumerator
TRACKBALL 
NUM_TYPES 

Definition at line 231 of file ExampleApplication.h.

Constructor & Destructor Documentation

◆ CameraManipulatorFactory()

agxOSG::CameraManipulatorFactory::CameraManipulatorFactory ( )

Member Function Documentation

◆ create() [1/4]

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

◆ create() [2/4]

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

◆ create() [3/4]

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

◆ create() [4/4]

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

◆ 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::GraphicsWindow *  window = nullptr)

◆ next() [2/2]

CameraManipulatorType* agxOSG::CameraManipulatorFactory::next ( osgViewer::Viewer *  viewer = 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: