Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkMultilabelIOMimeTypes.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 mitkMultilabelIOMimeTypes_h
14 #define mitkMultilabelIOMimeTypes_h
15 
16 #include <mitkCustomMimeType.h>
18 
19 namespace mitk
20 {
22  namespace MitkMultilabelIOMimeTypes
23  {
26  {
27  public:
29 
30  bool AppliesTo(const std::string& path) const override;
31  LegacyLabelSetMimeType* Clone() const override;
32  };
33 
36 
39 
42  {
43  public:
45 
46  bool AppliesTo(const std::string& path) const override;
48  };
49 
52 
55 
58  {
59  public:
61  bool AppliesTo(const std::string& path) const override;
62  MultiLabelMetaMimeType* Clone() const override;
63  };
64 
67 
70 
73  {
74  public:
76 
77  bool AppliesTo(const std::string& path) const override;
79  };
80 
83 
86 
88  MITKMULTILABELIO_EXPORT std::vector<CustomMimeType*> Get();
89 
90  }
91 }
92 
93 #endif
#define MITKMULTILABELIO_EXPORT
A custom mime-type that can be registered as a service object.
MIME type for legacy LabelSetImage NRRD files.
bool AppliesTo(const std::string &path) const override
Check whether this mime-type can handle the file at the given path.
LegacyLabelSetMimeType * Clone() const override
Create a heap-allocated copy of this CustomMimeType.
MIME type for multi-label meta JSON files (mitklabel.json).
MultiLabelMetaMimeType * Clone() const override
Create a heap-allocated copy of this CustomMimeType.
bool AppliesTo(const std::string &path) const override
Check whether this mime-type can handle the file at the given path.
MIME type for multi-label NIfTI stack directories.
MultiLabelNiftiStackMimeType * Clone() const override
Create a heap-allocated copy of this CustomMimeType.
bool AppliesTo(const std::string &path) const override
Check whether this mime-type can handle the file at the given path.
MIME type for MultiLabelSegmentation NRRD files with embedded label metadata.
MultiLabelSegmentationMimeType * Clone() const override
Create a heap-allocated copy of this CustomMimeType.
bool AppliesTo(const std::string &path) const override
Check whether this mime-type can handle the file at the given path.
MITKMULTILABELIO_EXPORT LegacyLabelSetMimeType LEGACYLABELSET_MIMETYPE()
Return an instance of the legacy LabelSet MIME type.
MITKMULTILABELIO_EXPORT std::string LEGACYLABELSET_MIMETYPE_NAME()
Return the name string for the legacy LabelSet MIME type.
MITKMULTILABELIO_EXPORT MultiLabelSegmentationMimeType MULTILABEL_SEGMENTATION_MIMETYPE()
Return an instance of the MultiLabelSegmentation MIME type.
MITKMULTILABELIO_EXPORT MultiLabelNiftiStackMimeType MULTILABEL_NIFTISTACK_MIMETYPE()
Return an instance of the MultiLabel NIfTI stack MIME type.
MITKMULTILABELIO_EXPORT std::string MULTILABELMETA_MIMETYPE_NAME()
Return the name string for the MultiLabelMeta MIME type.
MITKMULTILABELIO_EXPORT MultiLabelMetaMimeType MULTILABELMETA_MIMETYPE()
Return an instance of the MultiLabelMeta MIME type.
MITKMULTILABELIO_EXPORT std::vector< CustomMimeType * > Get()
Return all registered multi-label IO MIME types. Caller takes ownership.
MITKMULTILABELIO_EXPORT std::string MULTILABEL_SEGMENTATION_MIMETYPE_NAME()
Return the name string for the MultiLabelSegmentation MIME type.
MITKMULTILABELIO_EXPORT std::string MULTILABEL_NIFTISTACK_MIMETYPE_NAME()
Return the name string for the MultiLabel NIfTI stack MIME type.
Find image slices visible on a given plane.