IGSTK
|
00001 /*========================================================================= 00002 00003 Program: Image Guided Surgery Software Toolkit 00004 Module: $RCSfile: igstkQMouseTracker.h,v $ 00005 Language: C++ 00006 Date: $Date: 2008-02-13 22:26:12 $ 00007 Version: $Revision: 1.2 $ 00008 00009 Copyright (c) ISC Insight Software Consortium. All rights reserved. 00010 See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef __igstkQMouseTracker_h 00019 #define __igstkQMouseTracker_h 00020 00021 #include "igstkTracker.h" 00022 00023 namespace igstk 00024 { 00025 00037 class QMouseTracker : public Tracker 00038 { 00039 public: 00040 00042 igstkStandardClassTraitsMacro( QMouseTracker, Tracker ) 00043 00044 typedef Superclass::TransformType TransformType; 00045 00047 igstkSetMacro( ScaleFactor, double ); 00048 igstkGetMacro( ScaleFactor, double ); 00049 00050 protected: 00051 00052 QMouseTracker(); 00053 00054 virtual ~QMouseTracker(); 00055 00056 typedef Tracker::ResultType ResultType; 00057 00058 virtual ResultType InternalOpen( void ); 00059 00060 virtual ResultType InternalStartTracking( void ); 00061 00062 virtual ResultType InternalUpdateStatus( void ); 00063 00064 virtual ResultType InternalThreadedUpdateStatus( void ); 00065 00066 virtual ResultType InternalReset( void ); 00067 00068 virtual ResultType InternalStopTracking( void ); 00069 00070 virtual ResultType InternalClose( void ); 00071 00073 virtual ResultType VerifyTrackerToolInformation( const TrackerToolType * ); 00074 00076 virtual ResultType RemoveTrackerToolFromInternalDataContainers( 00077 const TrackerToolType * ); 00078 00080 virtual ResultType AddTrackerToolToInternalDataContainers( 00081 const TrackerToolType * ); 00082 00084 virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const; 00085 00086 private: 00087 00088 QMouseTracker(const Self&); //purposely not implemented 00089 void operator=(const Self&); //purposely not implemented 00090 00091 double m_ScaleFactor; 00092 }; 00093 00094 } 00095 00096 #endif //__igstk_QMouseTracker_h_