9 #include "imstkDeviceClient.h" 11 #include "vrpn_Tracker.h" 12 #include "vrpn_Analog.h" 13 #include "vrpn_Button.h" 14 #include "vrpn_ForceDevice.h" 16 #include "imstkVRPNDeviceManager.h" 33 VRPNDeviceClient(
const std::string& deviceName, VRPNDeviceType type,
const std::string& ip =
"localhost");
76 VRPNDeviceType m_type;
static void VRPN_CALLBACK trackerPositionChangeHandler(void *userData, const _vrpn_TRACKERCB t)
VRPN call back for position and orientation data.
The device client's represents the device and provides an interface to acquire data from a device...
static void VRPN_CALLBACK trackerVelocityChangeHandler(void *userData, const _vrpn_TRACKERVELCB v)
VRPN call back for velocity data.
virtual ~VRPNDeviceClient() override=default
Destructor.
static void VRPN_CALLBACK buttonChangeHandler(void *userData, const _vrpn_BUTTONCB b)
VRPN call back for button changed (pressed or released)
VRPNDeviceClient(const std::string &deviceName, VRPNDeviceType type, const std::string &ip="localhost")
Constructor.
static void VRPN_CALLBACK analogChangeHandler(void *userData, const _vrpn_ANALOGCB a)
VRPN call back analog data.
VRPNDeviceType getType() const
This class is the receiver of the updates sent by the vrpn_server.