Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitk::GalilMotor Class Reference

#include <mitkGalilMotor.h>

Inheritance diagram for mitk::GalilMotor:
Collaboration diagram for mitk::GalilMotor:

Public Member Functions

 mitkClassMacroItkParent (mitk::GalilMotor, itk::Object)
 
virtual bool OpenConnection (std::string configuration)
 
virtual bool CloseConnection ()
 
double GetMinWavelength ()
 
double GetMaxWavelength ()
 
double GetCurrentWavelength ()
 
bool TuneToWavelength (double wavelength, bool isRecalibrating)
 
bool FastTuneWavelengths (std::vector< double > wavelengthList)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

virtual bool Home ()
 
void LoadResorceFile (std::string filename, std::string *lines)
 
int GetPositionFromWavelength (double wavelength)
 
 GalilMotor ()
 
virtual ~GalilMotor ()
 

Protected Attributes

int m_ComPort
 
int m_BaudRate
 
std::string m_ErrorMessage
 
GCon m_GalilSystem
 
GReturn m_ReturnCode
 
std::string m_XmlOpoConfiguration
 
double m_MinWavelength
 
double m_MaxWavelength
 
double m_CurrentWavelength
 
double m_WavelengthToStepCalibration [7]
 
double m_HomePosition
 

Detailed Description

Definition at line 36 of file mitkGalilMotor.h.

Constructor & Destructor Documentation

◆ GalilMotor()

mitk::GalilMotor::GalilMotor ( )
protected

Definition at line 25 of file mitkGalilMotor.cpp.

◆ ~GalilMotor()

mitk::GalilMotor::~GalilMotor ( )
protectedvirtual

Definition at line 34 of file mitkGalilMotor.cpp.

References CloseConnection(), and MITK_INFO.

Member Function Documentation

◆ CloseConnection()

bool mitk::GalilMotor::CloseConnection ( )
virtual

Definition at line 113 of file mitkGalilMotor.cpp.

References Home(), m_GalilSystem, and m_ReturnCode.

Referenced by ~GalilMotor().

◆ FastTuneWavelengths()

bool mitk::GalilMotor::FastTuneWavelengths ( std::vector< double >  wavelengthList)

◆ GetCurrentWavelength()

double mitk::GalilMotor::GetCurrentWavelength ( )

Definition at line 274 of file mitkGalilMotor.cpp.

References m_CurrentWavelength.

◆ GetMaxWavelength()

double mitk::GalilMotor::GetMaxWavelength ( )

Definition at line 269 of file mitkGalilMotor.cpp.

References m_MaxWavelength.

◆ GetMinWavelength()

double mitk::GalilMotor::GetMinWavelength ( )

Definition at line 264 of file mitkGalilMotor.cpp.

References m_MinWavelength.

◆ GetPositionFromWavelength()

int mitk::GalilMotor::GetPositionFromWavelength ( double  wavelength)
protected

Definition at line 126 of file mitkGalilMotor.cpp.

References m_HomePosition, and m_WavelengthToStepCalibration.

Referenced by FastTuneWavelengths(), and TuneToWavelength().

◆ Home()

bool mitk::GalilMotor::Home ( )
protectedvirtual

Definition at line 237 of file mitkGalilMotor.cpp.

References LoadResorceFile(), m_GalilSystem, m_ReturnCode, and MITK_INFO.

Referenced by CloseConnection(), and OpenConnection().

◆ LoadResorceFile()

void mitk::GalilMotor::LoadResorceFile ( std::string  filename,
std::string *  lines 
)
protected

◆ mitkClassMacroItkParent()

mitk::GalilMotor::mitkClassMacroItkParent ( mitk::GalilMotor  ,
itk::Object   
)

◆ New()

static Pointer mitk::GalilMotor::New ( )
static

◆ OpenConnection()

bool mitk::GalilMotor::OpenConnection ( std::string  configuration)
virtual

◆ TuneToWavelength()

bool mitk::GalilMotor::TuneToWavelength ( double  wavelength,
bool  isRecalibrating 
)

Member Data Documentation

◆ m_BaudRate

int mitk::GalilMotor::m_BaudRate
protected

Definition at line 61 of file mitkGalilMotor.h.

Referenced by OpenConnection().

◆ m_ComPort

int mitk::GalilMotor::m_ComPort
protected

Definition at line 60 of file mitkGalilMotor.h.

Referenced by OpenConnection().

◆ m_CurrentWavelength

double mitk::GalilMotor::m_CurrentWavelength
protected

Definition at line 69 of file mitkGalilMotor.h.

Referenced by GetCurrentWavelength(), OpenConnection(), and TuneToWavelength().

◆ m_ErrorMessage

std::string mitk::GalilMotor::m_ErrorMessage
protected

Definition at line 62 of file mitkGalilMotor.h.

◆ m_GalilSystem

GCon mitk::GalilMotor::m_GalilSystem
protected

◆ m_HomePosition

double mitk::GalilMotor::m_HomePosition
protected

Definition at line 71 of file mitkGalilMotor.h.

Referenced by GetPositionFromWavelength(), OpenConnection(), and TuneToWavelength().

◆ m_MaxWavelength

double mitk::GalilMotor::m_MaxWavelength
protected

Definition at line 68 of file mitkGalilMotor.h.

Referenced by GetMaxWavelength(), and OpenConnection().

◆ m_MinWavelength

double mitk::GalilMotor::m_MinWavelength
protected

Definition at line 67 of file mitkGalilMotor.h.

Referenced by GetMinWavelength(), and OpenConnection().

◆ m_ReturnCode

GReturn mitk::GalilMotor::m_ReturnCode
protected

◆ m_WavelengthToStepCalibration

double mitk::GalilMotor::m_WavelengthToStepCalibration[7]
protected

Definition at line 70 of file mitkGalilMotor.h.

Referenced by GetPositionFromWavelength(), and OpenConnection().

◆ m_XmlOpoConfiguration

std::string mitk::GalilMotor::m_XmlOpoConfiguration
protected

Definition at line 66 of file mitkGalilMotor.h.

Referenced by OpenConnection().


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