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 Definition: CompoundShapeToGraphics.cpp:29
HandType m_handType
Definition: LeapDevice.h:116
std::shared_ptr< LeapScaffold > m_scaffold
Definition: LeapDevice.h:114
bool finalize() override
Finalize (de-initialize) the device.
Definition: LeapDevice.cpp:113
LeapDevice(const std::string &name)
Constructor.
Definition: LeapDevice.cpp:31
SURGSIM_CLASSNAME(SurgSim::Devices::LeapDevice)
DataStructures::OptionalValue< bool > m_requestedHmdTrackingMode
Tracking mode.
Definition: LeapDevice.h:119
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
bool m_isProvidingImages
Request Camera Images mode.
Definition: LeapDevice.h:122
A class that manages Leap devices.
Definition: LeapScaffold.h:41
SURGSIM_SERIALIZABLE_ENUM(SurgSim::Devices::HandType,(HANDTYPE_LEFT)(HANDTYPE_RIGHT))
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
#define SURGSIM_ENUM_TYPE
Required type of enums used by SURGSIM_SERIALIZABLE_ENUM.
Definition: Accessible.h:261
virtual ~LeapDevice()
Destructor.
Definition: LeapDevice.cpp:43
void setHandType(HandType type)
Set the type of hand.
Definition: LeapDevice.cpp:51