Go to the documentation of this file.
16 #ifndef SURGSIM_DEVICES_LEAP_LEAPDEVICE_H
17 #define SURGSIM_DEVICES_LEAP_LEAPDEVICE_H
32 SURGSIM_STATIC_REGISTRATION(LeapDevice);
130 #endif //SURGSIM_DEVICES_LEAP_LEAPDEVICE_H
DataStructures::OptionalValue< bool > m_requestedHmdTrackingMode
Tracking mode.
Definition: LeapDevice.h:119
#define SURGSIM_ENUM_TYPE
Required type of enums used by SURGSIM_SERIALIZABLE_ENUM.
Definition: Accessible.h:261
std::shared_ptr< LeapScaffold > m_scaffold
Definition: LeapDevice.h:114
bool isProvidingImages() const
Get if the device should provide the stereo infrared images.
Definition: LeapDevice.cpp:88
A class that manages Leap devices.
Definition: LeapScaffold.h:41
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
bool isInitialized() const override
Definition: LeapDevice.cpp:121
bool isUsingHmdTrackingMode() const
Is Using HMD Tracking Mode.
Definition: LeapDevice.cpp:70
Definition: CompoundShapeToGraphics.cpp:29
bool m_isProvidingImages
Request Camera Images mode.
Definition: LeapDevice.h:122
SURGSIM_SERIALIZABLE_ENUM(SurgSim::Devices::HandType,(HANDTYPE_LEFT)(HANDTYPE_RIGHT))
bool initialize() override
Fully initialize the device.
Definition: LeapDevice.cpp:93
HandType m_handType
Definition: LeapDevice.h:116
bool finalize() override
Finalize (de-initialize) the device.
Definition: LeapDevice.cpp:113
void setHandType(HandType type)
Set the type of hand.
Definition: LeapDevice.cpp:51
A class implementing the communication with one hand tracked by Leap Motion camera.
Definition: LeapDevice.h:65
SURGSIM_CLASSNAME(SurgSim::Devices::LeapDevice)
virtual ~LeapDevice()
Destructor.
Definition: LeapDevice.cpp:43
HandType getHandType() const
Get the type of hand.
Definition: LeapDevice.cpp:56
LeapDevice(const std::string &name)
Constructor.
Definition: LeapDevice.cpp:31