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
|
#ifndef __igstkMedSafeTrackerConfiguration_h
#define __igstkMedSafeTrackerConfiguration_h
#include "igstkTrackerConfiguration.h"
namespace igstk
{
/**
* A 3D Guidance MedSafe tool.
*/
class MedSafeToolConfiguration : public TrackerToolConfiguration
{
public:
MedSafeToolConfiguration();
MedSafeToolConfiguration(const MedSafeToolConfiguration &other);
virtual ~MedSafeToolConfiguration();
/**
* Set the tool's physical port number.
*/
igstkSetMacro( PortNumber, unsigned );
igstkGetMacro( PortNumber, unsigned );
virtual std::string GetToolTypeAsString();
protected:
unsigned m_PortNumber;
};
/**
* Configuration for the Ascension tracker.
*/
class MedSafeTrackerConfiguration :
public SerialCommunicatingTrackerConfiguration
{
public:
MedSafeTrackerConfiguration();
virtual ~MedSafeTrackerConfiguration();
/**
* Get the manufacturer specified maximal refresh rate.
*/
virtual double GetMaximalRefreshRate();
protected:
virtual void InternalAddTool( const TrackerToolConfiguration *tool,
bool isReference );
private:
//manufacturer specified maximal refresh rate [Hz]
static const double MAXIMAL_REFERESH_RATE;
//maximal number of physical ports
static const unsigned MAXIMAL_PORT_NUMBER;
};
} // end of name space
#endif
|