13 #ifndef mitkDICOMRTMimeTypes_h
14 #define mitkDICOMRTMimeTypes_h
59 bool AppliesTo(
const std::string &path)
const override;
86 bool AppliesTo(
const std::string &path)
const override;
126 static std::array<std::unique_ptr<CustomMimeType>, 3>
Get();
A custom mime-type that can be registered as a service object.
MIME type for DICOM RT Dose files.
bool AppliesTo(const std::string &path) const override
Checks whether the given file is an RT Dose DICOM file.
RTDoseMimeType * Clone() const override
Creates a clone of this MIME type instance.
RTDoseMimeType()
Default constructor. Sets category to "DICOMRT" and adds ".dcm" extension.
MIME type for DICOM RT Plan files.
RTPlanMimeType()
Default constructor. Sets category to "DICOMRT" and adds ".dcm" extension.
bool AppliesTo(const std::string &path) const override
Checks whether the given file is an RT Plan DICOM file.
RTPlanMimeType * Clone() const override
Creates a clone of this MIME type instance.
MIME type for DICOM RT Structure Set files.
RTStructMimeType()
Default constructor. Sets category to "DICOMRT" and adds ".dcm" extension.
RTStructMimeType * Clone() const override
Creates a clone of this MIME type instance.
bool AppliesTo(const std::string &path) const override
Checks whether the given file is an RT Structure Set DICOM file.
Provides MIME type definitions for DICOM-RT file types (RTDose, RTStruct, RTPlan).
static bool canReadByDicomFileReader(const std::string &path)
Checks whether the given file can be read by any built-in DICOM file reader.
static RTPlanMimeType DICOMRT_PLAN_MIMETYPE()
Returns an RTPlanMimeType instance.
static std::array< std::unique_ptr< CustomMimeType >, 3 > Get()
Returns an array of all DICOM-RT MIME types (Dose, Plan, Struct).
DICOMRTMimeTypes(const DICOMRTMimeTypes &)=delete
static RTStructMimeType DICOMRT_STRUCT_MIMETYPE()
Returns an RTStructMimeType instance.
static std::string GetModality(const std::string &path)
Reads the DICOM Modality tag (0008,0060) from the given file.
static RTDoseMimeType DICOMRT_DOSE_MIMETYPE()
Returns an RTDoseMimeType instance.
static std::string DICOMRT_STRUCT_MIMETYPE_DESCRIPTION()
Returns a human-readable description for the RT Struct MIME type.
DICOMRTMimeTypes()=delete
static std::string DICOMRT_DOSE_MIMETYPE_DESCRIPTION()
Returns a human-readable description for the RT Dose MIME type.
static std::string DICOMRT_PLAN_MIMETYPE_NAME()
Returns the registered name string for the RT Plan MIME type.
static std::string DICOMRT_STRUCT_MIMETYPE_NAME()
Returns the registered name string for the RT Struct MIME type.
static std::string DICOMRT_DOSE_MIMETYPE_NAME()
Returns the registered name string for the RT Dose MIME type.
static std::string DICOMRT_PLAN_MIMETYPE_DESCRIPTION()
Returns a human-readable description for the RT Plan MIME type.
Find image slices visible on a given plane.