/usr/include/IGSTK/igstkAuroraTrackerTool.h is in libigstk4-dev 4.4.0-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | /*=========================================================================
Program: Image Guided Surgery Software Toolkit
Module: $RCSfile: igstkAuroraTrackerTool.h,v $
Language: C++
Date: $Date: 2008-11-05 19:37:29 $
Version: $Revision: 1.18 $
Copyright (c) ISC Insight Software Consortium. All rights reserved.
See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __igstkAuroraTrackerTool_h
#define __igstkAuroraTrackerTool_h
#include "igstkTrackerTool.h"
namespace igstk
{
igstkEventMacro( AuroraTrackerToolEvent,StringEvent);
igstkEventMacro( AuroraTrackerToolErrorEvent, TrackerToolErrorEvent);
igstkEventMacro( InvalidAuroraPortNumberErrorEvent,
AuroraTrackerToolErrorEvent);
igstkEventMacro( InvalidAuroraSROMFilenameErrorEvent,
AuroraTrackerToolErrorEvent);
igstkEventMacro( InvalidAuroraPartNumberErrorEvent,
AuroraTrackerToolErrorEvent);
igstkEventMacro( InvalidAuroraChannelNumberErrorEvent,
AuroraTrackerToolErrorEvent);
class AuroraTracker;
/** \class AuroraTrackerTool
* \brief An Aurora-specific TrackerTool class.
*
* This class provides Aurora-specific functionality for TrackerTools, and
* also allows compile-time type enforcement for other classes and functions
* that specifically require an Aurora tool.
*
* \ingroup Tracker
*
*/
class AuroraTrackerTool : public TrackerTool
{
public:
/** Macro with standard traits declarations. */
igstkStandardClassTraitsMacro( AuroraTrackerTool, TrackerTool )
/** Request setting the port number. The tool can only be attached to a
* tracker after its port number has been defined. Valid port numbers are
* in [0,3]. */
void RequestSetPortNumber( unsigned int portNumber );
/** Request set the channel number */
void RequestSetChannelNumber( unsigned int channelNumber );
/** Request set the SROM file name */
void RequestSetSROMFileName( const std::string & filename );
/** Request set the PartNumber */
void RequestSetPartNumber( const std::string & toolId );
/** Request select 5DOF (five degrees of freedom) tracker tool */
void RequestSelect5DOFTrackerTool( );
/** Request select 6DOF (six degrees of freedom) tracker tool */
void RequestSelect6DOFTrackerTool( );
/** Check if SROM file name specified. */
bool IsSROMFileNameSpecified() const;
/** Check if Part number is specified. */
bool IsPartNumberSpecified() const;
/** Get SROM file name */
igstkGetStringMacro( SROMFileName );
/** Get tracker tool port number */
igstkGetMacro( PortNumber, unsigned int );
/** Get tracker tool channel number */
igstkGetMacro( ChannelNumber, unsigned int );
/** Get tracker tool part number */
igstkGetStringMacro( PartNumber );
/** Check if the tracker tool selected is 5DOF or 6DOF
* (five or six degrees of freedom) */
bool IsTrackerTool5DOF() const;
protected:
AuroraTrackerTool();
virtual ~AuroraTrackerTool();
/** Print object information */
virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const;
private:
/** Set port number */
void SetPortNumberProcessing( );
/** Report Invalid port number specified */
void ReportInValidPortNumberSpecifiedProcessing( );
/** Set channel number */
void SetChannelNumberProcessing( );
/** Report Invalid channel number specified */
void ReportInValidChannelNumberSpecifiedProcessing( );
/** Set SROM filename */
void SetSROMFileNameProcessing( );
/** Report Invalid SROM filename specified */
void ReportInValidSROMFileSpecifiedProcessing( );
/** Set Tool Id. */
void SetPartNumberProcessing( );
/** Report Invalid Tool Id filename specified */
void ReportInValidPartNumberSpecifiedProcessing( );
/** Report 5DOF tracker tool selected */
void Report5DOFTrackerToolSelectedProcessing();
/** Report 6DOF tracker tool selected */
void Report6DOFTrackerToolSelectedProcessing();
AuroraTrackerTool(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
/** Get boolean variable to check if the tracker tool is
* configured or not */
virtual bool CheckIfTrackerToolIsConfigured() const;
/** States for the State Machine */
igstkDeclareStateMacro( Idle );
igstkDeclareStateMacro( 5DOFTrackerToolSelected );
igstkDeclareStateMacro( 6DOFTrackerToolSelected );
igstkDeclareStateMacro( 5DOFTrackerToolPortNumberSpecified );
igstkDeclareStateMacro( 6DOFTrackerToolPortNumberSpecified );
igstkDeclareStateMacro( 5DOFTrackerToolChannelNumberSpecified );
igstkDeclareStateMacro( 5DOFTrackerToolSROMFileNameSpecified );
igstkDeclareStateMacro( 6DOFTrackerToolSROMFileNameSpecified );
igstkDeclareStateMacro( 5DOFTrackerToolPartNumberSpecified );
igstkDeclareStateMacro( 6DOFTrackerToolPartNumberSpecified );
/** Inputs to the State Machine */
igstkDeclareInputMacro( Select5DOFTrackerTool );
igstkDeclareInputMacro( Select6DOFTrackerTool );
igstkDeclareInputMacro( ValidPortNumber );
igstkDeclareInputMacro( InValidPortNumber );
igstkDeclareInputMacro( ValidChannelNumber );
igstkDeclareInputMacro( InValidChannelNumber );
igstkDeclareInputMacro( ValidSROMFileName );
igstkDeclareInputMacro( InValidSROMFileName );
igstkDeclareInputMacro( ValidPartNumber);
igstkDeclareInputMacro( InValidPartNumber);
/** Port number that identifies this tool in the Tracker. */
unsigned int m_PortNumberToBeSet;
unsigned int m_PortNumber;
/** Channel number that identifies this tool in the Tracker. */
unsigned int m_ChannelNumberToBeSet;
unsigned int m_ChannelNumber;
/** SROM file */
std::string m_SROMFileNameToBeSet;
std::string m_SROMFileName;
/** PartNumber */
std::string m_PartNumberToBeSet;
std::string m_PartNumber;
bool m_TrackerToolConfigured;
bool m_PartNumberSpecified;
bool m_SROMFileNameSpecified;
bool m_ChannelNumberSpecified;
bool m_FiveDOFTrackerToolSelected;
};
} // namespace igstk
#endif // __igstk_AuroraTrackerTool_h_
|