|
ParaView
|
#include <pqDataInformationModel.h>
Public Slots | |
| void | addSource (pqPipelineSource *source) |
| Called when a new source/filter is registered. | |
| void | removeSource (pqPipelineSource *source) |
| Called when a new source/filter is unregistred. | |
| void | setActiveView (pqView *view) |
| Called when the active view changes. | |
Public Member Functions | |
| pqDataInformationModel (QObject *_parent=NULL) | |
| virtual | ~pqDataInformationModel () |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| QAbstractTableModel API. | |
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QAbstractTableModel API. | |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| QAbstractTableModel API. | |
| virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| QAbstractTableModel API. | |
| QModelIndex | getIndexFor (pqOutputPort *item) const |
| Given a pqOutputPort, get the index for it, if present in this model, otherwise returns invalid index. | |
| pqOutputPort * | getItemFor (const QModelIndex &index) const |
| Given a valid index, returns the pqOutputPort item corresponding to it. | |
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| Method needed for copy/past cell editor. | |
| virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
Definition at line 43 of file pqDataInformationModel.h.
| pqDataInformationModel::pqDataInformationModel | ( | QObject * | _parent = NULL | ) |
| virtual pqDataInformationModel::~pqDataInformationModel | ( | ) | [virtual] |
| virtual int pqDataInformationModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const [virtual] |
QAbstractTableModel API.
Returns the number of rows under the given parent.
| virtual int pqDataInformationModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const [virtual] |
QAbstractTableModel API.
Returns the number of columns for the given parent.
| virtual QVariant pqDataInformationModel::data | ( | const QModelIndex & | index, |
| int | role = Qt::DisplayRole |
||
| ) | const [virtual] |
QAbstractTableModel API.
Returns the data stored under the given role for the item referred to by the index.
| virtual QVariant pqDataInformationModel::headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role = Qt::DisplayRole |
||
| ) | const [virtual] |
QAbstractTableModel API.
Returns the data for the given role and section in the header with the specified orientation.
| QModelIndex pqDataInformationModel::getIndexFor | ( | pqOutputPort * | item | ) | const |
Given a pqOutputPort, get the index for it, if present in this model, otherwise returns invalid index.
| pqOutputPort* pqDataInformationModel::getItemFor | ( | const QModelIndex & | index | ) | const |
Given a valid index, returns the pqOutputPort item corresponding to it.
| virtual Qt::ItemFlags pqDataInformationModel::flags | ( | const QModelIndex & | index | ) | const [virtual] |
Method needed for copy/past cell editor.
| virtual bool pqDataInformationModel::setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | role = Qt::EditRole |
||
| ) | [virtual] |
| void pqDataInformationModel::addSource | ( | pqPipelineSource * | source | ) | [slot] |
Called when a new source/filter is registered.
| void pqDataInformationModel::removeSource | ( | pqPipelineSource * | source | ) | [slot] |
Called when a new source/filter is unregistred.
| void pqDataInformationModel::setActiveView | ( | pqView * | view | ) | [slot] |
Called when the active view changes.
Need to correctly show the geometry size for the source.
1.7.5.1