Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkROIIOMimeTypes.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkROIIOMimeTypes_h
14 #define mitkROIIOMimeTypes_h
15 
16 #include <mitkCustomMimeType.h>
17 #include <MitkROIIOExports.h>
18 
19 namespace mitk
20 {
22  namespace MitkROIIOMimeTypes
23  {
31  {
32  public:
34 
40  bool AppliesTo(const std::string& path) const override;
41 
43  MitkROIMimeType* Clone() const override;
44  };
45 
48 
51 
56  MITKROIIO_EXPORT std::vector<CustomMimeType*> Get();
57  }
58 }
59 
60 #endif
#define MITKROIIO_EXPORT
A custom mime-type that can be registered as a service object.
Custom MIME type for MITK ROI files.
bool AppliesTo(const std::string &path) const override
Check whether the given file path matches this MIME type.
MitkROIMimeType * Clone() const override
Create a copy of this MIME type object.
MITKROIIO_EXPORT std::vector< CustomMimeType * > Get()
Get all MIME types defined in this module.
MITKROIIO_EXPORT MitkROIMimeType ROI_MIMETYPE()
Get the ROI MIME type instance.
MITKROIIO_EXPORT std::string ROI_MIMETYPE_NAME()
Get the name string for the ROI MIME type.
Find image slices visible on a given plane.