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::EmulatedXR Class Reference

Inherits G3D::XR.

Classes

class  EmulatedHMD
 
class  EmulatedXRController
 
class  Specification
 

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
 
void setHMDManipulator (const shared_ptr< class Manipulator > &manipulator)
 
const TrackedVolumetrackedVolume () const
 
virtual void updateTrackingData () override
 Call once per frame. More...
 
Specification::Viewview (int i)
 Allows direct mutation of a View. More...
 

Static Public Member Functions

static shared_ptr< EmulatedXRcreate (const Specification &specification=Specification())
 
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

 EmulatedXR (const Specification &specification)
 

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

Array< shared_ptr< EmulatedXRController > > m_controllerArray
 
Queue< shared_ptr< XR::Event > > m_eventQueue
 
shared_ptr< EmulatedHMDm_hmd
 
Array< shared_ptr< HMD > > m_hmdArray
 
shared_ptr< EmulatedXRControllerm_leftHand
 
shared_ptr< class Manipulatorm_manipulator
 
Array< shared_ptr< Object > > m_objectArray
 
shared_ptr< EmulatedXRControllerm_rightHand
 
Specification m_specification
 
TrackedVolume m_trackedVolume
 
UserInputm_userInput
 

Constructor & Destructor Documentation

◆ EmulatedXR()

G3D::EmulatedXR::EmulatedXR ( const Specification specification)
inlineprotected

Member Function Documentation

◆ className()

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

Which subclass of XR is this?

Implements G3D::XR.

◆ cleanup()

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

Reimplemented from G3D::XR.

◆ create()

static shared_ptr<EmulatedXR> G3D::EmulatedXR::create ( const Specification specification = Specification())
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::EmulatedXR::postGraphicsInit ( const Settings settings)
inlineoverridevirtual

Reimplemented from G3D::XR.

◆ preGraphicsInit()

virtual void G3D::EmulatedXR::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.

◆ setHMDManipulator()

void G3D::EmulatedXR::setHMDManipulator ( const shared_ptr< class Manipulator > &  manipulator)
inline

◆ trackedVolume()

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

◆ updateTrackingData()

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

Call once per frame.

Implements G3D::XR.

◆ view()

Specification::View& G3D::EmulatedXR::view ( int  i)
inline

Allows direct mutation of a View.

Member Data Documentation

◆ m_controllerArray

Array<shared_ptr<EmulatedXRController> > G3D::EmulatedXR::m_controllerArray
protected

◆ m_eventQueue

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

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

◆ m_hmd

shared_ptr<EmulatedHMD> G3D::EmulatedXR::m_hmd
protected

◆ m_hmdArray

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

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

◆ m_leftHand

shared_ptr<EmulatedXRController> G3D::EmulatedXR::m_leftHand
protected

◆ m_manipulator

shared_ptr<class Manipulator> G3D::EmulatedXR::m_manipulator
protected

Referenced by setHMDManipulator().

◆ m_objectArray

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

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

◆ m_rightHand

shared_ptr<EmulatedXRController> G3D::EmulatedXR::m_rightHand
protected

◆ m_specification

Specification G3D::EmulatedXR::m_specification
protected

Referenced by view().

◆ m_trackedVolume

TrackedVolume G3D::XR::m_trackedVolume
protectedinherited

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

◆ m_userInput

UserInput* G3D::EmulatedXR::m_userInput
protected

Referenced by preGraphicsInit().


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