Support Forum       G3D Web Page     
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
G3D::MonitorXR Class Reference

Inherits G3D::XR.

Classes

class  MonitorHMD
 

Public Member Functions

virtual const StringclassName () const override
 Which subclass of XR is this? More...
 
virtual void cleanup () override
 
const Array< shared_ptr< HMD > > & hmdArray () const
 
virtual shared_ptr< EventnextEvent ()
 Returns nullptr when out of events. More...
 
const Array< shared_ptr< Object > > & objectArray () const
 All tracked objects, including HMDs. More...
 
virtual void postGraphicsInit (const Settings &settings) override
 
virtual void preGraphicsInit (const Settings &settings) override
 
const TrackedVolumetrackedVolume () const
 
virtual void updateTrackingData () override
 Call once per frame. More...
 

Static Public Member Functions

static shared_ptr< MonitorXRcreate (const OSWindow::Settings &settings=OSWindow::Settings())
 
static void setFrame (const shared_ptr< Object > &t, const CFrame &f, const CFrame &p)
 Allows XR subclasses to access protected variables inside a tracked object. More...
 

Protected Member Functions

 MonitorXR (const OSWindow::Settings &settings)
 

Static Protected Member Functions

template<class T , class ... ArgTypes>
static shared_ptr< T > createShared (ArgTypes &&... args)
 Like std::make_shared, but works for protected constructors. More...
 

Protected Attributes

Queue< shared_ptr< XR::Event > > m_eventQueue
 
shared_ptr< MonitorHMDm_hmd
 
Array< shared_ptr< HMD > > m_hmdArray
 
Array< shared_ptr< Object > > m_objectArray
 
OSWindow::Settings m_settings
 Used for creating the HMD on the first frame. More...
 
TrackedVolume m_trackedVolume
 

Constructor & Destructor Documentation

◆ MonitorXR()

G3D::MonitorXR::MonitorXR ( const OSWindow::Settings settings)
inlineprotected

Member Function Documentation

◆ className()

virtual const String& G3D::MonitorXR::className ( ) const
inlineoverridevirtual

Which subclass of XR is this?

Implements G3D::XR.

◆ cleanup()

virtual void G3D::MonitorXR::cleanup ( )
inlineoverridevirtual

Reimplemented from G3D::XR.

◆ create()

static shared_ptr<MonitorXR> G3D::MonitorXR::create ( const OSWindow::Settings settings = OSWindow::Settings())
inlinestatic

◆ createShared()

template<class T , class ... ArgTypes>
static shared_ptr<T> G3D::ReferenceCountedObject::createShared ( ArgTypes &&...  args)
inlinestaticprotectedinherited

Like std::make_shared, but works for protected constructors.

Call as createShared<myclass>.

◆ hmdArray()

const Array<shared_ptr<HMD> >& G3D::XR::hmdArray ( ) const
inlineinherited

◆ nextEvent()

virtual shared_ptr<Event> G3D::XR::nextEvent ( )
inlinevirtualinherited

Returns nullptr when out of events.

◆ objectArray()

const Array<shared_ptr<Object> >& G3D::XR::objectArray ( ) const
inlineinherited

All tracked objects, including HMDs.

◆ postGraphicsInit()

virtual void G3D::MonitorXR::postGraphicsInit ( const Settings settings)
inlineoverridevirtual

Reimplemented from G3D::XR.

◆ preGraphicsInit()

virtual void G3D::MonitorXR::preGraphicsInit ( const Settings settings)
inlineoverridevirtual

Reimplemented from G3D::XR.

◆ setFrame()

static void G3D::XR::setFrame ( const shared_ptr< Object > &  t,
const CFrame f,
const CFrame p 
)
staticinherited

Allows XR subclasses to access protected variables inside a tracked object.

◆ trackedVolume()

const TrackedVolume& G3D::XR::trackedVolume ( ) const
inlineinherited

◆ updateTrackingData()

virtual void G3D::MonitorXR::updateTrackingData ( )
overridevirtual

Call once per frame.

Implements G3D::XR.

Member Data Documentation

◆ m_eventQueue

Queue<shared_ptr<XR::Event> > G3D::XR::m_eventQueue
protectedinherited

Referenced by G3D::XR::nextEvent().

◆ m_hmd

shared_ptr<MonitorHMD> G3D::MonitorXR::m_hmd
protected

◆ m_hmdArray

Array<shared_ptr<HMD> > G3D::XR::m_hmdArray
protectedinherited

Referenced by G3D::XR::hmdArray().

◆ m_objectArray

Array<shared_ptr<Object> > G3D::XR::m_objectArray
protectedinherited

Referenced by G3D::XR::objectArray().

◆ m_settings

OSWindow::Settings G3D::MonitorXR::m_settings
protected

Used for creating the HMD on the first frame.

Can't be done when MonitorXR is initialized because that happens before OpenGL is initialized.

◆ m_trackedVolume

TrackedVolume G3D::XR::m_trackedVolume
protectedinherited

Referenced by G3D::XR::trackedVolume().


documentation generated on Wed Nov 24 2021 08:01:58 using doxygen 1.8.15