75 node->Parent = parent;
80 node->DataBase = dataBase;
82 node->fillChildrenUids();
103 retval <<
"Modality";
163 std::advance(iter, index);
172 for (
int i=0; i<siblings.size(); ++i)
173 if (siblings[i].
get()==
this)
205 QString retval = reader->getPatientName();
206 if (retval.isEmpty())
216 return reader->item()->GetElementAsDate(DCM_PatientBirthDate).toString(this->
format_date());
221 QStringList studies =
DataBase->studiesForPatient(this->
UID);
224 QStringList series =
DataBase->seriesForStudy(studies[0]);
227 QStringList files =
DataBase->filesForSeries(series[0]);
247 QString retval = reader->item()->GetElementAsString(DCM_StudyDescription);
248 if (retval.isEmpty())
258 QString date = reader->item()->GetElementAsDate(DCM_StudyDate).toString(this->
format_date());
259 QString time = reader->item()->GetElementAsTime(DCM_StudyTime).toString(this->
format_time());
260 return QString(
"%1 %2").arg(date).arg(time);
265 QStringList series =
DataBase->seriesForStudy(this->
UID);
268 QStringList files =
DataBase->filesForSeries(series[0]);
284 QString retval = reader->item()->GetElementAsString(DCM_SeriesDescription);
285 if (retval.isEmpty())
295 QString date = reader->item()->GetElementAsDate(DCM_SeriesDate).toString(this->
format_date());
296 QString time = reader->item()->GetElementAsTime(DCM_SeriesTime).toString(this->
format_time());
297 return QString(
"%1 %2").arg(date).arg(time);
305 return reader->item()->GetElementAsString(DCM_Modality);
315 QStringList files =
DataBase->filesForSeries(this->
UID);
323 QString seriesDescription;
325 QStringList files =
DataBase->filesForSeries(series);
326 for (
unsigned i=0; i<files.size(); ++i)
331 frameCount += reader->getNumberOfFrames();
332 seriesDescription = reader->item()->GetElementAsString(DCM_SeriesDescription);
static DicomImageReaderPtr createFromFile(QString filename)
std::vector< NodePtr > FetchedChildren
all children currently loaded (filled by fetchMore())
QString format_time() const
QSharedPointer< ctkDICOMDatabase > DataBase
boost::shared_ptr< class DicomModelNode > NodePtr
virtual QVariant getModality() const
virtual QString getFirstDICOMFilename() const
void removeChild(int index)
virtual QVariant getImageCount() const
DicomImageReaderPtr createReader() const
QStringList getHeaders() const
QVariant getDefaultName() const
virtual QVariant getName() const
QVariant getUncachedValue(int column) const
virtual QString getFirstDICOMFilename() const
QStringList ChildrenUID
uids of all loaded and unloaded children.
virtual void fillChildrenUids()
const std::vector< NodePtr > & getFetchedChildren() const
all children currently loaded (filled by fetchMore())
static NodePtr createNode(int row, DicomModelNode *parent, QSharedPointer< ctkDICOMDatabase > dataBase)
virtual QVariant getTimestamp() const
virtual DICOMModel::IndexType getType() const =0
virtual void fillChildrenUids()
boost::shared_ptr< class DicomImageReader > DicomImageReaderPtr
virtual QVariant getTimestamp() const
virtual QVariant getTimestamp() const
virtual QVariant getName() const
static NodePtr getNullNode()
virtual QVariant getImageCount() const
int getFrameCountForSeries(QString series) const
virtual QVariant getName() const
std::map< int, QVariant > CachedValues
virtual QString getFirstDICOMFilename() const
virtual QString getFirstDICOMFilename() const
virtual void fillChildrenUids()
NodePtr getFetchedChildForRow(int row) const
virtual QVariant getName() const
QString format_date() const
bool canFetchMore() const
QVariant getValue(int column) const
virtual QVariant getModality() const
virtual QVariant getTimestamp() const