MeVisLab Toolbox Reference
|
An DPL::TagValueProvider class for the DirectDicomImport module. More...
#include <mlDirectDicomImportDPLTagValueProvider.h>
Classes | |
struct | HardOverwriteTag |
Simple structure of a tag id and a string which overwrites this tag value. More... | |
Public Member Functions | |
DirectDicomImportDPLTagValueProvider (DPL::Logger &logger, DirectDicomImportImporterBase &importer, const std::vector< HardOverwriteTag > &hardOverwriteTags) | |
Constructs a new TagValueProviderExample with the base directory. More... | |
void | setAllowSortingAccordingToDimensionIndexValues (const std::string &allowMode) |
Determines whether or how the DimensionIndexValue tag value can be used instead of a missing ImagePositionPatient tag. More... | |
const std::string & | setAllowSortingAccordingToDimensionIndexValues () const |
Returns the value set by setAllowSortingAccordingToDimensionIndexValues. More... | |
void | setWorkaroundImageOrientationPatientTag (const std::string &workaroundValue) |
The default ImageOrientationPatient tag to be used instead of a non existing one for the case that an ImagePositionPatient tag exists. More... | |
const std::string & | getWorkaroundImageOrientationPatientTag () const |
Returns the value set by setWorkaroundImageOrientationPatientTag. More... | |
const ConstantString & | getFrameName () const |
The frame name from which the recent tag was retrieved. More... | |
DPL::TagValue | getTagValue (const DPL::FrameId fullFilePath, const DPL::TagInfo &tagInfo, DPL::ErrorInfo *error=nullptr) const override |
Retrieves the value for the tag in the specified DICOM file. More... | |
An DPL::TagValueProvider class for the DirectDicomImport module.
It looks up DICOM information from files in the file system using the DCMTree library to perform the DICOM lookups. Also, any file with a valid DICOM tree is cached for faster lookups in later calls.
Definition at line 55 of file mlDirectDicomImportDPLTagValueProvider.h.
ml::DirectDicomImportDPLTagValueProvider::DirectDicomImportDPLTagValueProvider | ( | DPL::Logger & | logger, |
DirectDicomImportImporterBase & | importer, | ||
const std::vector< HardOverwriteTag > & | hardOverwriteTags | ||
) |
Constructs a new TagValueProviderExample with the base directory.
logger | Instance to which messages can be sent. |
importer | The importer for which the DICOM tags shall be provided (used for interruption checks). |
hardOverwriteTags | Pair list of tag ids and values to replace original tag values by other ones. |
const ConstantString& ml::DirectDicomImportDPLTagValueProvider::getFrameName | ( | ) | const |
The frame name from which the recent tag was retrieved.
|
override |
Retrieves the value for the tag in the specified DICOM file.
fullFilePath | The name of the file specified as a FrameId type. |
tagInfo | Tag information object, should be valid and contain the id of the tag to look up. |
error | The error information object which is set to information codes about the argument errors or about the find state of the requested tags. |
const std::string& ml::DirectDicomImportDPLTagValueProvider::getWorkaroundImageOrientationPatientTag | ( | ) | const |
Returns the value set by setWorkaroundImageOrientationPatientTag.
const std::string& ml::DirectDicomImportDPLTagValueProvider::setAllowSortingAccordingToDimensionIndexValues | ( | ) | const |
Returns the value set by setAllowSortingAccordingToDimensionIndexValues.
void ml::DirectDicomImportDPLTagValueProvider::setAllowSortingAccordingToDimensionIndexValues | ( | const std::string & | allowMode | ) |
Determines whether or how the DimensionIndexValue tag value can be used instead of a missing ImagePositionPatient tag.
Currently only "Auto" and "Off" are valid modes.
void ml::DirectDicomImportDPLTagValueProvider::setWorkaroundImageOrientationPatientTag | ( | const std::string & | workaroundValue | ) |
The default ImageOrientationPatient tag to be used instead of a non existing one for the case that an ImagePositionPatient tag exists.
This is a workaround for buggy data sets, because normally both should be available as pair. Default is "" which means that no replacement takes place.