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

Collection of predefined MITK mime-types and factory methods. More...

#include <mitkIOMimeTypes.h>

Classes

class  BaseDicomMimeType
 Base mime-type for all DICOM image formats. More...
 
class  DicomMimeType
 The default DICOM mime-type for standard (non-RT) DICOM images. More...
 

Static Public Member Functions

static std::vector< CustomMimeType * > Get ()
 Get all predefined MITK Core mime-types. More...
 
static std::string DEFAULT_BASE_NAME ()
 Get the default base name prefix for MITK mime-types ("application/vnd.mitk"). More...
 
static std::string CATEGORY_IMAGES ()
 Get the "Images" category string. More...
 
static std::string CATEGORY_SURFACES ()
 Get the "Surfaces" category string. More...
 
static CustomMimeType VTK_IMAGE_MIMETYPE ()
 Create a CustomMimeType for VTK XML image files (.vti). More...
 
static CustomMimeType VTK_IMAGE_LEGACY_MIMETYPE ()
 Create a CustomMimeType for VTK legacy image files (.vtk). More...
 
static CustomMimeType VTK_PARALLEL_IMAGE_MIMETYPE ()
 Create a CustomMimeType for VTK parallel image files (.pvti). More...
 
static CustomMimeType VTK_POLYDATA_MIMETYPE ()
 Create a CustomMimeType for VTK XML polydata files (.vtp). More...
 
static CustomMimeType VTK_POLYDATA_LEGACY_MIMETYPE ()
 Create a CustomMimeType for VTK legacy polydata files (.vtk). More...
 
static CustomMimeType VTK_PARALLEL_POLYDATA_MIMETYPE ()
 Create a CustomMimeType for VTK parallel polydata files (.pvtp). More...
 
static CustomMimeType STEREOLITHOGRAPHY_MIMETYPE ()
 Create a CustomMimeType for STL surface files (.stl). More...
 
static CustomMimeType WAVEFRONT_OBJ_MIMETYPE ()
 Create a CustomMimeType for Wavefront OBJ surface files (.obj). More...
 
static CustomMimeType STANFORD_PLY_MIMETYPE ()
 Create a CustomMimeType for Stanford PLY surface files (.ply). More...
 
static std::string STEREOLITHOGRAPHY_NAME ()
 Get the mime-type name for STL files. More...
 
static std::string VTK_IMAGE_NAME ()
 Get the mime-type name for VTK XML images. More...
 
static std::string VTK_IMAGE_LEGACY_NAME ()
 Get the mime-type name for VTK legacy images. More...
 
static std::string VTK_PARALLEL_IMAGE_NAME ()
 Get the mime-type name for VTK parallel images. More...
 
static std::string VTK_POLYDATA_NAME ()
 Get the mime-type name for VTK XML polydata. More...
 
static std::string VTK_POLYDATA_LEGACY_NAME ()
 Get the mime-type name for VTK legacy polydata. More...
 
static std::string VTK_PARALLEL_POLYDATA_NAME ()
 Get the mime-type name for VTK parallel polydata. More...
 
static std::string WAVEFRONT_OBJ_NAME ()
 Get the mime-type name for Wavefront OBJ. More...
 
static std::string STANFORD_PLY_NAME ()
 Get the mime-type name for Stanford PLY. More...
 
static CustomMimeType NRRD_MIMETYPE ()
 Create a CustomMimeType for NRRD image files (.nrrd, .nhdr). More...
 
static CustomMimeType NIFTI_MIMETYPE ()
 Create a CustomMimeType for NIfTI image files (.nii, .nii.gz, .hdr, etc.). More...
 
static CustomMimeType RAW_MIMETYPE ()
 Create a CustomMimeType for raw image files (.raw). More...
 
static DicomMimeType DICOM_MIMETYPE ()
 Create a DicomMimeType for standard DICOM image files. More...
 
static std::string NRRD_MIMETYPE_NAME ()
 Get the mime-type name for NRRD. More...
 
static std::string NIFTI_MIMETYPE_NAME ()
 Get the mime-type name for NIfTI. More...
 
static std::string RAW_MIMETYPE_NAME ()
 Get the mime-type name for raw images. More...
 
static std::string DICOM_MIMETYPE_NAME ()
 Get the mime-type name for DICOM. More...
 
static CustomMimeType POINTSET_MIMETYPE ()
 Create a CustomMimeType for MITK point set files (.mps). More...
 
static CustomMimeType GEOMETRY_DATA_MIMETYPE ()
 Create a CustomMimeType for MITK geometry data files (.mitkgeometry). More...
 
static std::string POINTSET_MIMETYPE_NAME ()
 Get the mime-type name for point sets. More...
 

Detailed Description

Collection of predefined MITK mime-types and factory methods.

This utility class provides static factory methods for creating CustomMimeType objects for all file formats supported by MITK Core (VTK, ITK, DICOM, NRRD, NIfTI, STL, OBJ, PLY, etc.). It also defines the corresponding mime-type name strings and category constants.

Use Get() to obtain the full set of default mime-types for bulk registration, or call individual factory methods such as NRRD_MIMETYPE() to obtain a specific mime-type.

This class cannot be instantiated.

See also
CustomMimeType
MimeType
IMimeTypeProvider

Definition at line 42 of file mitkIOMimeTypes.h.

Member Function Documentation

◆ CATEGORY_IMAGES()

static std::string mitk::IOMimeTypes::CATEGORY_IMAGES ( )
static

Get the "Images" category string.

Returns
The category string "Images".

◆ CATEGORY_SURFACES()

static std::string mitk::IOMimeTypes::CATEGORY_SURFACES ( )
static

Get the "Surfaces" category string.

Returns
The category string "Surfaces".

◆ DEFAULT_BASE_NAME()

static std::string mitk::IOMimeTypes::DEFAULT_BASE_NAME ( )
static

Get the default base name prefix for MITK mime-types ("application/vnd.mitk").

Returns
The base name string.

◆ DICOM_MIMETYPE()

static DicomMimeType mitk::IOMimeTypes::DICOM_MIMETYPE ( )
static

Create a DicomMimeType for standard DICOM image files.

Returns
A DicomMimeType instance.

◆ DICOM_MIMETYPE_NAME()

static std::string mitk::IOMimeTypes::DICOM_MIMETYPE_NAME ( )
static

Get the mime-type name for DICOM.

Returns
"application/vnd.mitk.image.dicom"

◆ GEOMETRY_DATA_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::GEOMETRY_DATA_MIMETYPE ( )
static

Create a CustomMimeType for MITK geometry data files (.mitkgeometry).

Returns
A CustomMimeType for MITK geometry data.

◆ Get()

static std::vector<CustomMimeType *> mitk::IOMimeTypes::Get ( )
static

Get all predefined MITK Core mime-types.

Returns
A vector of heap-allocated CustomMimeType pointers. The caller takes ownership of each pointer.

The returned mime-types are ordered by descending rank.

◆ NIFTI_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::NIFTI_MIMETYPE ( )
static

Create a CustomMimeType for NIfTI image files (.nii, .nii.gz, .hdr, etc.).

Returns
A CustomMimeType for NIfTI images.

◆ NIFTI_MIMETYPE_NAME()

static std::string mitk::IOMimeTypes::NIFTI_MIMETYPE_NAME ( )
static

Get the mime-type name for NIfTI.

Returns
"application/vnd.mitk.image.nifti"

◆ NRRD_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::NRRD_MIMETYPE ( )
static

Create a CustomMimeType for NRRD image files (.nrrd, .nhdr).

Returns
A CustomMimeType for NRRD images.

◆ NRRD_MIMETYPE_NAME()

static std::string mitk::IOMimeTypes::NRRD_MIMETYPE_NAME ( )
static

Get the mime-type name for NRRD.

Returns
"application/vnd.mitk.image.nrrd"

◆ POINTSET_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::POINTSET_MIMETYPE ( )
static

Create a CustomMimeType for MITK point set files (.mps).

Returns
A CustomMimeType for MITK point sets.

◆ POINTSET_MIMETYPE_NAME()

static std::string mitk::IOMimeTypes::POINTSET_MIMETYPE_NAME ( )
static

Get the mime-type name for point sets.

Returns
"application/vnd.mitk.pointset"

◆ RAW_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::RAW_MIMETYPE ( )
static

Create a CustomMimeType for raw image files (.raw).

Returns
A CustomMimeType for raw image data.

◆ RAW_MIMETYPE_NAME()

static std::string mitk::IOMimeTypes::RAW_MIMETYPE_NAME ( )
static

Get the mime-type name for raw images.

Returns
"application/vnd.mitk.image.raw"

◆ STANFORD_PLY_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::STANFORD_PLY_MIMETYPE ( )
static

Create a CustomMimeType for Stanford PLY surface files (.ply).

Returns
A CustomMimeType for Stanford PLY surfaces.

◆ STANFORD_PLY_NAME()

static std::string mitk::IOMimeTypes::STANFORD_PLY_NAME ( )
static

Get the mime-type name for Stanford PLY.

Returns
"application/vnd.mitk.ply"

◆ STEREOLITHOGRAPHY_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::STEREOLITHOGRAPHY_MIMETYPE ( )
static

Create a CustomMimeType for STL surface files (.stl).

Returns
A CustomMimeType for stereolithography surfaces.

◆ STEREOLITHOGRAPHY_NAME()

static std::string mitk::IOMimeTypes::STEREOLITHOGRAPHY_NAME ( )
static

Get the mime-type name for STL files.

Returns
"application/vnd.mitk.stl"

◆ VTK_IMAGE_LEGACY_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::VTK_IMAGE_LEGACY_MIMETYPE ( )
static

Create a CustomMimeType for VTK legacy image files (.vtk).

Returns
A CustomMimeType for VTK legacy images.

◆ VTK_IMAGE_LEGACY_NAME()

static std::string mitk::IOMimeTypes::VTK_IMAGE_LEGACY_NAME ( )
static

Get the mime-type name for VTK legacy images.

Returns
"application/vnd.mitk.vtk.image.legacy"

◆ VTK_IMAGE_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::VTK_IMAGE_MIMETYPE ( )
static

Create a CustomMimeType for VTK XML image files (.vti).

Returns
A CustomMimeType for VTK images.

◆ VTK_IMAGE_NAME()

static std::string mitk::IOMimeTypes::VTK_IMAGE_NAME ( )
static

Get the mime-type name for VTK XML images.

Returns
"application/vnd.mitk.vtk.image"

◆ VTK_PARALLEL_IMAGE_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::VTK_PARALLEL_IMAGE_MIMETYPE ( )
static

Create a CustomMimeType for VTK parallel image files (.pvti).

Returns
A CustomMimeType for VTK parallel images.

◆ VTK_PARALLEL_IMAGE_NAME()

static std::string mitk::IOMimeTypes::VTK_PARALLEL_IMAGE_NAME ( )
static

Get the mime-type name for VTK parallel images.

Returns
"application/vnd.mitk.vtk.parallel.image"

◆ VTK_PARALLEL_POLYDATA_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::VTK_PARALLEL_POLYDATA_MIMETYPE ( )
static

Create a CustomMimeType for VTK parallel polydata files (.pvtp).

Returns
A CustomMimeType for VTK parallel polydata surfaces.

◆ VTK_PARALLEL_POLYDATA_NAME()

static std::string mitk::IOMimeTypes::VTK_PARALLEL_POLYDATA_NAME ( )
static

Get the mime-type name for VTK parallel polydata.

Returns
"application/vnd.mitk.vtk.parallel.polydata"

◆ VTK_POLYDATA_LEGACY_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::VTK_POLYDATA_LEGACY_MIMETYPE ( )
static

Create a CustomMimeType for VTK legacy polydata files (.vtk).

Returns
A CustomMimeType for VTK legacy polydata surfaces.

◆ VTK_POLYDATA_LEGACY_NAME()

static std::string mitk::IOMimeTypes::VTK_POLYDATA_LEGACY_NAME ( )
static

Get the mime-type name for VTK legacy polydata.

Returns
"application/vnd.mitk.vtk.polydata.legacy"

◆ VTK_POLYDATA_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::VTK_POLYDATA_MIMETYPE ( )
static

Create a CustomMimeType for VTK XML polydata files (.vtp).

Returns
A CustomMimeType for VTK polydata surfaces.

◆ VTK_POLYDATA_NAME()

static std::string mitk::IOMimeTypes::VTK_POLYDATA_NAME ( )
static

Get the mime-type name for VTK XML polydata.

Returns
"application/vnd.mitk.vtk.polydata"

◆ WAVEFRONT_OBJ_MIMETYPE()

static CustomMimeType mitk::IOMimeTypes::WAVEFRONT_OBJ_MIMETYPE ( )
static

Create a CustomMimeType for Wavefront OBJ surface files (.obj).

Returns
A CustomMimeType for Wavefront OBJ surfaces.

◆ WAVEFRONT_OBJ_NAME()

static std::string mitk::IOMimeTypes::WAVEFRONT_OBJ_NAME ( )
static

Get the mime-type name for Wavefront OBJ.

Returns
"application/vnd.mitk.obj"

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