MeVisLab Toolbox Reference
|
The DICOMCachedIOFileHandlePythonPlugin class can be used to resolve DICOMCachedIOFileHandle from python. More...
#include <DICOMCachedIOFileHandlePythonPlugin.h>
Public Slots | |
virtual void | setResolvedFilename (QString filename) |
Function to set the resolved filename. | |
Signals | |
void | updateFilename (QString *oldFilename) |
Qt or python objects can connect to this signal. | |
Public Member Functions | |
DICOMCachedIOFileHandlePythonPlugin () | |
Default constructor. | |
virtual | ~DICOMCachedIOFileHandlePythonPlugin () |
Denstructor. | |
virtual std::string | resolveFilename (const ml::DICOMCachedIOFileHandle &fileHandle) override |
Resolves a filename for a given DICOMCachedIOFileHandle. | |
Public Member Functions inherited from ml::DICOMCachedIOFileHandlePlugin | |
DICOMCachedIOFileHandlePlugin () | |
Constructor. | |
virtual | ~DICOMCachedIOFileHandlePlugin () |
Destructor. | |
Protected Attributes | |
std::string | _filename |
Resolved filename. | |
The DICOMCachedIOFileHandlePythonPlugin class can be used to resolve DICOMCachedIOFileHandle from python.
Therefore the QT signal updateFilename is emitted. The resolved filename has to be stored in _filename by the setResolvedFilename slot. If object that connects to the signal cannot resolve the given DICOMCachedIOFileHandle setResolvedFilename should not be called. This plugin can be used from within python by: wrapper = ctx.module("AccessDIrectDicomImportCache").object() plugin = wrapper.addPythonFileHandlePlugin()
plugin.connect("updateFilename(QString*)",methodToResolveFilename)
def methodToResolveFilename(filename): filename = ''
plugin.setResolvedFilename(filename)
Definition at line 52 of file DICOMCachedIOFileHandlePythonPlugin.h.
|
inline |
Default constructor.
Definition at line 58 of file DICOMCachedIOFileHandlePythonPlugin.h.
|
inlinevirtual |
Denstructor.
Definition at line 60 of file DICOMCachedIOFileHandlePythonPlugin.h.
|
overridevirtual |
Resolves a filename for a given DICOMCachedIOFileHandle.
Therefore the QT signal updateFilename is emitted. The resolved filename has to be stored in _filename by the setResolvedFilename slot. If object that connects to the signal cannot resolve the given DICOMCachedIOFileHandle setResolvedFilename should not be called.
fileHandle | DICOMCachedIOFileHandle to be resolved. |
Reimplemented from ml::DICOMCachedIOFileHandlePlugin.
|
virtualslot |
Function to set the resolved filename.
This slot is necessary as signals have no return value.
filename | Filename to which the DICOMCachedIOFileHandle is resolved. |
Qt or python objects can connect to this signal.
This signal is called from within resolveFilename. It is assumed that the setResolvedFilename with the resolved filename.
|
protected |
Resolved filename.
Definition at line 74 of file DICOMCachedIOFileHandlePythonPlugin.h.