Medical Imaging Interaction Toolkit  2022.04.99-3f7a773b
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


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 ( )

Member Function Documentation

◆ data()

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

◆ headerData()

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

◆ 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

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