7 #include "imstkDeviceManagerFactory.h" 8 #include "imstkLogger.h" 10 #ifdef iMSTK_USE_HAPLY 11 #include "imstkHaplyDeviceManager.h" 14 #ifdef iMSTK_USE_OPENHAPTICS 15 #include "imstkOpenHapticDeviceManager.h" 19 #include "imstkVRPNDeviceManager.h" 24 #ifdef iMSTK_USE_HAPLY 25 IMSTK_REGISTER_DEVICE_MANAGER(HaplyDeviceManager);
28 #ifdef iMSTK_USE_OPENHAPTICS 29 IMSTK_REGISTER_DEVICE_MANAGER(OpenHapticDeviceManager);
33 IMSTK_REGISTER_DEVICE_MANAGER(VRPNDeviceManager);
36 std::shared_ptr<DeviceManager>
41 LOG(FATAL) <<
"No DeviceManager type named: " << typeName;
50 std::shared_ptr<DeviceManager>
53 #if defined iMSTK_USE_HAPLY 55 #elif defined iMSTK_USE_OPENHAPTICS 57 #elif defined iMSTK_USE_VRPN 60 LOG(FATAL) <<
"Tried to make default DeviceManager but no haptic API was found";
static std::shared_ptr< DeviceManager > makeDeviceManager()
Attempts to create a new DeviceManager by whichever is default If multiple haptic managers are built ...
static bool contains(const std::string &name)
static std::shared_ptr< DeviceManager > create(const std::string &name, Args &&... args)
tries to construct the object give name, it will forward the given paramters