IGSTK
|
00001 /*========================================================================= 00002 00003 Program: Image Guided Surgery Software Toolkit 00004 Module: $RCSfile: igstkMouseTracker.h,v $ 00005 Language: C++ 00006 Date: $Date: 2008-02-13 22:26:12 $ 00007 Version: $Revision: 1.9 $ 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 __igstkMouseTracker_h 00019 #define __igstkMouseTracker_h 00020 00021 #include "igstkTracker.h" 00022 00023 namespace igstk 00024 { 00025 00037 class MouseTracker : public Tracker 00038 { 00039 public: 00040 00042 igstkStandardClassTraitsMacro( MouseTracker, Tracker ) 00043 00044 typedef Superclass::TransformType TransformType; 00045 00047 igstkSetMacro( ScaleFactor, double ); 00048 igstkGetMacro( ScaleFactor, double ); 00049 00050 protected: 00051 00052 MouseTracker(); 00053 00054 virtual ~MouseTracker(); 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 00075 virtual ResultType RemoveTrackerToolFromInternalDataContainers( 00076 const TrackerToolType * ); 00077 00078 virtual ResultType AddTrackerToolToInternalDataContainers( 00079 const TrackerToolType * ); 00080 00082 virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const; 00083 00084 private: 00085 00086 MouseTracker(const Self&); //purposely not implemented 00087 void operator=(const Self&); //purposely not implemented 00088 00089 double m_ScaleFactor; 00090 }; 00091 00092 } 00093 00094 #endif //__igstk_MouseTracker_h_