Provides MIME type definitions for DICOM-RT file types (RTDose, RTStruct, RTPlan).
More...
#include <mitkDICOMRTMimeTypes.h>
Provides MIME type definitions for DICOM-RT file types (RTDose, RTStruct, RTPlan).
This utility class registers custom MIME types for the three main DICOM Radiotherapy object types: RT Dose, RT Structure Set, and RT Plan. Each MIME type checks the DICOM Modality tag (0008,0060) to verify the file type. The class is non-instantiable; all members are static.
- See also
- mitk::CustomMimeType
-
mitk::IOMimeTypes
Definition at line 36 of file mitkDICOMRTMimeTypes.h.
◆ DICOMRTMimeTypes() [1/2]
| mitk::DICOMRTMimeTypes::DICOMRTMimeTypes |
( |
| ) |
|
|
delete |
◆ DICOMRTMimeTypes() [2/2]
◆ canReadByDicomFileReader()
| static bool mitk::DICOMRTMimeTypes::canReadByDicomFileReader |
( |
const std::string & |
path | ) |
|
|
static |
Checks whether the given file can be read by any built-in DICOM file reader.
- Parameters
-
| [in] | path | Filesystem path to the DICOM file. |
- Returns
- True if a suitable DICOMFileReader is found for the file.
◆ DICOMRT_DOSE_MIMETYPE()
| static RTDoseMimeType mitk::DICOMRTMimeTypes::DICOMRT_DOSE_MIMETYPE |
( |
| ) |
|
|
static |
◆ DICOMRT_DOSE_MIMETYPE_DESCRIPTION()
| static std::string mitk::DICOMRTMimeTypes::DICOMRT_DOSE_MIMETYPE_DESCRIPTION |
( |
| ) |
|
|
static |
Returns a human-readable description for the RT Dose MIME type.
- Returns
- The description string "RTDOSE reader".
◆ DICOMRT_DOSE_MIMETYPE_NAME()
| static std::string mitk::DICOMRTMimeTypes::DICOMRT_DOSE_MIMETYPE_NAME |
( |
| ) |
|
|
static |
Returns the registered name string for the RT Dose MIME type.
- Returns
- The MIME type name string (e.g. "application/vnd.mitk.dicomrt.dose").
◆ DICOMRT_PLAN_MIMETYPE()
| static RTPlanMimeType mitk::DICOMRTMimeTypes::DICOMRT_PLAN_MIMETYPE |
( |
| ) |
|
|
static |
◆ DICOMRT_PLAN_MIMETYPE_DESCRIPTION()
| static std::string mitk::DICOMRTMimeTypes::DICOMRT_PLAN_MIMETYPE_DESCRIPTION |
( |
| ) |
|
|
static |
Returns a human-readable description for the RT Plan MIME type.
- Returns
- The description string "RTPLAN reader".
◆ DICOMRT_PLAN_MIMETYPE_NAME()
| static std::string mitk::DICOMRTMimeTypes::DICOMRT_PLAN_MIMETYPE_NAME |
( |
| ) |
|
|
static |
Returns the registered name string for the RT Plan MIME type.
- Returns
- The MIME type name string (e.g. "application/vnd.mitk.dicomrt.plan").
◆ DICOMRT_STRUCT_MIMETYPE()
◆ DICOMRT_STRUCT_MIMETYPE_DESCRIPTION()
| static std::string mitk::DICOMRTMimeTypes::DICOMRT_STRUCT_MIMETYPE_DESCRIPTION |
( |
| ) |
|
|
static |
Returns a human-readable description for the RT Struct MIME type.
- Returns
- The description string "RTSTRUCT reader".
◆ DICOMRT_STRUCT_MIMETYPE_NAME()
| static std::string mitk::DICOMRTMimeTypes::DICOMRT_STRUCT_MIMETYPE_NAME |
( |
| ) |
|
|
static |
Returns the registered name string for the RT Struct MIME type.
- Returns
- The MIME type name string (e.g. "application/vnd.mitk.dicomrt.struct").
◆ Get()
| static std::array<std::unique_ptr<CustomMimeType>, 3> mitk::DICOMRTMimeTypes::Get |
( |
| ) |
|
|
static |
Returns an array of all DICOM-RT MIME types (Dose, Plan, Struct).
- Returns
- An array of three unique_ptr<CustomMimeType> covering all RT modalities.
◆ GetModality()
| static std::string mitk::DICOMRTMimeTypes::GetModality |
( |
const std::string & |
path | ) |
|
|
static |
Reads the DICOM Modality tag (0008,0060) from the given file.
- Parameters
-
| [in] | path | Filesystem path to the DICOM file. |
- Returns
- The modality string (e.g. "RTDOSE", "RTSTRUCT", "RTPLAN"), or an empty string if unavailable.
The documentation for this class was generated from the following file: