NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cx::IgstkTracker Class Reference

Class representing the navigation system. More...

#include <cxIgstkTracker.h>

Inheritance diagram for cx::IgstkTracker:
cx::Tracker

Public Types

typedef igstk::SerialCommunicationForPosix CommunicationType
 
typedef igstk::Tracker TrackerType
 
typedef igstk::PolarisTracker PolarisTrackerType
 
typedef igstk::AuroraTracker AuroraTrackerType
 

Signals

void initialized (bool)
 
void open (bool)
 
void tracking (bool)
 
void error ()
 

Public Member Functions

 IgstkTracker (ToolFileParser::TrackerInternalStructure internalStructure)
 
 ~IgstkTracker ()
 
TRACKING_SYSTEM getType () const
 returns the trackers type More...
 
QString getName () const
 get the trackers name More...
 
QString getUid () const
 get the tracker unique id More...
 
TrackerTypegetPointer () const
 return a pointer to the internal tracker base More...
 
void open ()
 open the tracker for communication More...
 
void close ()
 close the More...
 
void attachTools (std::map< QString, IgstkToolPtr > tools)
 attach a list of tools to the tracker hw More...
 
void detachTools (std::map< QString, IgstkToolPtr > tools)
 detach the list of tools from the tracker hw More...
 
void startTracking ()
 start tracking More...
 
void stopTracking ()
 stop tracking More...
 
bool isValid () const
 whether this tracker is constructed correctly or not More...
 
bool isOpen () const
 
bool isInitialized () const
 
bool isTracking () const
 
- Public Member Functions inherited from cx::Tracker
 Tracker (QObject *parent=0)
 

Protected Types

typedef itk::ReceptorMemberCommand< IgstkTrackerObserverType
 

Protected Member Functions

void trackerTransformCallback (const itk::EventObject &eventVar)
 callback receiving events from the observer More...
 
void addLogging ()
 adds logging to the internal igstk components More...
 
void internalOpen (bool value)
 
void internalInitialized (bool value)
 
void internalTracking (bool value)
 
void internalError (bool value)
 
void shutdown ()
 shuts down the tracker, made to be used when an unrecoverable error occures More...
 

Protected Attributes

ToolFileParser::TrackerInternalStructure mInternalStructure
 the trackers type More...
 
bool mValid
 whether this tracker is constructed correctly or not More...
 
QString mUid
 the trackers unique id More...
 
QString mName
 the trackers name More...
 
TrackerTypemTracker
 pointer to the base class of the internal igstk tracker More...
 
PolarisTrackerType::Pointer mTempPolarisTracker
 pointer to a temp polaris tracker More...
 
AuroraTrackerType::Pointer mTempAuroraTracker
 pointer to a temp aurora tracker More...
 
CommunicationType::Pointer mCommunication
 pointer to the serial communication used to communicate with the NDI trackers More...
 
ObserverType::Pointer mTrackerObserver
 observer listening for igstk events More...
 
igstk::Logger::Pointer mTrackerLogger
 logging the internal igstk behavior More...
 
itk::StdStreamLogOutput::Pointer mTrackerLogOutput
 output to write the log to More...
 
bool mOpen
 whether or not the tracker is open More...
 
bool mInitialized
 whether or not the tracker is initialized More...
 
bool mTracking
 whether or not the tracker is tracking More...
 

Additional Inherited Members

- Static Public Member Functions inherited from cx::Tracker
static QStringList getSupportedTrackingSystems ()
 

Detailed Description

Class representing the navigation system.

Date
Nov 7, 2008
Author
Janne Beate Bakeng, SINTEF

Definition at line 56 of file cxIgstkTracker.h.

Member Typedef Documentation

◆ AuroraTrackerType

typedef igstk::AuroraTracker cx::IgstkTracker::AuroraTrackerType

Definition at line 70 of file cxIgstkTracker.h.

◆ CommunicationType

typedef igstk::SerialCommunicationForPosix cx::IgstkTracker::CommunicationType

The type of serial communication used on Mac and Linux.

Definition at line 66 of file cxIgstkTracker.h.

◆ ObserverType

typedef itk::ReceptorMemberCommand<IgstkTracker> cx::IgstkTracker::ObserverType
protected

Definition at line 124 of file cxIgstkTracker.h.

◆ PolarisTrackerType

typedef igstk::PolarisTracker cx::IgstkTracker::PolarisTrackerType

Definition at line 69 of file cxIgstkTracker.h.

◆ TrackerType

typedef igstk::Tracker cx::IgstkTracker::TrackerType

Definition at line 68 of file cxIgstkTracker.h.

Constructor & Destructor Documentation

◆ IgstkTracker()

cx::IgstkTracker::IgstkTracker ( ToolFileParser::TrackerInternalStructure  internalStructure)

Definition at line 25 of file cxIgstkTracker.cpp.

◆ ~IgstkTracker()

cx::IgstkTracker::~IgstkTracker ( )

Definition at line 97 of file cxIgstkTracker.cpp.

Member Function Documentation

◆ addLogging()

void cx::IgstkTracker::addLogging ( )
protected

adds logging to the internal igstk components

Definition at line 328 of file cxIgstkTracker.cpp.

◆ attachTools()

void cx::IgstkTracker::attachTools ( std::map< QString, IgstkToolPtr tools)

attach a list of tools to the tracker hw

Definition at line 144 of file cxIgstkTracker.cpp.

◆ close()

void cx::IgstkTracker::close ( )

close the

Definition at line 137 of file cxIgstkTracker.cpp.

◆ detachTools()

void cx::IgstkTracker::detachTools ( std::map< QString, IgstkToolPtr tools)

detach the list of tools from the tracker hw

Definition at line 171 of file cxIgstkTracker.cpp.

◆ error

void cx::IgstkTracker::error ( )
signal

◆ getName()

QString cx::IgstkTracker::getName ( ) const

get the trackers name

Definition at line 106 of file cxIgstkTracker.cpp.

◆ getPointer()

IgstkTracker::TrackerType * cx::IgstkTracker::getPointer ( ) const

return a pointer to the internal tracker base

Definition at line 116 of file cxIgstkTracker.cpp.

◆ getType()

TRACKING_SYSTEM cx::IgstkTracker::getType ( ) const

returns the trackers type

Definition at line 101 of file cxIgstkTracker.cpp.

◆ getUid()

QString cx::IgstkTracker::getUid ( ) const

get the tracker unique id

Definition at line 111 of file cxIgstkTracker.cpp.

◆ initialized

void cx::IgstkTracker::initialized ( bool  )
signal

◆ internalError()

void cx::IgstkTracker::internalError ( bool  value)
protected

Definition at line 377 of file cxIgstkTracker.cpp.

◆ internalInitialized()

void cx::IgstkTracker::internalInitialized ( bool  value)
protected

Definition at line 357 of file cxIgstkTracker.cpp.

◆ internalOpen()

void cx::IgstkTracker::internalOpen ( bool  value)
protected

Definition at line 347 of file cxIgstkTracker.cpp.

◆ internalTracking()

void cx::IgstkTracker::internalTracking ( bool  value)
protected

Definition at line 367 of file cxIgstkTracker.cpp.

◆ isInitialized()

bool cx::IgstkTracker::isInitialized ( ) const

Definition at line 207 of file cxIgstkTracker.cpp.

◆ isOpen()

bool cx::IgstkTracker::isOpen ( ) const

Definition at line 202 of file cxIgstkTracker.cpp.

◆ isTracking()

bool cx::IgstkTracker::isTracking ( ) const

Definition at line 212 of file cxIgstkTracker.cpp.

◆ isValid()

bool cx::IgstkTracker::isValid ( ) const

whether this tracker is constructed correctly or not

Definition at line 197 of file cxIgstkTracker.cpp.

◆ open() [1/2]

void cx::IgstkTracker::open ( )

open the tracker for communication

Definition at line 121 of file cxIgstkTracker.cpp.

◆ open [2/2]

void cx::IgstkTracker::open ( bool  )
signal

◆ shutdown()

void cx::IgstkTracker::shutdown ( )
protected

shuts down the tracker, made to be used when an unrecoverable error occures

Definition at line 383 of file cxIgstkTracker.cpp.

◆ startTracking()

void cx::IgstkTracker::startTracking ( )

start tracking

Definition at line 187 of file cxIgstkTracker.cpp.

◆ stopTracking()

void cx::IgstkTracker::stopTracking ( )

stop tracking

Definition at line 192 of file cxIgstkTracker.cpp.

◆ trackerTransformCallback()

void cx::IgstkTracker::trackerTransformCallback ( const itk::EventObject &  eventVar)
protected

callback receiving events from the observer

Definition at line 217 of file cxIgstkTracker.cpp.

◆ tracking

void cx::IgstkTracker::tracking ( bool  )
signal

Member Data Documentation

◆ mCommunication

CommunicationType::Pointer cx::IgstkTracker::mCommunication
protected

pointer to the serial communication used to communicate with the NDI trackers

Definition at line 145 of file cxIgstkTracker.h.

◆ mInitialized

bool cx::IgstkTracker::mInitialized
protected

whether or not the tracker is initialized

Definition at line 151 of file cxIgstkTracker.h.

◆ mInternalStructure

ToolFileParser::TrackerInternalStructure cx::IgstkTracker::mInternalStructure
protected

the trackers type

Definition at line 136 of file cxIgstkTracker.h.

◆ mName

QString cx::IgstkTracker::mName
protected

the trackers name

Definition at line 139 of file cxIgstkTracker.h.

◆ mOpen

bool cx::IgstkTracker::mOpen
protected

whether or not the tracker is open

Definition at line 150 of file cxIgstkTracker.h.

◆ mTempAuroraTracker

AuroraTrackerType::Pointer cx::IgstkTracker::mTempAuroraTracker
protected

pointer to a temp aurora tracker

Definition at line 143 of file cxIgstkTracker.h.

◆ mTempPolarisTracker

PolarisTrackerType::Pointer cx::IgstkTracker::mTempPolarisTracker
protected

pointer to a temp polaris tracker

Definition at line 142 of file cxIgstkTracker.h.

◆ mTracker

TrackerType* cx::IgstkTracker::mTracker
protected

pointer to the base class of the internal igstk tracker

Definition at line 140 of file cxIgstkTracker.h.

◆ mTrackerLogger

igstk::Logger::Pointer cx::IgstkTracker::mTrackerLogger
protected

logging the internal igstk behavior

Definition at line 147 of file cxIgstkTracker.h.

◆ mTrackerLogOutput

itk::StdStreamLogOutput::Pointer cx::IgstkTracker::mTrackerLogOutput
protected

output to write the log to

Definition at line 148 of file cxIgstkTracker.h.

◆ mTrackerObserver

ObserverType::Pointer cx::IgstkTracker::mTrackerObserver
protected

observer listening for igstk events

Definition at line 146 of file cxIgstkTracker.h.

◆ mTracking

bool cx::IgstkTracker::mTracking
protected

whether or not the tracker is tracking

Definition at line 152 of file cxIgstkTracker.h.

◆ mUid

QString cx::IgstkTracker::mUid
protected

the trackers unique id

Definition at line 138 of file cxIgstkTracker.h.

◆ mValid

bool cx::IgstkTracker::mValid
protected

whether this tracker is constructed correctly or not

Definition at line 137 of file cxIgstkTracker.h.


The documentation for this class was generated from the following files: