MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSDevicePersistence.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef mitkUSDevicePersistence_h
14#define mitkUSDevicePersistence_h
15
16// MITK
17#include <mitkCommon.h>
18#include <mitkUSVideoDevice.h>
19#include <mitkUSProbe.h>
20
21// ITK
22#include <itkObjectFactory.h>
23
24// QT
25#include <QSettings>
26
27namespace mitk {
32 class USDevicePersistence : public itk::Object
33 {
34 public:
38
40
41 std::vector<mitk::USDevice::Pointer> RestoreLastDevices();
42
43 protected:
44
47
48 QString USVideoDeviceToString(mitk::USVideoDevice::Pointer d);
49 mitk::USVideoDevice::Pointer StringToUSVideoDevice(QString s);
50 QString USProbeToString(mitk::USProbe::Pointer p);
51 mitk::USProbe::Pointer StringToUSProbe(std::string s);
52
53 QSettings m_devices;
54
55 void split(std::string& text, std::string& separators, std::vector<std::string>& words);
56 double spacingToDouble(std::string s);
57 int depthToInt(std::string s);
58 };
59} // namespace mitk
60
61#endif
mitk::USProbe::Pointer StringToUSProbe(std::string s)
void split(std::string &text, std::string &separators, std::vector< std::string > &words)
std::vector< mitk::USDevice::Pointer > RestoreLastDevices()
QString USVideoDeviceToString(mitk::USVideoDevice::Pointer d)
mitkClassMacroItkParent(USDevicePersistence, itk::Object)
QString USProbeToString(mitk::USProbe::Pointer p)
mitk::USVideoDevice::Pointer StringToUSVideoDevice(QString s)
IGT Exceptions.