QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgsmeshdataset.h>
Public Member Functions | |
QgsMeshDatasetGroupTreeItem () | |
Constructor for an empty dataset group tree item. More... | |
QgsMeshDatasetGroupTreeItem (const QDomElement &itemElement, const QgsReadWriteContext &context) | |
Constructor from a DOM element, contruct also the children. More... | |
QgsMeshDatasetGroupTreeItem (const QString &defaultName, bool isVector, int index) | |
Constructor. More... | |
~QgsMeshDatasetGroupTreeItem () | |
Destructor, destructs also the chilren. More... | |
void | appendChild (QgsMeshDatasetGroupTreeItem *item) |
Appends a item child. More... | |
QgsMeshDatasetGroupTreeItem * | child (int row) const |
Returns a child. More... | |
int | childCount () const |
Returns the count of children. More... | |
QgsMeshDatasetGroupTreeItem * | childFromDatasetGroupIndex (int index) |
Returns the child with dataset group index Searches as depper as needed on the child hierarchy. More... | |
QgsMeshDatasetGroupTreeItem * | clone () const |
Clones the item. More... | |
int | datasetGroupIndex () const |
QString | defaultName () const |
bool | isEnabled () const |
bool | isVector () const |
QString | name () const |
Returns the name of the item This mame is the default name if the name has not been overrided (. More... | |
QgsMeshDatasetGroupTreeItem * | parentItem () const |
Returns the parent item, nullptr if it is root item. More... | |
int | row () const |
Returns the position of the item in the parent. More... | |
void | setIsEnabled (bool isEnabled) |
Sets whether the item is enabled, that is if it is displayed in view. More... | |
void | setName (const QString &name) |
Overrides the default name with the name to display. More... | |
int | totalChildCount () const |
Returns the total count of children, that is included deeper children. More... | |
QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context) |
Write the item and its children in a DOM document. More... | |
Tree item for display of the mesh dataset groups. Dataset group is set of datasets with the same name, but different control variable (e.g. time)
Support for multiple levels, because groups can have subgroups, for example
Groups: Depth Minimum Maximum Velocity Wind speed Minimum Maximum
Definition at line 546 of file qgsmeshdataset.h.
|
default |
Constructor for an empty dataset group tree item.
QgsMeshDatasetGroupTreeItem::QgsMeshDatasetGroupTreeItem | ( | const QString & | defaultName, |
bool | isVector, | ||
int | index | ||
) |
Constructor.
defaultName | the name that will be used to display the item if iot not overrides ( |
isVector | whether the dataset group is a vector dataset group |
index | index of the dataset group |
Definition at line 439 of file qgsmeshdataset.cpp.
QgsMeshDatasetGroupTreeItem::QgsMeshDatasetGroupTreeItem | ( | const QDomElement & | itemElement, |
const QgsReadWriteContext & | context | ||
) |
Constructor from a DOM element, contruct also the children.
itemElement | the DOM element |
context | writing context (e.g. for conversion between relative and absolute paths) |
Definition at line 448 of file qgsmeshdataset.cpp.
QgsMeshDatasetGroupTreeItem::~QgsMeshDatasetGroupTreeItem | ( | ) |
Destructor, destructs also the chilren.
Definition at line 475 of file qgsmeshdataset.cpp.
void QgsMeshDatasetGroupTreeItem::appendChild | ( | QgsMeshDatasetGroupTreeItem * | item | ) |
Appends a item child.
item | the item to append |
Definition at line 493 of file qgsmeshdataset.cpp.
QgsMeshDatasetGroupTreeItem * QgsMeshDatasetGroupTreeItem::child | ( | int | row | ) | const |
Returns a child.
row | the position of the child |
Definition at line 500 of file qgsmeshdataset.cpp.
int QgsMeshDatasetGroupTreeItem::childCount | ( | ) | const |
Returns the count of children.
Definition at line 530 of file qgsmeshdataset.cpp.
QgsMeshDatasetGroupTreeItem * QgsMeshDatasetGroupTreeItem::childFromDatasetGroupIndex | ( | int | index | ) |
Returns the child with dataset group index Searches as depper as needed on the child hierarchy.
index | the index of the dataset group index |
Definition at line 508 of file qgsmeshdataset.cpp.
QgsMeshDatasetGroupTreeItem * QgsMeshDatasetGroupTreeItem::clone | ( | ) | const |
int QgsMeshDatasetGroupTreeItem::datasetGroupIndex | ( | ) | const |
Definition at line 572 of file qgsmeshdataset.cpp.
QString QgsMeshDatasetGroupTreeItem::defaultName | ( | ) | const |
Definition at line 587 of file qgsmeshdataset.cpp.
bool QgsMeshDatasetGroupTreeItem::isEnabled | ( | ) | const |
Definition at line 577 of file qgsmeshdataset.cpp.
bool QgsMeshDatasetGroupTreeItem::isVector | ( | ) | const |
Definition at line 567 of file qgsmeshdataset.cpp.
QString QgsMeshDatasetGroupTreeItem::name | ( | ) | const |
Returns the name of the item This mame is the default name if the name has not been overrided (.
Definition at line 559 of file qgsmeshdataset.cpp.
QgsMeshDatasetGroupTreeItem * QgsMeshDatasetGroupTreeItem::parentItem | ( | ) | const |
Returns the parent item, nullptr if it is root item.
Definition at line 546 of file qgsmeshdataset.cpp.
int QgsMeshDatasetGroupTreeItem::row | ( | ) | const |
Returns the position of the item in the parent.
Definition at line 551 of file qgsmeshdataset.cpp.
void QgsMeshDatasetGroupTreeItem::setIsEnabled | ( | bool | isEnabled | ) |
Sets whether the item is enabled, that is if it is displayed in view.
isEnabled | whether the item is enabled |
Definition at line 582 of file qgsmeshdataset.cpp.
void QgsMeshDatasetGroupTreeItem::setName | ( | const QString & | name | ) |
Overrides the default name with the name to display.
The default name is still stored in the item but will not be displayed anymore except if the empty string is setted.
name | to display |
Definition at line 609 of file qgsmeshdataset.cpp.
int QgsMeshDatasetGroupTreeItem::totalChildCount | ( | ) | const |
Returns the total count of children, that is included deeper children.
Definition at line 535 of file qgsmeshdataset.cpp.
QDomElement QgsMeshDatasetGroupTreeItem::writeXml | ( | QDomDocument & | doc, |
const QgsReadWriteContext & | context | ||
) |
Write the item and its children in a DOM document.
doc | the DOM document |
context | writing context (e.g. for conversion between relative and absolute paths) |
Definition at line 592 of file qgsmeshdataset.cpp.