Medical Imaging Interaction Toolkit  2023.04.00
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 () override
 
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 28 of file berryPerspectiveListModel.h.

Member Enumeration Documentation

◆ Role

Enumerator
Id 
Description 

Definition at line 34 of file berryPerspectiveListModel.h.

Constructor & Destructor Documentation

◆ PerspectiveListModel()

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

◆ ~PerspectiveListModel()

berry::PerspectiveListModel::~PerspectiveListModel ( )
override

Member Function Documentation

◆ data()

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

◆ headerData()

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

◆ index()

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

◆ perspectiveDescriptor()

SmartPointer<IPerspectiveDescriptor> berry::PerspectiveListModel::perspectiveDescriptor ( const QModelIndex &  index) const

◆ perspectiveName()

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

◆ rowCount()

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

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