Public Slots | Public Member Functions | List of all members
pqDataInformationModel Class Reference

#include <pqDataInformationModel.h>

Inherits QAbstractTableModel.

Public Slots

void addSource (pqPipelineSource *source)
 Called when a new source/filter is registered. More...
 
void removeSource (pqPipelineSource *source)
 Called when a new source/filter is unregistered. More...
 
void setActiveView (pqView *view)
 Called when the active view changes. More...
 

Public Member Functions

 pqDataInformationModel (QObject *_parent=nullptr)
 
 ~pqDataInformationModel () override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 QAbstractTableModel API. More...
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 QAbstractTableModel API. More...
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 QAbstractTableModel API. More...
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 QAbstractTableModel API. More...
 
QModelIndex getIndexFor (pqOutputPort *item) const
 Given a pqOutputPort, get the index for it, if present in this model, otherwise returns invalid index. More...
 
pqOutputPortgetItemFor (const QModelIndex &index) const
 Given a valid index, returns the pqOutputPort item corresponding to it. More...
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 Method needed for copy/past cell editor. More...
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 

Detailed Description

Definition at line 15 of file pqDataInformationModel.h.

Constructor & Destructor Documentation

◆ pqDataInformationModel()

pqDataInformationModel::pqDataInformationModel ( QObject *  _parent = nullptr)

◆ ~pqDataInformationModel()

pqDataInformationModel::~pqDataInformationModel ( )
override

Member Function Documentation

◆ rowCount()

int pqDataInformationModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

QAbstractTableModel API.

Returns the number of rows under the given parent.

◆ columnCount()

int pqDataInformationModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

QAbstractTableModel API.

Returns the number of columns for the given parent.

◆ data()

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

QAbstractTableModel API.

Returns the data stored under the given role for the item referred to by the index.

◆ headerData()

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

QAbstractTableModel API.

Returns the data for the given role and section in the header with the specified orientation.

◆ getIndexFor()

QModelIndex pqDataInformationModel::getIndexFor ( pqOutputPort item) const

Given a pqOutputPort, get the index for it, if present in this model, otherwise returns invalid index.

◆ getItemFor()

pqOutputPort* pqDataInformationModel::getItemFor ( const QModelIndex &  index) const

Given a valid index, returns the pqOutputPort item corresponding to it.

◆ flags()

Qt::ItemFlags pqDataInformationModel::flags ( const QModelIndex &  index) const
override

Method needed for copy/past cell editor.

◆ setData()

bool pqDataInformationModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override

◆ addSource

void pqDataInformationModel::addSource ( pqPipelineSource source)
slot

Called when a new source/filter is registered.

◆ removeSource

void pqDataInformationModel::removeSource ( pqPipelineSource source)
slot

Called when a new source/filter is unregistered.

◆ setActiveView

void pqDataInformationModel::setActiveView ( pqView view)
slot

Called when the active view changes.

Need to correctly show the geometry size for the source.


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