OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
InterfaceStateC.cpp File Reference

Implementation. More...

Go to the source code of this file.

Macros

#define OSVR_CALLBACK_METHODS(TYPE)
 

Functions

OSVR_ReturnCode osvrGetPoseState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_PoseState *state)
 Get Pose state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetPositionState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_PositionState *state)
 Get Position state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetOrientationState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_OrientationState *state)
 Get Orientation state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetVelocityState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_VelocityState *state)
 Get Velocity state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetLinearVelocityState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_LinearVelocityState *state)
 Get LinearVelocity state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetAngularVelocityState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_AngularVelocityState *state)
 Get AngularVelocity state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetAccelerationState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_AccelerationState *state)
 Get Acceleration state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetLinearAccelerationState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_LinearAccelerationState *state)
 Get LinearAcceleration state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetAngularAccelerationState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_AngularAccelerationState *state)
 Get AngularAcceleration state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetButtonState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_ButtonState *state)
 Get Button state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetAnalogState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_AnalogState *state)
 Get Analog state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetLocation2DState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_Location2DState *state)
 Get Location2D state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetDirectionState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_DirectionState *state)
 Get Direction state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetEyeTracker2DState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_EyeTracker2DState *state)
 Get EyeTracker2D state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetEyeTracker3DState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_EyeTracker3DState *state)
 Get EyeTracker3D state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetEyeTrackerBlinkState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_EyeTrackerBlinkState *state)
 Get EyeTrackerBlink state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetNaviVelocityState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_NaviVelocityState *state)
 Get NaviVelocity state from an interface, returning failure if none \ * exists.
 
OSVR_ReturnCode osvrGetNaviPositionState (OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_NaviPositionState *state)
 Get NaviPosition state from an interface, returning failure if none \ * exists.
 

Detailed Description

Implementation.

Date
2014
Author
Sensics, Inc. http://sensics.com/osvr

Definition in file InterfaceStateC.cpp.

Macro Definition Documentation

#define OSVR_CALLBACK_METHODS (   TYPE)
Value:
OSVR_ReturnCode osvrGet##TYPE##State(OSVR_ClientInterface iface, \
struct OSVR_TimeValue *timestamp, \
OSVR_##TYPE##State *state) { \
bool hasState = \
iface->getState<OSVR_##TYPE##Report>(*timestamp, *state); \
}
#define OSVR_RETURN_FAILURE
The "failure" value for an OSVR_ReturnCode.
Definition: ReturnCodesC.h:47
#define OSVR_RETURN_SUCCESS
The "success" value for an OSVR_ReturnCode.
Definition: ReturnCodesC.h:45
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
Definition: TimeValueC.h:81

Definition at line 35 of file InterfaceStateC.cpp.