MeVisLab Toolbox Reference
DICOMCachedIOFileHandlePythonPlugin.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
6 
12 //----------------------------------------------------------------------------------
13 #pragma once
14 
15 // Local includes.
17 
18 // DICOMCachedIO includes.
20 
21 ML_START_NAMESPACE
23 
24 template<typename CT>
25 class DICOMCachedIOFileHandleBase;
26 typedef DICOMCachedIOFileHandleBase<char> DICOMCachedIOFileHandle;
28 ML_END_NAMESPACE
29 
30 // QT includes.
31 #include <ThirdPartyWarningsDisable.h>
32 #include <QObject>
33 #include <ThirdPartyWarningsRestore.h>
34 
52 class DICOMCachedIOFileHandlePythonPlugin: public QObject, public ML_NAMESPACE::DICOMCachedIOFileHandlePlugin
53 {
54  Q_OBJECT;
55 
56 public:
67  virtual std::string resolveFilename(const ML_NAMESPACE::DICOMCachedIOFileHandle &fileHandle) override;
68 public slots:
71  virtual void setResolvedFilename(QString filename);
72 protected:
74  std::string _filename;
75 
76  signals:
80  void updateFilename(QString* oldFilename);
81 };
Project global and OS specific declarations.
The DICOMCachedIOFileHandlePythonPlugin class can be used to resolve DICOMCachedIOFileHandle from pyt...
virtual void setResolvedFilename(QString filename)
Function to set the resolved filename.
virtual std::string resolveFilename(const ml::DICOMCachedIOFileHandle &fileHandle) override
Resolves a filename for a given DICOMCachedIOFileHandle.
void updateFilename(QString *oldFilename)
Qt or python objects can connect to this signal.
Header file for class resolving filenames from a given identifier (url,etc...) for DICOM importing mo...
DICOMCachedIOFileHandleBase< char > DICOMCachedIOFileHandle
"Forward" to DICOMCachedIOFileHandle.