CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
ctkDicomAvailableDataHelper.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  Library: CTK
4 
5  Copyright (c) German Cancer Research Center,
6  Division of Medical and Biological Informatics
7 
8  Licensed under the Apache License, Version 2.0 (the "License");
9  you may not use this file except in compliance with the License.
10  You may obtain a copy of the License at
11 
12  http://www.apache.org/licenses/LICENSE-2.0
13 
14  Unless required by applicable law or agreed to in writing, software
15  distributed under the License is distributed on an "AS IS" BASIS,
16  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  See the License for the specific language governing permissions and
18  limitations under the License.
19 
20 =============================================================================*/
21 
22 
23 #ifndef CTKDICOMAVAILABLEDATAHELPER_H
24 #define CTKDICOMAVAILABLEDATAHELPER_H
25 
26 // Qt includes
27 #include <QObject>
28 #include <QString>
29 #include <QUuid>
30 
31 // CTK includes
32 #include <org_commontk_dah_core_Export.h>
34 
36 class ctkDICOMItem;
37 
39 
40 //----------------------------------------------------------------------------
41 class ctkDicomAvailableDataAccessorPrivate;
42 class org_commontk_dah_core_EXPORT ctkDicomAvailableDataAccessor : public QObject
43 {
44 public:
47 
54 
59  ctkDicomAppHosting::Study* getStudy(const QString& studyUID) const;
60 
65  ctkDicomAppHosting::Series* getSeries(const QString& seriesUID) const;
66 
67  void find(const ctkDicomAppHosting::Patient& patient,
68  const QString& studyUID,
69  const QString& seriesUID,
70  ctkDicomAppHosting::Patient*& patientResult,
71  ctkDicomAppHosting::Study*& studyResult,
72  ctkDicomAppHosting::Series*& seriesResult) const;
73 
74 protected:
75  QScopedPointer<ctkDicomAvailableDataAccessorPrivate> d_ptr;
76 
77 private:
78  Q_DECLARE_PRIVATE(ctkDicomAvailableDataAccessor);
79 };
80 
81 //----------------------------------------------------------------------------
82 bool org_commontk_dah_core_EXPORT addToAvailableData(ctkDicomAppHosting::AvailableData& data,
83  ctkDicomObjectLocatorCache* objectLocatorCache,
84  const ctkDICOMItem& dataset,
85  long length,
86  long offset,
87  const QString& uri);
88 
89 //----------------------------------------------------------------------------
90 bool org_commontk_dah_core_EXPORT addToAvailableData(ctkDicomAppHosting::AvailableData& data,
91  ctkDicomObjectLocatorCache* objectLocatorCache,
92  const QString& filename);
93 
94 //----------------------------------------------------------------------------
95 bool org_commontk_dah_core_EXPORT addNonDICOMToAvailableData(ctkDicomAppHosting::AvailableData& data,
96  ctkDicomObjectLocatorCache* objectLocatorCache,
97  const ctkDICOMItem& dataset,
98  long length,
99  long offset,
100  const QString& uri);
101 
102 //----------------------------------------------------------------------------
105 
106 
107 //----------------------------------------------------------------------------
115 QList<QUuid> org_commontk_dah_core_EXPORT getAllUuids(const ctkDicomAppHosting::Patient& patient);
116 
117 //----------------------------------------------------------------------------
125 QList<QUuid> org_commontk_dah_core_EXPORT getAllUuids(const ctkDicomAppHosting::AvailableData& availableData);
126 
127 } //end namespace ctkDicomAvailableDataHelper
128 
129 #endif // CTKDICOMAVAILABLEDATAHELPER_H
ctkDicomAppHosting::Study * getStudy(const QString &studyUID) const
ctkDicomAvailableDataAccessor(ctkDicomAppHosting::AvailableData &ad)
ctkDicomAppHosting::Patient * getPatient(const ctkDicomAppHosting::Patient &patient) const
QScopedPointer< ctkDicomAvailableDataAccessorPrivate > d_ptr
void find(const ctkDicomAppHosting::Patient &patient, const QString &studyUID, const QString &seriesUID, ctkDicomAppHosting::Patient *&patientResult, ctkDicomAppHosting::Study *&studyResult, ctkDicomAppHosting::Series *&seriesResult) const
ctkDicomAppHosting::Series * getSeries(const QString &seriesUID) const
bool org_commontk_dah_core_EXPORT appendToAvailableData(ctkDicomAppHosting::AvailableData &dest, const ctkDicomAppHosting::AvailableData &src)
bool org_commontk_dah_core_EXPORT addToAvailableData(ctkDicomAppHosting::AvailableData &data, ctkDicomObjectLocatorCache *objectLocatorCache, const ctkDICOMItem &dataset, long length, long offset, const QString &uri)
bool org_commontk_dah_core_EXPORT addNonDICOMToAvailableData(ctkDicomAppHosting::AvailableData &data, ctkDicomObjectLocatorCache *objectLocatorCache, const ctkDICOMItem &dataset, long length, long offset, const QString &uri)
QList< QUuid > org_commontk_dah_core_EXPORT getAllUuids(const ctkDicomAppHosting::Patient &patient)
Build list of all UUIDs of data available for patient.