IGSTK
igstkQMouseTracker.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Image Guided Surgery Software Toolkit
4 Module: $RCSfile: igstkQMouseTracker.h,v $
5 Language: C++
6 Date: $Date: 2008-02-13 22:26:12 $
7 Version: $Revision: 1.2 $
8 
9 Copyright (c) ISC Insight Software Consortium. All rights reserved.
10 See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
11 
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 
18 #ifndef __igstkQMouseTracker_h
19 #define __igstkQMouseTracker_h
20 
21 #include "igstkTracker.h"
22 
23 namespace igstk
24 {
25 
37 class QMouseTracker : public Tracker
38 {
39 public:
40 
43 
44  typedef Superclass::TransformType TransformType;
45 
47  igstkSetMacro( ScaleFactor, double );
48  igstkGetMacro( ScaleFactor, double );
49 
50 protected:
51 
52  QMouseTracker();
53 
54  virtual ~QMouseTracker();
55 
57 
58  virtual ResultType InternalOpen( void );
59 
60  virtual ResultType InternalStartTracking( void );
61 
62  virtual ResultType InternalUpdateStatus( void );
63 
65 
66  virtual ResultType InternalReset( void );
67 
68  virtual ResultType InternalStopTracking( void );
69 
70  virtual ResultType InternalClose( void );
71 
74 
77  const TrackerToolType * );
78 
81  const TrackerToolType * );
82 
84  virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const;
85 
86 private:
87 
88  QMouseTracker(const Self&); //purposely not implemented
89  void operator=(const Self&); //purposely not implemented
90 
91  double m_ScaleFactor;
92 };
93 
94 }
95 
96 #endif //__igstk_QMouseTracker_h_
#define igstkGetMacro(name, type)
Get built-in type.
Definition: igstkMacros.h:105
virtual ResultType InternalUpdateStatus(void)
The "InternalUpdateStatus" method updates tracker status.
Transform TransformType
typedefs from Transform class
Definition: igstkTracker.h:166
Implementation of the Mouse TrackerTool class.
virtual ~QMouseTracker()
Base class for all the IGSTK classes.
Definition: igstkObject.h:40
virtual ResultType InternalOpen(void)
The "InternalOpen" method opens communication with a tracking device.
virtual ResultType VerifyTrackerToolInformation(const TrackerToolType *)
Verify tracker tool information.
virtual ResultType InternalStopTracking(void)
The "InternalStopTracking" method stops tracking.
#define igstkStandardClassTraitsMacro(classname, superclassname)
Convenience macro for traits of a non-templated class.
Definition: igstkMacros.h:275
virtual ResultType InternalThreadedUpdateStatus(void)
The "InternalThreadedUpdateStatus" method updates tracker status.
virtual ResultType AddTrackerToolToInternalDataContainers(const TrackerToolType *)
Add tracker tool to internal data containers.
virtual ResultType InternalStartTracking(void)
The "InternalStartTracking" method starts tracking.
virtual ResultType InternalClose(void)
The "InternalClose" method closes communication with a tracking device.
virtual ResultType RemoveTrackerToolFromInternalDataContainers(const TrackerToolType *)
Remove tracker tool from the data container.
Abstract superclass for concrete IGSTK Tracker classes.
Definition: igstkTracker.h:96
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const
Print object information.
igstkStandardAbstractClassTraitsMacro(Tracker, Object) public typedef TrackerTool TrackerToolType
Macro with standard traits declarations.
Definition: igstkTracker.h:101
#define igstkSetMacro(name, type)
Set built-in type.
Definition: igstkMacros.h:93
Tracker::ResultType ResultType
virtual ResultType InternalReset(void)
The "InternalReset" method resets tracker to a known configuration.