16 #ifndef SURGSIM_DEVICES_LEAP_LEAPDEVICE_H 17 #define SURGSIM_DEVICES_LEAP_LEAPDEVICE_H 21 #include "SurgSim/DataStructures/OptionalValue.h" 22 #include "SurgSim/Input/CommonDevice.h" 32 SURGSIM_STATIC_REGISTRATION(LeapDevice);
34 enum HandType : SURGSIM_ENUM_TYPE;
112 bool finalize()
override;
114 std::shared_ptr<LeapScaffold> m_scaffold;
122 bool m_isProvidingImages;
128 SURGSIM_SERIALIZABLE_ENUM(SurgSim::Devices::HandType, (HANDTYPE_LEFT)(HANDTYPE_RIGHT));
130 #endif //SURGSIM_DEVICES_LEAP_LEAPDEVICE_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
LeapDevice(const std::string &name)
Constructor.
Definition: LeapDevice.cpp:31
bool initialize() override
Fully initialize the device.
Definition: LeapDevice.cpp:93
void setProvideImages(bool provideImages)
Set if the device should provide the stereo infrared images.
Definition: LeapDevice.cpp:82
void setUseHmdTrackingMode(bool useHmdTrackingMode)
Set the hand tracking mode to HMD This is a global setting that optimizes hand tracking based on the ...
Definition: LeapDevice.cpp:61
A class implementing the communication with one hand tracked by Leap Motion camera.
Definition: LeapDevice.h:65
A class that manages Leap devices.
Definition: LeapScaffold.h:41
bool isProvidingImages() const
Get if the device should provide the stereo infrared images.
Definition: LeapDevice.cpp:88
bool isInitialized() const override
Definition: LeapDevice.cpp:121
bool isUsingHmdTrackingMode() const
Is Using HMD Tracking Mode.
Definition: LeapDevice.cpp:70
HandType getHandType() const
Get the type of hand.
Definition: LeapDevice.cpp:56
virtual ~LeapDevice()
Destructor.
Definition: LeapDevice.cpp:43
void setHandType(HandType type)
Set the type of hand.
Definition: LeapDevice.cpp:51