NorMIT-nav  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
 
DicomModelNode * getParent () const
 
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

DicomModelNode * Parent
 
std::vector< NodePtr > FetchedChildren
 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

◆ DicomModelNode()

cx::DicomModelNode::DicomModelNode ( )

Definition at line 66 of file cxDicomModelNode.cpp.

◆ ~DicomModelNode()

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

Definition at line 45 of file cxDicomModelNode.h.

Member Function Documentation

◆ canFetchMore()

bool cx::DicomModelNode::canFetchMore ( ) const

Definition at line 88 of file cxDicomModelNode.cpp.

◆ createNode()

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

Definition at line 31 of file cxDicomModelNode.cpp.

◆ createReader()

DicomImageReaderPtr cx::DicomModelNode::createReader ( ) const

Definition at line 105 of file cxDicomModelNode.cpp.

◆ fillChildrenUids()

virtual void cx::DicomModelNode::fillChildrenUids ( )
pure virtual

◆ format_date()

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

Definition at line 59 of file cxDicomModelNode.h.

◆ format_time()

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

Definition at line 60 of file cxDicomModelNode.h.

◆ getDefaultName()

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

Definition at line 58 of file cxDicomModelNode.h.

◆ getFetchedChildForRow()

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

Definition at line 98 of file cxDicomModelNode.cpp.

◆ getFirstDICOMFilename()

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

◆ getHeaders()

QStringList cx::DicomModelNode::getHeaders ( ) const

Definition at line 77 of file cxDicomModelNode.cpp.

◆ getImageCount()

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

Reimplemented in cx::SeriesDicomModelNode.

Definition at line 56 of file cxDicomModelNode.h.

◆ getModality()

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

Reimplemented in cx::SeriesDicomModelNode.

Definition at line 55 of file cxDicomModelNode.h.

◆ getName()

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

◆ getNullNode()

NodePtr cx::DicomModelNode::getNullNode ( )
static

Definition at line 19 of file cxDicomModelNode.cpp.

◆ getParent()

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

Definition at line 66 of file cxDicomModelNode.h.

◆ getRow()

int cx::DicomModelNode::getRow ( ) const

Definition at line 148 of file cxDicomModelNode.cpp.

◆ getTimestamp()

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

◆ getType()

◆ getUid()

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

Definition at line 64 of file cxDicomModelNode.h.

◆ getUncachedValue()

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

Definition at line 122 of file cxDicomModelNode.cpp.

◆ getValue()

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

Definition at line 111 of file cxDicomModelNode.cpp.

◆ hasChildren()

bool cx::DicomModelNode::hasChildren ( ) const

Definition at line 93 of file cxDicomModelNode.cpp.

◆ isNull()

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

Definition at line 73 of file cxDicomModelNode.h.

◆ removeChild()

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

Definition at line 135 of file cxDicomModelNode.cpp.

Member Data Documentation

◆ CachedValues

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

Definition at line 83 of file cxDicomModelNode.h.

◆ ChildrenUID

QStringList cx::DicomModelNode::ChildrenUID
protected

uids of all loaded and unloaded children.

Definition at line 80 of file cxDicomModelNode.h.

◆ DataBase

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

Definition at line 84 of file cxDicomModelNode.h.

◆ FetchedChildren

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

all children currently loaded (filled by fetchMore())

Definition at line 79 of file cxDicomModelNode.h.

◆ NullNode

NodePtr cx::DicomModelNode::NullNode
staticprotected

Definition at line 85 of file cxDicomModelNode.h.

◆ Parent

DicomModelNode* cx::DicomModelNode::Parent
protected

Definition at line 78 of file cxDicomModelNode.h.

◆ UID

QString cx::DicomModelNode::UID
protected

Definition at line 82 of file cxDicomModelNode.h.


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