CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::DicomModelNode Class Referenceabstract

#include <cxDicomModelNode.h>

Inheritance diagram for cx::DicomModelNode:
cx::NullDicomModelNode cx::PatientDicomModelNode cx::RootDicomModelNode cx::SeriesDicomModelNode cx::StudyDicomModelNode

Public Member Functions

 DicomModelNode ()
 
virtual ~DicomModelNode ()
 
bool canFetchMore () const
 
bool hasChildren () const
 
NodePtr getFetchedChildForRow (int row) const
 
virtual DICOMModel::IndexType getType () const =0
 
virtual void fillChildrenUids ()=0
 
virtual QVariant getName () const
 
virtual QVariant getTimestamp () const
 
virtual QVariant getModality () const
 
virtual QVariant getImageCount () const
 
QVariant getDefaultName () const
 
QString format_date () const
 
QString format_time () const
 
DicomImageReaderPtr createReader () const
 
virtual QString getFirstDICOMFilename () const
 
QString getUid () const
 
int getRow () const
 
DicomModelNodegetParent () const
 
const std::vector< NodePtr > & getFetchedChildren () const
 all children currently loaded (filled by fetchMore()) More...
 
QStringList getChildrenUID () const
 uids of all loaded and unloaded children. More...
 
void removeChild (int index)
 
QVariant getValue (int column) const
 
QStringList getHeaders () const
 
bool isNull () const
 

Static Public Member Functions

static NodePtr createNode (int row, DicomModelNode *parent, QSharedPointer< ctkDICOMDatabase > dataBase)
 
static NodePtr getNullNode ()
 

Protected Member Functions

QVariant getUncachedValue (int column) const
 

Protected Attributes

DicomModelNodeParent
 
std::vector< NodePtrFetchedChildren
 all children currently loaded (filled by fetchMore()) More...
 
QStringList ChildrenUID
 uids of all loaded and unloaded children. More...
 
QString UID
 
std::map< int, QVariant > CachedValues
 
QSharedPointer< ctkDICOMDatabase > DataBase
 

Static Protected Attributes

static NodePtr NullNode
 

Detailed Description

One node representing one of <root/patient/study/series>

Intended for use by cx::DICOMModel Children are constructed lazily, using the fetchMore system from QAbstractItemModel.

Date
2014-05-27
Author
Christian Askeland

Definition at line 38 of file cxDicomModelNode.h.

Constructor & Destructor Documentation

cx::DicomModelNode::DicomModelNode ( )

Definition at line 66 of file cxDicomModelNode.cpp.

virtual cx::DicomModelNode::~DicomModelNode ( )
inlinevirtual

Definition at line 45 of file cxDicomModelNode.h.

Member Function Documentation

bool cx::DicomModelNode::canFetchMore ( ) const

Definition at line 88 of file cxDicomModelNode.cpp.

NodePtr cx::DicomModelNode::createNode ( int  row,
DicomModelNode parent,
QSharedPointer< ctkDICOMDatabase >  dataBase 
)
static

Definition at line 31 of file cxDicomModelNode.cpp.

DicomImageReaderPtr cx::DicomModelNode::createReader ( ) const

Definition at line 105 of file cxDicomModelNode.cpp.

virtual void cx::DicomModelNode::fillChildrenUids ( )
pure virtual
QString cx::DicomModelNode::format_date ( ) const
inline

Definition at line 59 of file cxDicomModelNode.h.

QString cx::DicomModelNode::format_time ( ) const
inline

Definition at line 60 of file cxDicomModelNode.h.

QStringList cx::DicomModelNode::getChildrenUID ( ) const
inline

uids of all loaded and unloaded children.

Definition at line 68 of file cxDicomModelNode.h.

QVariant cx::DicomModelNode::getDefaultName ( ) const
inline

Definition at line 58 of file cxDicomModelNode.h.

NodePtr cx::DicomModelNode::getFetchedChildForRow ( int  row) const

Definition at line 98 of file cxDicomModelNode.cpp.

const std::vector<NodePtr>& cx::DicomModelNode::getFetchedChildren ( ) const
inline

all children currently loaded (filled by fetchMore())

Definition at line 67 of file cxDicomModelNode.h.

virtual QString cx::DicomModelNode::getFirstDICOMFilename ( ) const
inlinevirtual
QStringList cx::DicomModelNode::getHeaders ( ) const

Definition at line 77 of file cxDicomModelNode.cpp.

virtual QVariant cx::DicomModelNode::getImageCount ( ) const
inlinevirtual

Reimplemented in cx::SeriesDicomModelNode.

Definition at line 56 of file cxDicomModelNode.h.

virtual QVariant cx::DicomModelNode::getModality ( ) const
inlinevirtual

Reimplemented in cx::SeriesDicomModelNode.

Definition at line 55 of file cxDicomModelNode.h.

virtual QVariant cx::DicomModelNode::getName ( ) const
inlinevirtual
NodePtr cx::DicomModelNode::getNullNode ( )
static

Definition at line 19 of file cxDicomModelNode.cpp.

DicomModelNode* cx::DicomModelNode::getParent ( ) const
inline

Definition at line 66 of file cxDicomModelNode.h.

int cx::DicomModelNode::getRow ( ) const

Definition at line 148 of file cxDicomModelNode.cpp.

virtual QVariant cx::DicomModelNode::getTimestamp ( ) const
inlinevirtual
QString cx::DicomModelNode::getUid ( ) const
inline

Definition at line 64 of file cxDicomModelNode.h.

QVariant cx::DicomModelNode::getUncachedValue ( int  column) const
protected

Definition at line 122 of file cxDicomModelNode.cpp.

QVariant cx::DicomModelNode::getValue ( int  column) const

Definition at line 111 of file cxDicomModelNode.cpp.

bool cx::DicomModelNode::hasChildren ( ) const

Definition at line 93 of file cxDicomModelNode.cpp.

bool cx::DicomModelNode::isNull ( ) const
inline

Definition at line 73 of file cxDicomModelNode.h.

void cx::DicomModelNode::removeChild ( int  index)

Definition at line 135 of file cxDicomModelNode.cpp.

Member Data Documentation

std::map<int, QVariant> cx::DicomModelNode::CachedValues
mutableprotected

Definition at line 83 of file cxDicomModelNode.h.

QStringList cx::DicomModelNode::ChildrenUID
protected

uids of all loaded and unloaded children.

Definition at line 80 of file cxDicomModelNode.h.

QSharedPointer<ctkDICOMDatabase> cx::DicomModelNode::DataBase
protected

Definition at line 84 of file cxDicomModelNode.h.

std::vector<NodePtr> cx::DicomModelNode::FetchedChildren
protected

all children currently loaded (filled by fetchMore())

Definition at line 79 of file cxDicomModelNode.h.

NodePtr cx::DicomModelNode::NullNode
staticprotected

Definition at line 85 of file cxDicomModelNode.h.

DicomModelNode* cx::DicomModelNode::Parent
protected

Definition at line 78 of file cxDicomModelNode.h.

QString cx::DicomModelNode::UID
protected

Definition at line 82 of file cxDicomModelNode.h.


The documentation for this class was generated from the following files: