Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::PerspectiveListModel Class Reference

#include <berryPerspectiveListModel.h>

Inheritance diagram for berry::PerspectiveListModel:
Collaboration diagram for berry::PerspectiveListModel:

Public Types

enum  Role { Id, Description }
 

Public Member Functions

 PerspectiveListModel (IPerspectiveRegistry &perspReg, bool markDefault=true, QObject *parent=nullptr)
 
 ~PerspectiveListModel ()
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
QString perspectiveName (const QModelIndex &index) const
 
SmartPointer< IPerspectiveDescriptorperspectiveDescriptor (const QModelIndex &index) const
 
QModelIndex index (const QString &perspId) const
 

Detailed Description

Definition at line 32 of file berryPerspectiveListModel.h.

Member Enumeration Documentation

Enumerator
Id 
Description 

Definition at line 38 of file berryPerspectiveListModel.h.

Constructor & Destructor Documentation

berry::PerspectiveListModel::PerspectiveListModel ( IPerspectiveRegistry perspReg,
bool  markDefault = true,
QObject *  parent = nullptr 
)

Definition at line 42 of file berryPerspectiveListModel.cpp.

berry::PerspectiveListModel::~PerspectiveListModel ( )

Definition at line 48 of file berryPerspectiveListModel.cpp.

Member Function Documentation

QVariant berry::PerspectiveListModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

Definition at line 57 of file berryPerspectiveListModel.cpp.

References Description, and Id.

QVariant berry::PerspectiveListModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override

Definition at line 97 of file berryPerspectiveListModel.cpp.

QModelIndex berry::PerspectiveListModel::index ( const QString &  perspId) const

Definition at line 121 of file berryPerspectiveListModel.cpp.

IPerspectiveDescriptor::Pointer berry::PerspectiveListModel::perspectiveDescriptor ( const QModelIndex &  index) const

Definition at line 116 of file berryPerspectiveListModel.cpp.

QString berry::PerspectiveListModel::perspectiveName ( const QModelIndex &  index) const

Definition at line 109 of file berryPerspectiveListModel.cpp.

int berry::PerspectiveListModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 52 of file berryPerspectiveListModel.cpp.


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