26 #ifndef INCLUDED_Location2DComponent_h_GUID_A831481F_0257_449A_6404_3B789BD89CEF
27 #define INCLUDED_Location2DComponent_h_GUID_A831481F_0257_449A_6404_3B789BD89CEF
37 #include <vrpn_BaseClass.h>
55 static const char *identifier();
67 static OSVR_COMMON_EXPORT shared_ptr<Location2DComponent>
73 OSVR_COMMON_EXPORT
void
81 OSVR_COMMON_EXPORT
void registerLocationHandler(LocationHandler cb);
85 virtual void m_parentSet();
87 static int VRPN_CALLBACK
88 m_handleLocationRecord(
void *userdata, vrpn_HANDLERPARAM p);
93 std::vector<LocationHandler> m_cb;
100 #endif // INCLUDED_Location2DComponent_h_GUID_A831481F_0257_449A_6404_3B789BD89CEF
uint32_t OSVR_ChannelCount
The integer type specifying a number of channels/sensors or a channel/sensor index.
CRTP class template wrapping message-specific data and/or logic.
A structure defining a 2D vector, which represents position.
static shared_ptr< Location2DComponent > create(OSVR_ChannelCount numSensor=1)
Factory method.
Automatically-generated export header - do not edit!
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
messages::LocationRecord locationRecord
Message from server to client, containing 2D location data.