Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::Linux::HMDDeviceCreateDesc Class Reference

#include "OVR_Linux_HMDDevice.h"

Inheritance diagram for OVR::Linux::HMDDeviceCreateDesc:
Inheritance graph
Collaboration diagram for OVR::Linux::HMDDeviceCreateDesc:
Collaboration graph

Public Member Functions

 HMDDeviceCreateDesc (DeviceFactory *factory, const String &displayDeviceName, long dispId)
 
 HMDDeviceCreateDesc (const HMDDeviceCreateDesc &other)
 
virtual DeviceCreateDescClone () const
 
virtual DeviceBaseNewDeviceInstance ()
 
virtual MatchResult MatchDevice (const DeviceCreateDesc &other, DeviceCreateDesc **) const
 
virtual bool MatchDevice (const String &path)
 
virtual bool UpdateMatchedCandidate (const DeviceCreateDesc &, bool *newDeviceFlag=NULL)
 
virtual bool GetDeviceInfo (DeviceInfo *info) const
 
void SetScreenParameters (int x, int y, int hres, int vres, float hsize, float vsize, float vCenterFromTopInMeters, float lensSeparationInMeters)
 
void SetDistortion (const float *dks)
 
HmdTypeEnum GetHmdType () const
 
- Public Member Functions inherited from OVR::DeviceCreateDesc
 DeviceCreateDesc (DeviceFactory *factory, DeviceType type)
 
virtual ~DeviceCreateDesc ()
 
DeviceManagerImplGetManagerImpl () const
 
LockGetLock () const
 
void AddRef ()
 
void Release ()
 
virtual bool MatchHIDDevice (const HIDDeviceDesc &) const
 
- Public Member Functions inherited from OVR::ListNode< DeviceCreateDesc >
void RemoveNode ()
 
void ReplaceNodeWith (DeviceCreateDesc *pnew)
 
void InsertNodeAfter (DeviceCreateDesc *p)
 
void InsertNodeBefore (DeviceCreateDesc *p)
 
void Alloc_MoveTo (ListNode< DeviceCreateDesc > *pdest)
 

Protected Types

enum  { Contents_Screen = 1, Contents_Distortion = 2 }
 

Protected Attributes

String DeviceId
 
String DisplayDeviceName
 
struct {
int X
 
int Y
 
Desktop
 
unsigned int Contents
 
Sizei ResolutionInPixels
 
Sizef ScreenSizeInMeters
 
float VCenterFromTopInMeters
 
float LensSeparationInMeters
 
DistortionEqnType DistortionEqn
 
float DistortionK [4]
 
long DisplayId
 

Friends

class HMDDevice
 

Additional Inherited Members

- Public Types inherited from OVR::DeviceCreateDesc
enum  MatchResult { Match_None, Match_Found, Match_Candidate }
 
- Data Fields inherited from OVR::DeviceCreateDesc
DeviceFactory *const pFactory
 
const DeviceType Type
 
Ptr< DeviceManagerLockpLock
 
AtomicInt< UInt32HandleCount
 
DeviceBasepDevice
 
bool Enumerated
 
- Data Fields inherited from OVR::ListNode< DeviceCreateDesc >
union {
T * pPrev
 
void * pVoidPrev
 
}; 
 
union {
T * pNext
 
void * pVoidNext
 
}; 
 

Detailed Description

Definition at line 56 of file OVR_Linux_HMDDevice.h.

Member Enumeration Documentation

anonymous enum
protected
Enumerator
Contents_Screen 
Contents_Distortion 

Definition at line 61 of file OVR_Linux_HMDDevice.h.

Constructor & Destructor Documentation

OVR::Linux::HMDDeviceCreateDesc::HMDDeviceCreateDesc ( DeviceFactory factory,
const String displayDeviceName,
long  dispId 
)

Definition at line 39 of file OVR_Linux_HMDDevice.cpp.

OVR::Linux::HMDDeviceCreateDesc::HMDDeviceCreateDesc ( const HMDDeviceCreateDesc other)

Definition at line 55 of file OVR_Linux_HMDDevice.cpp.

Member Function Documentation

virtual DeviceCreateDesc* OVR::Linux::HMDDeviceCreateDesc::Clone ( ) const
inlinevirtual

Implements OVR::DeviceCreateDesc.

Definition at line 90 of file OVR_Linux_HMDDevice.h.

bool OVR::Linux::HMDDeviceCreateDesc::GetDeviceInfo ( DeviceInfo info) const
virtual

Implements OVR::DeviceCreateDesc.

Definition at line 129 of file OVR_Common_HMDDevice.cpp.

HmdTypeEnum OVR::Linux::HMDDeviceCreateDesc::GetHmdType ( ) const

Definition at line 63 of file OVR_Common_HMDDevice.cpp.

HMDDeviceCreateDesc::MatchResult OVR::Linux::HMDDeviceCreateDesc::MatchDevice ( const DeviceCreateDesc other,
DeviceCreateDesc **  pcandidate 
) const
virtual

Implements OVR::DeviceCreateDesc.

Definition at line 69 of file OVR_Linux_HMDDevice.cpp.

bool OVR::Linux::HMDDeviceCreateDesc::MatchDevice ( const String path)
virtual

Reimplemented from OVR::DeviceCreateDesc.

Definition at line 182 of file OVR_Linux_HMDDevice.cpp.

DeviceBase * OVR::Linux::HMDDeviceCreateDesc::NewDeviceInstance ( )
virtual

Implements OVR::DeviceCreateDesc.

Definition at line 34 of file OVR_Common_HMDDevice.cpp.

void OVR::Linux::HMDDeviceCreateDesc::SetDistortion ( const float *  dks)

Definition at line 55 of file OVR_Common_HMDDevice.cpp.

void OVR::Linux::HMDDeviceCreateDesc::SetScreenParameters ( int  x,
int  y,
int  hres,
int  vres,
float  hsize,
float  vsize,
float  vCenterFromTopInMeters,
float  lensSeparationInMeters 
)

Definition at line 39 of file OVR_Common_HMDDevice.cpp.

bool OVR::Linux::HMDDeviceCreateDesc::UpdateMatchedCandidate ( const DeviceCreateDesc other,
bool *  newDeviceFlag = NULL 
)
virtual

Reimplemented from OVR::DeviceCreateDesc.

Definition at line 130 of file OVR_Linux_HMDDevice.cpp.

Friends And Related Function Documentation

friend class HMDDevice
friend

Definition at line 58 of file OVR_Linux_HMDDevice.h.

Field Documentation

unsigned int OVR::Linux::HMDDeviceCreateDesc::Contents
protected

Definition at line 72 of file OVR_Linux_HMDDevice.h.

struct { ... } OVR::Linux::HMDDeviceCreateDesc::Desktop
String OVR::Linux::HMDDeviceCreateDesc::DeviceId
protected

Definition at line 66 of file OVR_Linux_HMDDevice.h.

String OVR::Linux::HMDDeviceCreateDesc::DisplayDeviceName
protected

Definition at line 67 of file OVR_Linux_HMDDevice.h.

long OVR::Linux::HMDDeviceCreateDesc::DisplayId
protected

Definition at line 83 of file OVR_Linux_HMDDevice.h.

DistortionEqnType OVR::Linux::HMDDeviceCreateDesc::DistortionEqn
protected

Definition at line 80 of file OVR_Linux_HMDDevice.h.

float OVR::Linux::HMDDeviceCreateDesc::DistortionK[4]
protected

Definition at line 81 of file OVR_Linux_HMDDevice.h.

float OVR::Linux::HMDDeviceCreateDesc::LensSeparationInMeters
protected

Definition at line 77 of file OVR_Linux_HMDDevice.h.

Sizei OVR::Linux::HMDDeviceCreateDesc::ResolutionInPixels
protected

Definition at line 74 of file OVR_Linux_HMDDevice.h.

Sizef OVR::Linux::HMDDeviceCreateDesc::ScreenSizeInMeters
protected

Definition at line 75 of file OVR_Linux_HMDDevice.h.

float OVR::Linux::HMDDeviceCreateDesc::VCenterFromTopInMeters
protected

Definition at line 76 of file OVR_Linux_HMDDevice.h.


The documentation for this class was generated from the following files: