12 #ifndef CXDICOMMODELNODE_H 13 #define CXDICOMMODELNODE_H 15 #include "org_custusx_dicom_Export.h" 17 #include "boost/shared_ptr.hpp" 20 #include "ctkDICOMDatabase.h" 21 #include "cxDicomImageReader.h" 25 typedef boost::shared_ptr<class DicomModelNode>
NodePtr;
41 static NodePtr createNode(
int row,
DicomModelNode* parent, QSharedPointer<ctkDICOMDatabase> dataBase);
42 static NodePtr getNullNode();
47 bool canFetchMore()
const;
48 bool hasChildren()
const;
49 NodePtr getFetchedChildForRow(
int row)
const;
52 virtual void fillChildrenUids() = 0;
53 virtual QVariant
getName()
const {
return QVariant(); }
64 QString
getUid()
const {
return UID; }
69 void removeChild(
int index);
71 QVariant getValue(
int column)
const;
72 QStringList getHeaders()
const;
76 QVariant getUncachedValue(
int column)
const;
112 virtual void fillChildrenUids();
126 virtual void fillChildrenUids();
127 virtual QVariant getName()
const;
128 virtual QVariant getTimestamp()
const;
129 virtual QString getFirstDICOMFilename()
const;
142 virtual void fillChildrenUids();
143 virtual QVariant getName()
const;
144 virtual QVariant getTimestamp()
const;
145 virtual QString getFirstDICOMFilename()
const;
159 virtual QVariant getName()
const;
160 virtual QVariant getTimestamp()
const;
161 virtual QVariant getModality()
const;
162 virtual QVariant getImageCount()
const;
163 virtual QString getFirstDICOMFilename()
const;
164 int getFrameCountForSeries(QString series)
const;
169 #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
Namespace for all CustusX production code.
virtual QVariant getTimestamp() const