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 34 of file pqCustomFilterDefinitionModel.h.
◆ ItemType
◆ pqCustomFilterDefinitionModel()
pqCustomFilterDefinitionModel::pqCustomFilterDefinitionModel |
( |
QObject * |
parent = nullptr | ) |
|
◆ ~pqCustomFilterDefinitionModel()
pqCustomFilterDefinitionModel::~pqCustomFilterDefinitionModel |
( |
| ) |
|
|
override |
◆ rowCount()
int pqCustomFilterDefinitionModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
Gets the number of rows for a given index.
- Parameters
-
- Returns
- The number of rows for the given index.
◆ columnCount()
int pqCustomFilterDefinitionModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
Gets the number of columns for a given index.
- Parameters
-
- Returns
- The number of columns for the given index.
◆ hasChildren()
bool pqCustomFilterDefinitionModel::hasChildren |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
Gets whether or not the given index has child items.
- Parameters
-
- Returns
- True if the given index has child items.
◆ index()
QModelIndex pqCustomFilterDefinitionModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
|
override |
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()
QModelIndex pqCustomFilterDefinitionModel::parent |
( |
const QModelIndex & |
index | ) |
const |
|
override |
Gets the parent for a given index.
- Parameters
-
- Returns
- A model index for the parent of the given index.
◆ data()
QVariant pqCustomFilterDefinitionModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
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()
Qt::ItemFlags pqCustomFilterDefinitionModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
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()
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()
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: