Support Forum       G3D Web Page     
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
G3D::XR::Object Class Reference

Inherits G3D::ReferenceCountedObject.

Inherited by G3D::XR::Controller, G3D::XR::Hand, and G3D::XR::HMD.

Public Member Functions

const CFrame & frame () const
 Where the AR/VR system estimates the object will be at the time of the next HMD::submit() call, in the room coordinate frame. More...
 
const int index () const
 Zero-based index in the XR::objectArray. More...
 
virtual bool isController () const
 
virtual bool isHMD () const
 
const String & name () const
 Unique identifier. More...
 
int nativeAPIIndex () const
 Index of this object in the underlying OS API (e.g., OVR, OpenVR, SteamVR) More...
 
const CFrame & previousFrame () const
 Frame that was predicted at the previous HMD::submit() time. More...
 

Static Public Member Functions

static shared_ptr< Object > create (int index, int nativeAPIIndex, const String &name)
 

Protected Member Functions

 Object (int index, int nativeAPIIndex, const String &name)
 

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

CFrame m_frame
 
int m_index
 
String m_name
 
int m_nativeAPIIndex
 
CFrame m_previousFrame
 

Friends

class XR
 

Constructor & Destructor Documentation

◆ Object()

G3D::XR::Object::Object ( int  index,
int  nativeAPIIndex,
const String &  name 
)
protected

Member Function Documentation

◆ create()

static shared_ptr<Object> G3D::XR::Object::create ( int  index,
int  nativeAPIIndex,
const String &  name 
)
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>.

◆ frame()

const CFrame& G3D::XR::Object::frame ( ) const
inline

Where the AR/VR system estimates the object will be at the time of the next HMD::submit() call, in the room coordinate frame.

◆ index()

const int G3D::XR::Object::index ( ) const
inline

◆ isController()

virtual bool G3D::XR::Object::isController ( ) const
inlinevirtual

Reimplemented in G3D::XR::Controller.

◆ isHMD()

virtual bool G3D::XR::Object::isHMD ( ) const
inlinevirtual

Reimplemented in G3D::XR::HMD.

◆ name()

const String& G3D::XR::Object::name ( ) const
inline

◆ nativeAPIIndex()

int G3D::XR::Object::nativeAPIIndex ( ) const
inline

Index of this object in the underlying OS API (e.g., OVR, OpenVR, SteamVR)

Referenced by create(), G3D::EmulatedXR::EmulatedHMD::create(), and G3D::XR::Hand::create().

◆ previousFrame()

const CFrame& G3D::XR::Object::previousFrame ( ) const
inline

Frame that was predicted at the previous HMD::submit() time.

Friends And Related Function Documentation

◆ XR

friend class XR
friend

Member Data Documentation

◆ m_frame

CFrame G3D::XR::Object::m_frame
protected

Referenced by frame().

◆ m_index

int G3D::XR::Object::m_index
protected

Referenced by index().

◆ m_name

String G3D::XR::Object::m_name
protected

Referenced by name().

◆ m_nativeAPIIndex

int G3D::XR::Object::m_nativeAPIIndex
protected

Referenced by nativeAPIIndex().

◆ m_previousFrame

CFrame G3D::XR::Object::m_previousFrame
protected

Referenced by previousFrame().


documentation generated on Wed Nov 24 2021 08:02:03 using doxygen 1.8.15