The pqCustomFilterDefinitionModel class stores the sources that define a compound proxy in a hierarchical format.
More...
#include <pqCustomFilterDefinitionModel.h>
Inherits QAbstractItemModel.
The pqCustomFilterDefinitionModel class stores the sources that define a compound proxy in a hierarchical format.
The hierarchical format is similar to the pqPipelineModel. The custom filter definition model contains only sources. It does not include any server objects, since the custom filter must be defined on one server.
Definition at line 61 of file pqCustomFilterDefinitionModel.h.
§ ItemType
§ pqCustomFilterDefinitionModel()
pqCustomFilterDefinitionModel::pqCustomFilterDefinitionModel |
( |
QObject * |
parent = 0 | ) |
|
§ ~pqCustomFilterDefinitionModel()
virtual pqCustomFilterDefinitionModel::~pqCustomFilterDefinitionModel |
( |
| ) |
|
|
virtual |
§ rowCount()
virtual int pqCustomFilterDefinitionModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
Gets the number of rows for a given index.
- Parameters
-
- Returns
- The number of rows for the given index.
§ columnCount()
virtual int pqCustomFilterDefinitionModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
Gets the number of columns for a given index.
- Parameters
-
- Returns
- The number of columns for the given index.
§ hasChildren()
virtual bool pqCustomFilterDefinitionModel::hasChildren |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
Gets whether or not the given index has child items.
- Parameters
-
- Returns
- True if the given index has child items.
§ index()
virtual QModelIndex pqCustomFilterDefinitionModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
|
virtual |
Gets a model index for a given location.
- Parameters
-
row | The row number. |
column | The column number. |
parent | The parent index. |
- Returns
- A model index for the given location.
§ parent()
virtual QModelIndex pqCustomFilterDefinitionModel::parent |
( |
const QModelIndex & |
index | ) |
const |
|
virtual |
Gets the parent for a given index.
- Parameters
-
- Returns
- A model index for the parent of the given index.
§ data()
virtual QVariant pqCustomFilterDefinitionModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
Gets the data for a given model index.
- Parameters
-
index | The model index. |
role | The role to get data for. |
- Returns
- The data for the given model index.
§ flags()
virtual Qt::ItemFlags pqCustomFilterDefinitionModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
virtual |
Gets the flags for a given model index.
The flags for an item indicate if it is enabled, editable, etc.
- Parameters
-
- Returns
- The flags for the given model index.
§ setContents()
void pqCustomFilterDefinitionModel::setContents |
( |
const pqProxySelection & |
items | ) |
|
Sets the contents of the custom filter definition model.
The items
are added to the custom filter definition model in a hierarchy similar to the pipeline model. Only the items in the list are added to the hierarchy.
- Parameters
-
items | The list of selected model items. |
§ getNextIndex()
QModelIndex pqCustomFilterDefinitionModel::getNextIndex |
( |
const QModelIndex & |
index | ) |
const |
Gets the next index in the model's tree hierarchy.
- Parameters
-
index | The current model index. |
- Returns
- A model index for the next item in the hierarchy.
§ getSourceFor()
pqPipelineSource* pqCustomFilterDefinitionModel::getSourceFor |
( |
const QModelIndex & |
index | ) |
const |
Gets the source associated with an index.
- Parameters
-
index | The model index to look up. |
- Returns
- A pointer to the source object or null if there is none.
The documentation for this class was generated from the following file: