|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkCESTIOMimeTypes.h>


Public Member Functions | |
| MitkCESTDicomMimeType () | |
| bool | AppliesTo (const std::string &path) const override |
| Checks if the MimeType can handle file at the given location. More... | |
| MitkCESTDicomMimeType * | Clone () const override |
Public Member Functions inherited from mitk::CustomMimeType | |
| CustomMimeType () | |
| CustomMimeType (const std::string &name) | |
| CustomMimeType (const CustomMimeType &other) | |
| CustomMimeType (const MimeType &other) | |
| virtual | ~CustomMimeType () |
| CustomMimeType & | operator= (const CustomMimeType &other) |
| CustomMimeType & | operator= (const MimeType &other) |
| std::string | GetName () const |
| Returns the unique name for the MimeType. More... | |
| std::string | GetCategory () const |
| Returns the human-readable Category of the mime-type. Allows grouping of similar mime-types (like Surfaces) More... | |
| std::vector< std::string > | GetExtensions () const |
| Returns all extensions that this MimeType can handle. More... | |
| std::string | GetComment () const |
| Returns the Human readable comment of the MimeType, a string that describes its unique role. More... | |
| bool | MatchesExtension (const std::string &path) const |
| Checks if the MimeType can handle the etension of the given path. More... | |
| std::string | GetExtension (const std::string &path) const |
| Provides the first matching extension. More... | |
| std::string | GetFilenameWithoutExtension (const std::string &path) const |
| Provides the filename minus the extension. More... | |
| void | SetName (const std::string &name) |
| void | SetCategory (const std::string &category) |
| void | SetExtension (const std::string &extension) |
| void | AddExtension (const std::string &extension) |
| void | SetComment (const std::string &comment) |
| void | Swap (CustomMimeType &r) |
Mime type that parses dicom files to determine whether they are CEST dicom files.
Accepts dicom files that contain the substring "CEST_Rev" (via the mitk::CustomTagParser parsing) in the tSequenceFileName parameter in dicom tag (0x0029, 0x1020)
Definition at line 31 of file mitkCESTIOMimeTypes.h.
| mitk::MitkCESTIOMimeTypes::MitkCESTDicomMimeType::MitkCESTDicomMimeType | ( | ) |
Definition at line 40 of file mitkCESTIOMimeTypes.cpp.
References mitk::CustomMimeType::AddExtension(), mitk::IOMimeTypes::CATEGORY_IMAGES(), mitk::CustomMimeType::SetCategory(), and mitk::CustomMimeType::SetComment().
Referenced by mitk::MitkCESTIOMimeTypes::CEST_DICOM_MIMETYPE(), and Clone().
|
overridevirtual |
Checks if the MimeType can handle file at the given location.
In its base implementation, this function exclusively looks a the given string. However, child classes can override this behaviour and peek into the file.
Reimplemented from mitk::CustomMimeType.
Definition at line 54 of file mitkCESTIOMimeTypes.cpp.
References mitk::CustomMimeType::AppliesTo(), mitk::ConvertToDICOMImageFrameList(), mitk::DICOMDCMTKTagScanner::New(), and mitk::CustomTagParser::ParseDicomPropertyString().
|
overridevirtual |
Reimplemented from mitk::CustomMimeType.
Definition at line 106 of file mitkCESTIOMimeTypes.cpp.
References MitkCESTDicomMimeType().