Fraxinus  16.5.0-fx-rc8
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 59 of file cxDicomModelNode.h.

Constructor & Destructor Documentation

cx::DicomModelNode::DicomModelNode ( )

Definition at line 87 of file cxDicomModelNode.cpp.

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

Definition at line 66 of file cxDicomModelNode.h.

Member Function Documentation

bool cx::DicomModelNode::canFetchMore ( ) const

Definition at line 109 of file cxDicomModelNode.cpp.

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

Definition at line 52 of file cxDicomModelNode.cpp.

DicomImageReaderPtr cx::DicomModelNode::createReader ( ) const

Definition at line 126 of file cxDicomModelNode.cpp.

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

Definition at line 80 of file cxDicomModelNode.h.

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

Definition at line 81 of file cxDicomModelNode.h.

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

uids of all loaded and unloaded children.

Definition at line 89 of file cxDicomModelNode.h.

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

Definition at line 79 of file cxDicomModelNode.h.

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

Definition at line 119 of file cxDicomModelNode.cpp.

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

all children currently loaded (filled by fetchMore())

Definition at line 88 of file cxDicomModelNode.h.

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

Definition at line 98 of file cxDicomModelNode.cpp.

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

Reimplemented in cx::SeriesDicomModelNode.

Definition at line 77 of file cxDicomModelNode.h.

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

Reimplemented in cx::SeriesDicomModelNode.

Definition at line 76 of file cxDicomModelNode.h.

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

Definition at line 40 of file cxDicomModelNode.cpp.

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

Definition at line 87 of file cxDicomModelNode.h.

int cx::DicomModelNode::getRow ( ) const

Definition at line 169 of file cxDicomModelNode.cpp.

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

Definition at line 85 of file cxDicomModelNode.h.

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

Definition at line 143 of file cxDicomModelNode.cpp.

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

Definition at line 132 of file cxDicomModelNode.cpp.

bool cx::DicomModelNode::hasChildren ( ) const

Definition at line 114 of file cxDicomModelNode.cpp.

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

Definition at line 94 of file cxDicomModelNode.h.

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

Definition at line 156 of file cxDicomModelNode.cpp.

Member Data Documentation

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

Definition at line 104 of file cxDicomModelNode.h.

QStringList cx::DicomModelNode::ChildrenUID
protected

uids of all loaded and unloaded children.

Definition at line 101 of file cxDicomModelNode.h.

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

Definition at line 105 of file cxDicomModelNode.h.

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

all children currently loaded (filled by fetchMore())

Definition at line 100 of file cxDicomModelNode.h.

NodePtr cx::DicomModelNode::NullNode
staticprotected

Definition at line 106 of file cxDicomModelNode.h.

DicomModelNode* cx::DicomModelNode::Parent
protected

Definition at line 99 of file cxDicomModelNode.h.

QString cx::DicomModelNode::UID
protected

Definition at line 103 of file cxDicomModelNode.h.


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