Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::DICOMRTMimeTypes Class Reference

Provides MIME type definitions for DICOM-RT file types (RTDose, RTStruct, RTPlan). More...

#include <mitkDICOMRTMimeTypes.h>

Classes

class  RTDoseMimeType
 MIME type for DICOM RT Dose files. More...
 
class  RTPlanMimeType
 MIME type for DICOM RT Plan files. More...
 
class  RTStructMimeType
 MIME type for DICOM RT Structure Set files. More...
 

Public Member Functions

 DICOMRTMimeTypes ()=delete
 
 DICOMRTMimeTypes (const DICOMRTMimeTypes &)=delete
 

Static Public Member Functions

static std::array< std::unique_ptr< CustomMimeType >, 3 > Get ()
 Returns an array of all DICOM-RT MIME types (Dose, Plan, Struct). More...
 
static RTDoseMimeType DICOMRT_DOSE_MIMETYPE ()
 Returns an RTDoseMimeType instance. More...
 
static RTStructMimeType DICOMRT_STRUCT_MIMETYPE ()
 Returns an RTStructMimeType instance. More...
 
static RTPlanMimeType DICOMRT_PLAN_MIMETYPE ()
 Returns an RTPlanMimeType instance. More...
 
static std::string DICOMRT_DOSE_MIMETYPE_NAME ()
 Returns the registered name string for the RT Dose MIME type. More...
 
static std::string DICOMRT_STRUCT_MIMETYPE_NAME ()
 Returns the registered name string for the RT Struct MIME type. More...
 
static std::string DICOMRT_PLAN_MIMETYPE_NAME ()
 Returns the registered name string for the RT Plan MIME type. More...
 
static std::string DICOMRT_DOSE_MIMETYPE_DESCRIPTION ()
 Returns a human-readable description for the RT Dose MIME type. More...
 
static std::string DICOMRT_STRUCT_MIMETYPE_DESCRIPTION ()
 Returns a human-readable description for the RT Struct MIME type. More...
 
static std::string DICOMRT_PLAN_MIMETYPE_DESCRIPTION ()
 Returns a human-readable description for the RT Plan MIME type. More...
 
static bool canReadByDicomFileReader (const std::string &path)
 Checks whether the given file can be read by any built-in DICOM file reader. More...
 
static std::string GetModality (const std::string &path)
 Reads the DICOM Modality tag (0008,0060) from the given file. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DICOMRTMimeTypes() [1/2]

mitk::DICOMRTMimeTypes::DICOMRTMimeTypes ( )
delete

◆ DICOMRTMimeTypes() [2/2]

mitk::DICOMRTMimeTypes::DICOMRTMimeTypes ( const DICOMRTMimeTypes &  )
delete

Member Function Documentation

◆ 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]pathFilesystem 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

Returns an RTDoseMimeType instance.

Returns
A default-constructed RTDoseMimeType.

◆ 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

Returns an RTPlanMimeType instance.

Returns
A default-constructed RTPlanMimeType.

◆ 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()

static RTStructMimeType mitk::DICOMRTMimeTypes::DICOMRT_STRUCT_MIMETYPE ( )
static

Returns an RTStructMimeType instance.

Returns
A default-constructed RTStructMimeType.

◆ 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]pathFilesystem 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: