CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Libs
DICOM
Widgets
ctkDICOMObjectModel.h
Go to the documentation of this file.
1
/*=============================================================================
2
3
Library: CTK
4
5
Copyright (c) Brigham and Women's Hospital (BWH)
6
Copyright (c) University of Sheffield
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
#ifndef __ctkDICOMObjectModel_h
23
#define __ctkDICOMObjectModel_h
24
25
// STD includes
26
#include <string>
27
28
// Qt includes
29
#include <QMetaType>
30
#include <QStandardItemModel>
31
#include <QString>
32
33
#include "ctkDICOMWidgetsExport.h"
34
35
class
ctkDICOMObjectModelPrivate;
40
class
CTK_DICOM_WIDGETS_EXPORT
ctkDICOMObjectModel
41
:
public
QStandardItemModel
42
{
43
Q_OBJECT
44
typedef
QStandardItemModel Superclass;
45
//Q_PROPERTY(setFile);
46
Q_ENUMS(
ColumnIndex
)
47
48
public
:
49
50
explicit
ctkDICOMObjectModel
(QObject* parent = 0);
51
virtual
~
ctkDICOMObjectModel
();
52
Q_INVOKABLE
void
setFile (
const
QString& fileName);
53
54
enum
ColumnIndex
55
{
56
TagColumn = 0,
57
AttributeColumn = 1,
58
ValueColumn = 2,
59
VRColumn = 3,
60
LengthColumn = 4
61
};
62
63
protected
:
64
QScopedPointer<ctkDICOMObjectModelPrivate>
d_ptr
;
65
66
private
:
67
Q_DECLARE_PRIVATE(
ctkDICOMObjectModel
)
68
Q_DISABLE_COPY(
ctkDICOMObjectModel
)
69
};
70
71
#endif // ctkDICOMObjectModel_h
ctkDICOMObjectModel::ColumnIndex
ColumnIndex
Definition:
ctkDICOMObjectModel.h:54
ctkDICOMObjectModel
Provides a Qt MVC-compatible wrapper around a ctkDICOMItem.
Definition:
ctkDICOMObjectModel.h:40
ctkDICOMObjectModel::d_ptr
QScopedPointer< ctkDICOMObjectModelPrivate > d_ptr
Definition:
ctkDICOMObjectModel.h:64
Generated on Tue Jan 28 2020 00:00:00 for CTK by
1.8.17