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

MIME type for DICOM RT Dose files. More...

#include <mitkDICOMRTMimeTypes.h>

Inheritance diagram for mitk::DICOMRTMimeTypes::RTDoseMimeType:
Collaboration diagram for mitk::DICOMRTMimeTypes::RTDoseMimeType:

Public Member Functions

 RTDoseMimeType ()
 Default constructor. Sets category to "DICOMRT" and adds ".dcm" extension. More...
 
bool AppliesTo (const std::string &path) const override
 Checks whether the given file is an RT Dose DICOM file. More...
 
RTDoseMimeType * Clone () const override
 Creates a clone of this MIME type instance. More...
 
- Public Member Functions inherited from mitk::CustomMimeType
 CustomMimeType ()
 Construct a default CustomMimeType with an empty name. More...
 
 CustomMimeType (const std::string &name)
 Construct a CustomMimeType with the given unique name. More...
 
 CustomMimeType (const CustomMimeType &other)
 Copy constructor. More...
 
 CustomMimeType (const MimeType &other)
 Construct from an immutable MimeType wrapper. More...
 
virtual ~CustomMimeType ()
 
CustomMimeType & operator= (const CustomMimeType &other)
 Copy assignment operator. More...
 
CustomMimeType & operator= (const MimeType &other)
 Assignment from an immutable MimeType wrapper. More...
 
std::string GetName () const
 Get the unique name for this mime-type. More...
 
std::string GetCategory () const
 Get the human-readable category of this mime-type. More...
 
std::vector< std::string > GetExtensions () const
 Get all file extensions this mime-type can handle. More...
 
std::string GetComment () const
 Get a human-readable description of this mime-type. More...
 
bool MatchesExtension (const std::string &path) const
 Check whether the file extension of the given path matches this mime-type. More...
 
std::string GetExtension (const std::string &path) const
 Get the first matching extension found at the end of the given path. More...
 
std::string GetFilenameWithoutExtension (const std::string &path) const
 Get the filename from the given path, without the matching extension. More...
 
void SetName (const std::string &name)
 Set the unique name of this mime-type. More...
 
void SetCategory (const std::string &category)
 Set the category for grouping this mime-type. More...
 
void SetExtension (const std::string &extension)
 Set a single file extension, replacing all existing extensions. More...
 
void AddExtension (const std::string &extension)
 Add a file extension to the list if not already present (case-insensitive). More...
 
void SetComment (const std::string &comment)
 Set the human-readable comment for this mime-type. More...
 
void Swap (CustomMimeType &r)
 Swap the contents of this CustomMimeType with another. More...
 

Detailed Description

MIME type for DICOM RT Dose files.

Identifies files whose DICOM Modality tag is "RTDOSE" and that can be read by a DICOM file reader.

See also
mitk::CustomMimeType

Definition at line 48 of file mitkDICOMRTMimeTypes.h.

Constructor & Destructor Documentation

◆ RTDoseMimeType()

mitk::DICOMRTMimeTypes::RTDoseMimeType::RTDoseMimeType ( )

Default constructor. Sets category to "DICOMRT" and adds ".dcm" extension.

Member Function Documentation

◆ AppliesTo()

bool mitk::DICOMRTMimeTypes::RTDoseMimeType::AppliesTo ( const std::string &  path) const
overridevirtual

Checks whether the given file is an RT Dose DICOM file.

Parameters
[in]pathFilesystem path to the file to check.
Returns
True if the file has modality "RTDOSE" and can be read by a DICOM file reader.

Reimplemented from mitk::CustomMimeType.

◆ Clone()

RTDoseMimeType* mitk::DICOMRTMimeTypes::RTDoseMimeType::Clone ( ) const
overridevirtual

Creates a clone of this MIME type instance.

Returns
A pointer to a new RTDoseMimeType that is a copy of this instance.

Reimplemented from mitk::CustomMimeType.


The documentation for this class was generated from the following file: