33 #ifndef CXDICOMMODELNODE_H
34 #define CXDICOMMODELNODE_H
36 #include "org_custusx_dicom_Export.h"
38 #include "boost/shared_ptr.hpp"
41 #include "ctkDICOMDatabase.h"
46 typedef boost::shared_ptr<class DicomModelNode>
NodePtr;
62 static NodePtr createNode(
int row,
DicomModelNode* parent, QSharedPointer<ctkDICOMDatabase> dataBase);
68 bool canFetchMore()
const;
69 bool hasChildren()
const;
70 NodePtr getFetchedChildForRow(
int row)
const;
73 virtual void fillChildrenUids() = 0;
74 virtual QVariant
getName()
const {
return QVariant(); }
85 QString
getUid()
const {
return UID; }
90 void removeChild(
int index);
92 QVariant getValue(
int column)
const;
93 QStringList getHeaders()
const;
97 QVariant getUncachedValue(
int column)
const;
133 virtual void fillChildrenUids();
147 virtual void fillChildrenUids();
148 virtual QVariant getName()
const;
149 virtual QVariant getTimestamp()
const;
150 virtual QString getFirstDICOMFilename()
const;
163 virtual void fillChildrenUids();
164 virtual QVariant getName()
const;
165 virtual QVariant getTimestamp()
const;
166 virtual QString getFirstDICOMFilename()
const;
180 virtual QVariant getName()
const;
181 virtual QVariant getTimestamp()
const;
182 virtual QVariant getModality()
const;
183 virtual QVariant getImageCount()
const;
184 virtual QString getFirstDICOMFilename()
const;
185 int getFrameCountForSeries(QString series)
const;
190 #endif // CXDICOMMODELNODE_H
virtual void fillChildrenUids()
std::vector< NodePtr > FetchedChildren
all children currently loaded (filled by fetchMore())
virtual ~RootDicomModelNode()
QString format_time() const
QStringList getChildrenUID() const
uids of all loaded and unloaded children.
virtual DICOMModel::IndexType getType() const
virtual DICOMModel::IndexType getType() const
QSharedPointer< ctkDICOMDatabase > DataBase
boost::shared_ptr< class DicomModelNode > NodePtr
virtual DICOMModel::IndexType getType() const
DicomModelNode * getParent() const
virtual DICOMModel::IndexType getType() const
QVariant getDefaultName() const
virtual DICOMModel::IndexType getType() const
QStringList ChildrenUID
uids of all loaded and unloaded children.
virtual void fillChildrenUids()
virtual ~NullDicomModelNode()
const std::vector< NodePtr > & getFetchedChildren() const
all children currently loaded (filled by fetchMore())
virtual ~DicomModelNode()
boost::shared_ptr< class DicomImageReader > DicomImageReaderPtr
virtual ~StudyDicomModelNode()
virtual ~PatientDicomModelNode()
virtual QVariant getImageCount() const
std::map< int, QVariant > CachedValues
virtual QString getFirstDICOMFilename() const
virtual QVariant getName() const
QString format_date() const
virtual ~SeriesDicomModelNode()
virtual QVariant getModality() const
virtual QVariant getTimestamp() const