PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
vtkPlusLeapMotion Class Reference

Interface for the LeapMotion hand tracker. More...

#include <src/PlusDataCollection/LeapMotion/vtkPlusLeapMotion.h>

Inheritance diagram for vtkPlusLeapMotion:
Inheritance graph
[legend]
Collaboration diagram for vtkPlusLeapMotion:
Collaboration graph
[legend]

Public Types

typedef vtkPlusDevice Superclass
 
- Public Types inherited from vtkPlusDevice
typedef vtkImageAlgorithm Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual bool GetInvertImage ()
 
virtual bool GetLeapHMDPolicy ()
 
virtual bool GetRefusePauseResumePolicy ()
 
virtual void InvertImageOff ()
 
virtual void InvertImageOn ()
 
virtual int IsA (const char *type)
 
virtual bool IsTracker () const
 
virtual void LeapHMDPolicyOff ()
 
virtual void LeapHMDPolicyOn ()
 
void PrintSelf (ostream &os, vtkIndent indent)
 
PlusStatus Probe ()
 
virtual PlusStatus ReadConfiguration (vtkXMLDataElement *config)
 
virtual void RefusePauseResumePolicyOff ()
 
virtual void RefusePauseResumePolicyOn ()
 
virtual void SetInvertImage (bool)
 
virtual void SetLeapHMDPolicy (bool)
 
virtual void SetRefusePauseResumePolicy (bool)
 
virtual PlusStatus WriteConfiguration (vtkXMLDataElement *config)
 
- Public Member Functions inherited from vtkPlusDevice
PlusStatus AddFieldDataSource (vtkPlusDataSource *aSource)
 
PlusStatus AddInputChannel (vtkPlusChannel *aChannel)
 
PlusStatus AddOutputChannel (vtkPlusChannel *aChannel)
 
PlusStatus AddTool (vtkPlusDataSource *tool, bool requireUniquePortName=true)
 
PlusStatus AddVideoSource (vtkPlusDataSource *anImage)
 
void ClearAllBuffers ()
 
virtual PlusStatus Connect ()
 
virtual PlusStatus CreateDefaultOutputChannel (const char *channelId=NULL, bool addSource=true)
 
void DeepCopy (const vtkPlusDevice &device)
 
virtual PlusStatus Disconnect ()
 
virtual PlusStatus ForceUpdate ()
 
virtual double GetAcquisitionRate () const
 
virtual PlusStatus GetBufferSize (vtkPlusChannel &aChannel, int &outVal, const std::string &aSourceId=std::string(""))
 
virtual int GetConnected () const
 
virtual bool GetCorrectlyConfigured () const
 
PlusStatus GetDataSource (const char *aSourceId, vtkPlusDataSource *&aSource)
 
PlusStatus GetDataSource (const std::string &aSourceId, vtkPlusDataSource *&aSource)
 
virtual double GetDesiredTimestamp ()
 
virtual std::string GetDeviceId () const
 
PlusStatus GetFieldDataSource (const char *aSourceId, vtkPlusDataSource *&aSource) const
 
PlusStatus GetFieldDataSource (const std::string &aSourceId, vtkPlusDataSource *&aSource) const
 
DataSourceContainerConstIterator GetFieldDataSourcessIteratorBegin () const
 
DataSourceContainerConstIterator GetFieldDataSourcessIteratorEnd () const
 
PlusStatus GetFirstActiveOutputVideoSource (vtkPlusDataSource *&aVideoSource)
 
PlusStatus GetFirstActiveTool (vtkPlusDataSource *&aTool) const
 
PlusStatus GetFirstOutputChannel (vtkPlusChannel *&aChannel)
 
PlusStatus GetFirstVideoSource (vtkPlusDataSource *&anImage)
 
virtual unsigned long GetFrameNumber () const
 
virtual double GetFrameTimeStamp () const
 
virtual PlusStatus GetImage (const std::string &requestedImageId, std::string &assignedImageId, const std::string &imageReferencFrameName, vtkImageData *imageData, vtkMatrix4x4 *ijkToReferenceTransform)
 
virtual PlusStatus GetImageMetaData (igsioCommon::ImageMetaDataList &imageMetaDataItems)
 
virtual US_IMAGE_TYPE GetImageType (vtkPlusChannel &aChannel)
 
PlusStatus GetInputDevices (std::vector< vtkPlusDevice * > &outDeviceList) const
 
PlusStatus GetInputDevicesRecursive (std::vector< vtkPlusDevice * > &outDeviceList) const
 
virtual PlusStatus GetInputFrameSize (vtkPlusChannel &aChannel, unsigned int &x, unsigned int &y, unsigned int &z) const
 
virtual PlusStatus GetInputFrameSize (vtkPlusChannel &aChannel, FrameSizeType &dim) const
 
double GetInternalUpdateRate () const
 
virtual double GetLocalTimeOffsetSec () const
 
double GetMissingInputGracePeriodSec () const
 
virtual int GetNumberOfFieldDataSources () const
 
virtual int GetNumberOfTools () const
 
virtual int GetNumberOfVideoSources () const
 
PlusStatus GetOutputChannelByName (vtkPlusChannel *&aChannel, const char *aChannelId)
 
PlusStatus GetOutputChannelByName (vtkPlusChannel *&aChannel, const std::string &aChannelId)
 
ChannelContainerConstIterator GetOutputChannelsEnd () const
 
ChannelContainerIterator GetOutputChannelsEnd ()
 
ChannelContainerConstIterator GetOutputChannelsStart () const
 
ChannelContainerIterator GetOutputChannelsStart ()
 
virtual PlusStatus GetOutputFrameSize (vtkPlusChannel &aChannel, unsigned int &x, unsigned int &y, unsigned int &z) const
 
virtual PlusStatus GetOutputFrameSize (vtkPlusChannel &aChannel, FrameSizeType &dim) const
 
virtual std::string GetParameter (const std::string &key) const
 
virtual PlusStatus GetParameter (const std::string &key, std::string &outValue) const
 
virtual igsioCommon::VTKScalarPixelType GetPixelType (vtkPlusChannel &aChannel)
 
virtual std::string GetSdkVersion ()
 
virtual double GetStartTime ()
 
virtual double GetTimestampClosestToDesired ()
 
PlusStatus GetTool (const char *aToolSourceId, vtkPlusDataSource *&aTool) const
 
PlusStatus GetTool (const std::string &aToolSourceId, vtkPlusDataSource *&aTool) const
 
PlusStatus GetToolByPortName (const char *aPortName, vtkPlusDataSource *&aSource)
 
PlusStatus GetToolByPortName (const std::string &aPortName, vtkPlusDataSource *&aSource)
 
DataSourceContainerConstIterator GetToolIteratorBegin () const
 
DataSourceContainerConstIterator GetToolIteratorEnd () const
 
std::string GetToolReferenceFrameName () const
 
virtual int GetUpdateWithDesiredTimestamp ()
 
PlusStatus GetVideoSource (const char *aSourceId, vtkPlusDataSource *&aVideoSource)
 
PlusStatus GetVideoSourceByIndex (const unsigned int index, vtkPlusDataSource *&aVideoSource)
 
DataSourceContainerConstIterator GetVideoSourceIteratorBegin () const
 
DataSourceContainerConstIterator GetVideoSourceIteratorEnd () const
 
std::vector< vtkPlusDataSource * > GetVideoSources () const
 
PlusStatus GetVideoSourcesByPortName (const char *aPortName, std::vector< vtkPlusDataSource * > &sources)
 
PlusStatus GetVideoSourcesByPortName (const std::string &aPortName, std::vector< vtkPlusDataSource * > &sources)
 
virtual bool IsConnected () const
 
virtual bool IsRecording () const
 
virtual bool IsResettable ()
 
virtual bool IsVirtual () const
 
virtual int OutputChannelCount () const
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual PlusStatus Reset ()
 
virtual PlusStatus SendText (const std::string &textToSend, std::string *textReceived=NULL)
 
PlusStatus SetAcquisitionRate (double aRate)
 
virtual PlusStatus SetBufferSize (vtkPlusChannel &aChannel, int FrameBufferSize, const std::string &aSourceId=std::string(""))
 
virtual void SetDataCollector (vtkPlusDataCollector *_arg)
 
virtual void SetDesiredTimestamp (double)
 
void SetDeviceId (const std::string &id)
 
void SetFieldDataSourcesBufferSize (int aBufferSize)
 
virtual PlusStatus SetImageType (vtkPlusChannel &aChannel, US_IMAGE_TYPE imageType)
 
virtual PlusStatus SetInputFrameSize (vtkPlusDataSource &aSource, unsigned int x, unsigned int y, unsigned int z)
 
virtual void SetLocalTimeOffsetSec (double aTimeOffsetSec)
 
virtual void SetMissingInputGracePeriodSec (double)
 
virtual PlusStatus SetParameter (const std::string &key, const std::string &value)
 
virtual PlusStatus SetPixelType (vtkPlusChannel &aChannel, igsioCommon::VTKScalarPixelType pixelType)
 
virtual void SetStartTime (double startTime)
 
void SetToolReferenceFrameName (const std::string &frameName)
 
void SetToolsBufferSize (int aBufferSize)
 
virtual void SetUpdateWithDesiredTimestamp (int)
 
virtual PlusStatus StartRecording ()
 
virtual PlusStatus StopRecording ()
 
virtual void UpdateWithDesiredTimestampOff ()
 
virtual void UpdateWithDesiredTimestampOn ()
 
virtual PlusStatus WriteToolsToSequenceFile (const std::string &filename, bool useCompression=false)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkPlusLeapMotionNew ()
 
static vtkPlusLeapMotionSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkPlusDevice
static PlusStatus GetToolReferenceFrameFromTrackedFrame (igsioTrackedFrame &aFrame, std::string &aToolReferenceFrameName)
 
static int IsTypeOf (const char *type)
 
static vtkPlusDeviceNew ()
 
static vtkPlusDeviceSafeDownCast (vtkObject *o)
 

Protected Types

enum  Bone { Bone_Metacarpal, Bone_Proximal, Bone_Intermediate, Bone_Distal }
 
enum  Finger {
  Finger_Thumb, Finger_Index, Finger_Middle, Finger_Ring,
  Finger_Pinky
}
 

Protected Member Functions

std::string EventToString (_eLeapEventType)
 
LEAP_TRACKING_EVENT * GetFrame ()
 
LEAP_HEAD_POSE_EVENT * GetHeadPose ()
 
virtual PlusStatus InternalConnect ()
 
virtual PlusStatus InternalDisconnect ()
 
virtual PlusStatus InternalStartRecording ()
 
virtual PlusStatus InternalStopRecording ()
 
virtual PlusStatus InternalUpdate ()
 
virtual PlusStatus NotifyConfigured ()
 
PlusStatus OnConfigChangeEvent (const LEAP_CONFIG_CHANGE_EVENT *configChangeEvent)
 
PlusStatus OnConfigResponseEvent (const LEAP_CONFIG_RESPONSE_EVENT *configResponseEvent)
 
PlusStatus OnConnectionEvent (const LEAP_CONNECTION_EVENT *connectionEvent)
 
PlusStatus OnConnectionLostEvent (const LEAP_CONNECTION_LOST_EVENT *connectionLostEvent)
 
PlusStatus OnDeviceEvent (const LEAP_DEVICE_EVENT *deviceEvent)
 
PlusStatus OnDeviceFailureEvent (const LEAP_DEVICE_FAILURE_EVENT *deviceFailureEvent)
 
PlusStatus OnDeviceLostEvent (const LEAP_DEVICE_EVENT *deviceEvent)
 
PlusStatus OnHeadPoseEvent (const LEAP_HEAD_POSE_EVENT *headPoseEvent)
 
PlusStatus OnImageEvent (const LEAP_IMAGE_EVENT *imageEvent)
 
PlusStatus OnLogEvent (const LEAP_LOG_EVENT *logEvent)
 
PlusStatus OnLogEvents (const LEAP_LOG_EVENTS *logEvents)
 
PlusStatus OnPointMappingChangeEvent (const LEAP_POINT_MAPPING_CHANGE_EVENT *pointMappingChangeEvent)
 
PlusStatus OnPolicyEvent (const LEAP_POLICY_EVENT *policyEvent)
 
PlusStatus OnTrackingEvent (const LEAP_TRACKING_EVENT *trackingEvent)
 
std::string ResultToString (eLeapRS)
 
void SetFrame (const LEAP_TRACKING_EVENT *trackingEvent)
 
void SetHeadPose (const LEAP_HEAD_POSE_EVENT *headPose)
 
PlusStatus ToolTimeStampedUpdateBone (std::string boneName, eLeapHandType handIndex, Finger fingerIndex, Bone boneIndex)
 
PlusStatus ToolTimeStampedUpdatePalm (const std::string &name, eLeapHandType hand)
 
 vtkPlusLeapMotion ()
 
 ~vtkPlusLeapMotion ()
 
- Protected Member Functions inherited from vtkPlusDevice
virtual PlusStatus AddVideoItemToVideoSources (const std::vector< vtkPlusDataSource * > &videoSources, const igsioVideoFrame &frame, long frameNumber, double unfilteredTimestamp=UNDEFINED_TIMESTAMP, double filteredTimestamp=UNDEFINED_TIMESTAMP, const igsioFieldMapType *customFields=NULL)
 
virtual PlusStatus AddVideoItemToVideoSources (const std::vector< vtkPlusDataSource * > &videoSources, void *imageDataPtr, US_IMAGE_ORIENTATION usImageOrientation, const FrameSizeType &frameSizeInPx, igsioCommon::VTKScalarPixelType pixelType, unsigned int numberOfScalarComponents, US_IMAGE_TYPE imageType, int numberOfBytesToSkip, long frameNumber, double unfilteredTimestamp=UNDEFINED_TIMESTAMP, double filteredTimestamp=UNDEFINED_TIMESTAMP, const igsioFieldMapType *customFields=NULL)
 
PlusStatus EnsureUniqueDataSourceId (const std::string &aSourceId)
 
vtkXMLDataElement * FindInputChannelElement (vtkXMLDataElement *rootXMLElement, const char *aChannelId)
 
vtkXMLDataElement * FindOutputChannelElement (vtkXMLDataElement *rootXMLElement, const char *aChannelId)
 
vtkXMLDataElement * FindThisDeviceElement (vtkXMLDataElement *rootXMLElement)
 
virtual vtkPlusDataCollectorGetDataCollector ()
 
double GetRecordingStartTime () const
 
bool GetStartThreadForInternalUpdates () const
 
bool HasGracePeriodExpired ()
 
virtual void InternalWriteInputChannels (vtkXMLDataElement *rootXMLElement)
 
virtual void InternalWriteOutputChannels (vtkXMLDataElement *rootXMLElement)
 
virtual void SetCorrectlyConfigured (bool)
 
virtual void SetRecordingStartTime (double)
 
virtual void SetStartThreadForInternalUpdates (bool)
 
virtual PlusStatus ToolTimeStampedUpdate (const std::string &aToolSourceId, vtkMatrix4x4 *matrix, ToolStatus status, unsigned long frameNumber, double unfilteredtimestamp, const igsioFieldMapType *customFields=NULL)
 
virtual PlusStatus ToolTimeStampedUpdateWithoutFiltering (const std::string &aToolSourceId, vtkMatrix4x4 *matrix, ToolStatus status, double unfilteredtimestamp, double filteredtimestamp, const igsioFieldMapType *customFields=NULL)
 
 vtkPlusDevice ()
 
virtual ~vtkPlusDevice ()
 

Protected Attributes

LEAP_CONNECTION Connection
 
bool ImageInitialized
 
bool Initialized
 
bool InvertImage
 
LEAP_HEAD_POSE_EVENT LastHeadPoseEvent
 
LEAP_CONNECTION_MESSAGE LastMessage
 
LEAP_TRACKING_EVENT LastTrackingEvent
 
bool LeapHMDPolicy
 
vtkPlusDataSourceLeftCameraSource
 
vtkIGSIORecursiveCriticalSection * Mutex
 
unsigned int PollTimeoutMs
 
bool RefusePauseResumePolicy
 
vtkPlusDataSourceRightCameraSource
 
- Protected Attributes inherited from vtkPlusDevice
double AcquisitionRate
 
int Connected
 
bool CorrectlyConfigured
 
StreamBufferItemCurrentStreamBufferItem
 
vtkPlusDataCollectorDataCollector
 
double DesiredTimestamp
 
std::string DeviceId
 
DataSourceContainer Fields
 
unsigned long FrameNumber
 
double FrameTimeStamp
 
ChannelContainer InputChannels
 
double LocalTimeOffsetSec
 
double MissingInputGracePeriodSec
 
ChannelContainer OutputChannels
 
int OutputNeedsInitialization
 
std::map< std::string, std::string > Parameters
 
int Recording
 
double RecordingStartTime
 
std::set< std::string > ReportedUnknownTools
 
bool RequireImageOrientationInConfiguration
 
bool RequirePortNameInDeviceSetConfiguration
 
bool StartThreadForInternalUpdates
 
bool ThreadAlive
 
vtkMultiThreader * Threader
 
int ThreadId
 
double TimestampClosestToDesired
 
std::string ToolReferenceFrameName
 
DataSourceContainer Tools
 
int UpdateWithDesiredTimestamp
 
DataSourceContainer VideoSources
 

Additional Inherited Members

- Public Attributes inherited from vtkPlusDevice
double InternalUpdateRate
 
vtkIGSIORecursiveCriticalSection * UpdateMutex
 
vtkTimeStamp UpdateTime
 
- Static Public Attributes inherited from vtkPlusDevice
static const std::string BMODE_PORT_NAME = "B"
 
static const std::string PARAMETER_XML_ELEMENT_TAG = "Parameter"
 
static const std::string PARAMETERS_XML_ELEMENT_TAG = "Parameters"
 
static const std::string RFMODE_PORT_NAME = "Rf"
 
- Static Protected Member Functions inherited from vtkPlusDevice
static void * vtkDataCaptureThread (vtkMultiThreader::ThreadInfo *data)
 
- Static Protected Attributes inherited from vtkPlusDevice
static const int VIRTUAL_DEVICE_FRAME_RATE = 50
 

Detailed Description

Interface for the LeapMotion hand tracker.

Definition at line 26 of file vtkPlusLeapMotion.h.

Member Typedef Documentation

◆ Superclass

Definition at line 30 of file vtkPlusLeapMotion.h.

Member Enumeration Documentation

◆ Bone

enum vtkPlusLeapMotion::Bone
protected
Enumerator
Bone_Metacarpal 
Bone_Proximal 
Bone_Intermediate 
Bone_Distal 

Definition at line 75 of file vtkPlusLeapMotion.h.

◆ Finger

enum vtkPlusLeapMotion::Finger
protected
Enumerator
Finger_Thumb 
Finger_Index 
Finger_Middle 
Finger_Ring 
Finger_Pinky 

Definition at line 67 of file vtkPlusLeapMotion.h.

Constructor & Destructor Documentation

◆ vtkPlusLeapMotion()

vtkPlusLeapMotion::vtkPlusLeapMotion ( )
protected

Definition at line 53 of file vtkPlusLeapMotion.cxx.

◆ ~vtkPlusLeapMotion()

vtkPlusLeapMotion::~vtkPlusLeapMotion ( )
protected

Definition at line 70 of file vtkPlusLeapMotion.cxx.

Member Function Documentation

◆ EventToString()

std::string vtkPlusLeapMotion::EventToString ( _eLeapEventType  t)
protected

Definition at line 837 of file vtkPlusLeapMotion.cxx.

◆ GetClassName()

virtual const char* vtkPlusLeapMotion::GetClassName ( )
virtual

Reimplemented from vtkPlusDevice.

◆ GetFrame()

LEAP_TRACKING_EVENT * vtkPlusLeapMotion::GetFrame ( )
protected

Definition at line 483 of file vtkPlusLeapMotion.cxx.

◆ GetHeadPose()

LEAP_HEAD_POSE_EVENT * vtkPlusLeapMotion::GetHeadPose ( )
protected

Definition at line 497 of file vtkPlusLeapMotion.cxx.

◆ GetInvertImage()

virtual bool vtkPlusLeapMotion::GetInvertImage ( )
virtual

◆ GetLeapHMDPolicy()

virtual bool vtkPlusLeapMotion::GetLeapHMDPolicy ( )
virtual

◆ GetRefusePauseResumePolicy()

virtual bool vtkPlusLeapMotion::GetRefusePauseResumePolicy ( )
virtual

◆ InternalConnect()

PlusStatus vtkPlusLeapMotion::InternalConnect ( )
protectedvirtual

Should be overridden to connect to the hardware

Reimplemented from vtkPlusDevice.

Definition at line 115 of file vtkPlusLeapMotion.cxx.

◆ InternalDisconnect()

PlusStatus vtkPlusLeapMotion::InternalDisconnect ( )
protectedvirtual

Release the video driver. Should be overridden to disconnect from the hardware.

Reimplemented from vtkPlusDevice.

Definition at line 145 of file vtkPlusLeapMotion.cxx.

◆ InternalStartRecording()

PlusStatus vtkPlusLeapMotion::InternalStartRecording ( )
protectedvirtual

Called at the end of StartRecording to allow hardware-specific actions for starting the recording

Reimplemented from vtkPlusDevice.

Definition at line 256 of file vtkPlusLeapMotion.cxx.

◆ InternalStopRecording()

PlusStatus vtkPlusLeapMotion::InternalStopRecording ( )
protectedvirtual

Called at the beginning of StopRecording to allow hardware-specific actions for stopping the recording

Reimplemented from vtkPlusDevice.

Definition at line 269 of file vtkPlusLeapMotion.cxx.

◆ InternalUpdate()

PlusStatus vtkPlusLeapMotion::InternalUpdate ( )
protectedvirtual

The subclass will do all the hardware-specific update stuff in this function. It should call ToolUpdate() for each tool. Note that vtkPlusDevice.cxx starts up a separate thread after InternalStartRecording() is called, and that InternalUpdate() is called repeatedly from within that thread. Therefore, any code within InternalUpdate() must be thread safe. You can temporarily pause the thread by locking this->UpdateMutex->Lock() e.g. if you need to communicate with the device from outside of InternalUpdate(). A call to this->UpdateMutex->Unlock() will resume the thread.

Reimplemented from vtkPlusDevice.

Definition at line 156 of file vtkPlusLeapMotion.cxx.

◆ InvertImageOff()

virtual void vtkPlusLeapMotion::InvertImageOff ( )
virtual

◆ InvertImageOn()

virtual void vtkPlusLeapMotion::InvertImageOn ( )
virtual

◆ IsA()

virtual int vtkPlusLeapMotion::IsA ( const char *  type)
virtual

Reimplemented from vtkPlusDevice.

◆ IsTracker()

virtual bool vtkPlusLeapMotion::IsTracker ( ) const
inlinevirtual

Is this device a tracker

Reimplemented from vtkPlusDevice.

Definition at line 33 of file vtkPlusLeapMotion.h.

◆ IsTypeOf()

static int vtkPlusLeapMotion::IsTypeOf ( const char *  type)
static

◆ LeapHMDPolicyOff()

virtual void vtkPlusLeapMotion::LeapHMDPolicyOff ( )
virtual

◆ LeapHMDPolicyOn()

virtual void vtkPlusLeapMotion::LeapHMDPolicyOn ( )
virtual

◆ New()

static vtkPlusLeapMotion* vtkPlusLeapMotion::New ( )
static

◆ NotifyConfigured()

PlusStatus vtkPlusLeapMotion::NotifyConfigured ( )
protectedvirtual

Perform any completion tasks once configured

Reimplemented from vtkPlusDevice.

Definition at line 280 of file vtkPlusLeapMotion.cxx.

◆ OnConfigChangeEvent()

PlusStatus vtkPlusLeapMotion::OnConfigChangeEvent ( const LEAP_CONFIG_CHANGE_EVENT *  configChangeEvent)
protected

Definition at line 656 of file vtkPlusLeapMotion.cxx.

◆ OnConfigResponseEvent()

PlusStatus vtkPlusLeapMotion::OnConfigResponseEvent ( const LEAP_CONFIG_RESPONSE_EVENT *  configResponseEvent)
protected

Definition at line 662 of file vtkPlusLeapMotion.cxx.

◆ OnConnectionEvent()

PlusStatus vtkPlusLeapMotion::OnConnectionEvent ( const LEAP_CONNECTION_EVENT *  connectionEvent)
protected

Definition at line 503 of file vtkPlusLeapMotion.cxx.

◆ OnConnectionLostEvent()

PlusStatus vtkPlusLeapMotion::OnConnectionLostEvent ( const LEAP_CONNECTION_LOST_EVENT *  connectionLostEvent)
protected

Definition at line 509 of file vtkPlusLeapMotion.cxx.

◆ OnDeviceEvent()

PlusStatus vtkPlusLeapMotion::OnDeviceEvent ( const LEAP_DEVICE_EVENT *  deviceEvent)
protected

Definition at line 515 of file vtkPlusLeapMotion.cxx.

◆ OnDeviceFailureEvent()

PlusStatus vtkPlusLeapMotion::OnDeviceFailureEvent ( const LEAP_DEVICE_FAILURE_EVENT *  deviceFailureEvent)
protected

Definition at line 527 of file vtkPlusLeapMotion.cxx.

◆ OnDeviceLostEvent()

PlusStatus vtkPlusLeapMotion::OnDeviceLostEvent ( const LEAP_DEVICE_EVENT *  deviceEvent)
protected

Definition at line 521 of file vtkPlusLeapMotion.cxx.

◆ OnHeadPoseEvent()

PlusStatus vtkPlusLeapMotion::OnHeadPoseEvent ( const LEAP_HEAD_POSE_EVENT *  headPoseEvent)
protected

Definition at line 779 of file vtkPlusLeapMotion.cxx.

◆ OnImageEvent()

PlusStatus vtkPlusLeapMotion::OnImageEvent ( const LEAP_IMAGE_EVENT *  imageEvent)
protected

Definition at line 668 of file vtkPlusLeapMotion.cxx.

◆ OnLogEvent()

PlusStatus vtkPlusLeapMotion::OnLogEvent ( const LEAP_LOG_EVENT *  logEvent)
protected

Definition at line 613 of file vtkPlusLeapMotion.cxx.

◆ OnLogEvents()

PlusStatus vtkPlusLeapMotion::OnLogEvents ( const LEAP_LOG_EVENTS *  logEvents)
protected

Definition at line 633 of file vtkPlusLeapMotion.cxx.

◆ OnPointMappingChangeEvent()

PlusStatus vtkPlusLeapMotion::OnPointMappingChangeEvent ( const LEAP_POINT_MAPPING_CHANGE_EVENT *  pointMappingChangeEvent)
protected

Definition at line 773 of file vtkPlusLeapMotion.cxx.

◆ OnPolicyEvent()

PlusStatus vtkPlusLeapMotion::OnPolicyEvent ( const LEAP_POLICY_EVENT *  policyEvent)
protected

Definition at line 533 of file vtkPlusLeapMotion.cxx.

◆ OnTrackingEvent()

PlusStatus vtkPlusLeapMotion::OnTrackingEvent ( const LEAP_TRACKING_EVENT *  trackingEvent)
protected

Definition at line 550 of file vtkPlusLeapMotion.cxx.

◆ PrintSelf()

void vtkPlusLeapMotion::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Reimplemented from vtkPlusDevice.

Definition at line 80 of file vtkPlusLeapMotion.cxx.

◆ Probe()

PlusStatus vtkPlusLeapMotion::Probe ( )
virtual

Probe to see if the tracking system is present.

Reimplemented from vtkPlusDevice.

Definition at line 244 of file vtkPlusLeapMotion.cxx.

◆ ReadConfiguration()

PlusStatus vtkPlusLeapMotion::ReadConfiguration ( vtkXMLDataElement *  config)
virtual

Read configuration from xml data

Reimplemented from vtkPlusDevice.

Definition at line 91 of file vtkPlusLeapMotion.cxx.

◆ RefusePauseResumePolicyOff()

virtual void vtkPlusLeapMotion::RefusePauseResumePolicyOff ( )
virtual

◆ RefusePauseResumePolicyOn()

virtual void vtkPlusLeapMotion::RefusePauseResumePolicyOn ( )
virtual

◆ ResultToString()

std::string vtkPlusLeapMotion::ResultToString ( eLeapRS  r)
protected

Definition at line 787 of file vtkPlusLeapMotion.cxx.

◆ SafeDownCast()

static vtkPlusLeapMotion* vtkPlusLeapMotion::SafeDownCast ( vtkObject *  o)
static

◆ SetFrame()

void vtkPlusLeapMotion::SetFrame ( const LEAP_TRACKING_EVENT *  trackingEvent)
protected

Definition at line 475 of file vtkPlusLeapMotion.cxx.

◆ SetHeadPose()

void vtkPlusLeapMotion::SetHeadPose ( const LEAP_HEAD_POSE_EVENT *  headPose)
protected

Definition at line 489 of file vtkPlusLeapMotion.cxx.

◆ SetInvertImage()

virtual void vtkPlusLeapMotion::SetInvertImage ( bool  )
virtual

◆ SetLeapHMDPolicy()

virtual void vtkPlusLeapMotion::SetLeapHMDPolicy ( bool  )
virtual

◆ SetRefusePauseResumePolicy()

virtual void vtkPlusLeapMotion::SetRefusePauseResumePolicy ( bool  )
virtual

◆ ToolTimeStampedUpdateBone()

PlusStatus vtkPlusLeapMotion::ToolTimeStampedUpdateBone ( std::string  boneName,
eLeapHandType  handIndex,
Finger  fingerIndex,
Bone  boneIndex 
)
protected

Definition at line 370 of file vtkPlusLeapMotion.cxx.

◆ ToolTimeStampedUpdatePalm()

PlusStatus vtkPlusLeapMotion::ToolTimeStampedUpdatePalm ( const std::string &  name,
eLeapHandType  hand 
)
protected

Definition at line 433 of file vtkPlusLeapMotion.cxx.

◆ WriteConfiguration()

PlusStatus vtkPlusLeapMotion::WriteConfiguration ( vtkXMLDataElement *  config)
virtual

Write configuration to xml data

Reimplemented from vtkPlusDevice.

Definition at line 103 of file vtkPlusLeapMotion.cxx.

Member Data Documentation

◆ Connection

LEAP_CONNECTION vtkPlusLeapMotion::Connection
protected

Definition at line 118 of file vtkPlusLeapMotion.h.

◆ ImageInitialized

bool vtkPlusLeapMotion::ImageInitialized
protected

Definition at line 115 of file vtkPlusLeapMotion.h.

◆ Initialized

bool vtkPlusLeapMotion::Initialized
protected

Definition at line 114 of file vtkPlusLeapMotion.h.

◆ InvertImage

bool vtkPlusLeapMotion::InvertImage
protected

Definition at line 116 of file vtkPlusLeapMotion.h.

◆ LastHeadPoseEvent

LEAP_HEAD_POSE_EVENT vtkPlusLeapMotion::LastHeadPoseEvent
protected

Definition at line 122 of file vtkPlusLeapMotion.h.

◆ LastMessage

LEAP_CONNECTION_MESSAGE vtkPlusLeapMotion::LastMessage
protected

Definition at line 120 of file vtkPlusLeapMotion.h.

◆ LastTrackingEvent

LEAP_TRACKING_EVENT vtkPlusLeapMotion::LastTrackingEvent
protected

Definition at line 121 of file vtkPlusLeapMotion.h.

◆ LeapHMDPolicy

bool vtkPlusLeapMotion::LeapHMDPolicy
protected

Definition at line 112 of file vtkPlusLeapMotion.h.

◆ LeftCameraSource

vtkPlusDataSource* vtkPlusLeapMotion::LeftCameraSource
protected

Definition at line 124 of file vtkPlusLeapMotion.h.

◆ Mutex

vtkIGSIORecursiveCriticalSection* vtkPlusLeapMotion::Mutex
protected

Definition at line 127 of file vtkPlusLeapMotion.h.

◆ PollTimeoutMs

unsigned int vtkPlusLeapMotion::PollTimeoutMs
protected

Definition at line 119 of file vtkPlusLeapMotion.h.

◆ RefusePauseResumePolicy

bool vtkPlusLeapMotion::RefusePauseResumePolicy
protected

Definition at line 113 of file vtkPlusLeapMotion.h.

◆ RightCameraSource

vtkPlusDataSource* vtkPlusLeapMotion::RightCameraSource
protected

Definition at line 125 of file vtkPlusLeapMotion.h.


The documentation for this class was generated from the following files: