Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkGalilMotor.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 
14 #ifndef MITKGalilAPI_H_HEADER_INCLUDED
15 #define MITKGalilAPI_H_HEADER_INCLUDED
16 
17 #include "itkObject.h"
18 #include "mitkCommon.h"
19 
20 #include "vector"
21 #include "MitkPhotoacousticsHardwareExports.h"
22 
23 #include "gclib.h"
24 #include "gclibo.h"
25 
26 #include <usModule.h>
27 #include <usModuleResource.h>
28 #include <usGetModuleContext.h>
29 #include <usModuleContext.h>
30 #include <usModuleResourceStream.h>
31 
32 #include <tinyxml.h>
33 
34 namespace mitk {
35 
36  class MITKPHOTOACOUSTICSHARDWARE_EXPORT GalilMotor : public itk::Object
37  {
38  public:
40  itkFactorylessNewMacro(Self);
41 
42  virtual bool OpenConnection(std::string configuration);
43  virtual bool CloseConnection();
44 
45  double GetMinWavelength();
46  double GetMaxWavelength();
47  double GetCurrentWavelength();
48 
49  bool TuneToWavelength(double wavelength, bool isRecalibrating);
50 
51  bool FastTuneWavelengths(std::vector<double> wavelengthList);
52 
53  protected:
54  virtual bool Home();
55  void LoadResorceFile(std::string filename, std::string* lines);
56  int GetPositionFromWavelength(double wavelength);
57  GalilMotor();
58  virtual ~GalilMotor();
59 
60  int m_ComPort;
62  std::string m_ErrorMessage;
64  GReturn m_ReturnCode;
65 
66  std::string m_XmlOpoConfiguration;
70  double m_WavelengthToStepCalibration[7];
72 
73  };
74 } // namespace mitk
75 
76 #endif /* MITKGalilAPI_H_HEADER_INCLUDED */
double m_CurrentWavelength
DataCollection - Class to facilitate loading/accessing structured data.
std::string m_XmlOpoConfiguration
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
std::string m_ErrorMessage