Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkDicomRTIOMimeTypes.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 MITKDicomRTIOMimeTypes_H
14 #define MITKDicomRTIOMimeTypes_H
15 
16 #include "mitkCustomMimeType.h"
18 
19 #include <string>
20 
21 namespace mitk {
22 
24 {
25 public:
26 
28  {
29  public:
31  bool AppliesTo(const std::string &path) const override;
32 
33  RTDoseMimeType* Clone() const override;
34  };
35 
37  {
38  public:
40  bool AppliesTo(const std::string &path) const override;
41  RTStructMimeType* Clone() const override;
42  };
43 
45  {
46  public:
48  bool AppliesTo(const std::string &path) const override;
49  RTPlanMimeType* Clone() const override;
50  };
51  // Get all DicomRT Mime Types
52  static std::vector<CustomMimeType*> Get();
53 
57 
58  static std::string DICOMRT_DOSE_MIMETYPE_NAME();
59  static std::string DICOMRT_STRUCT_MIMETYPE_NAME();
60  static std::string DICOMRT_PLAN_MIMETYPE_NAME();
61 
62  static std::string DICOMRT_DOSE_MIMETYPE_DESCRIPTION();
63  static std::string DICOMRT_STRUCT_MIMETYPE_DESCRIPTION();
64  static std::string DICOMRT_PLAN_MIMETYPE_DESCRIPTION();
65 
66  DicomRTIOMimeTypes() = delete;
67  DicomRTIOMimeTypes(const DicomRTIOMimeTypes&) = delete;
68 
70  static bool canReadByDicomFileReader(const std::string & path);
71  static std::string GetModality(const std::string & path);
72 };
73 
74 }
75 
76 #endif // MITKDicomRTIOMimeTypes_H
static std::string GetModality(const std::string &path)
static std::string DICOMRT_STRUCT_MIMETYPE_DESCRIPTION()
DataCollection - Class to facilitate loading/accessing structured data.
static RTDoseMimeType DICOMRT_DOSE_MIMETYPE()
static std::string DICOMRT_PLAN_MIMETYPE_DESCRIPTION()
Interface of DICOM tags of interest service.
static std::string DICOMRT_PLAN_MIMETYPE_NAME()
static RTPlanMimeType DICOMRT_PLAN_MIMETYPE()
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
bool AppliesTo(const std::string &path) const override
Checks if the MimeType can handle file at the given location.
static bool canReadByDicomFileReader(const std::string &path)
static mitk::IDICOMTagsOfInterest * GetDicomTagsOfInterestService()
static std::vector< CustomMimeType * > Get()
static RTStructMimeType DICOMRT_STRUCT_MIMETYPE()
static std::string DICOMRT_DOSE_MIMETYPE_DESCRIPTION()
static std::string DICOMRT_STRUCT_MIMETYPE_NAME()
static std::string DICOMRT_DOSE_MIMETYPE_NAME()