|
ParaView
|
pqSignalAdaptorCompositeTreeWidget is used to connect a property with vtkSMCompositeTreeDomain as its domain to a Tree widget. More...
#include <pqSignalAdaptorCompositeTreeWidget.h>
Public Types | |
| enum | IndexModes { INDEX_MODE_FLAT, INDEX_MODE_LEVEL_INDEX, INDEX_MODE_LEVEL } |
Public Slots | |
| void | setValues (const QList< QVariant > &values) |
| Set the values. | |
| void | domainChanged () |
| Called when domain changes. | |
| void | portInformationChanged () |
| Called when the output port says that the data information has been updated. | |
Signals | |
| void | valuesChanged () |
| Fired when the widget value changes. | |
Public Member Functions | |
| pqSignalAdaptorCompositeTreeWidget (QTreeWidget *, vtkSMIntVectorProperty *smproperty, bool autoUpdateWidgetVisibility=false, bool showSelectedElementCounts=false) | |
| Constructor. | |
| pqSignalAdaptorCompositeTreeWidget (QTreeWidget *, vtkSMOutputPort *outputport, int domainMode, IndexModes indexMode=INDEX_MODE_FLAT, bool selectMultiple=false, bool autoUpdateWidgetVisibility=false, bool showSelectedElementCounts=false) | |
| Alternate constructor. | |
| virtual | ~pqSignalAdaptorCompositeTreeWidget () |
| Destructor. | |
| QList< QVariant > | values () const |
| Returns the current value. | |
| void | setAutoUpdateWidgetVisibility (bool val) |
| When set, the adaptor will update the visibility of the widget depending on whether the data is composite or not. | |
| bool | autoUpdateWidgetVisibility () const |
| void | select (unsigned int flatIndex) |
| Select the item with the given flat index. | |
| unsigned int | getCurrentFlatIndex (bool *valid=NULL) |
| API to get information about the currently selected item. | |
| QString | blockName (const QTreeWidgetItem *item) const |
| API to get information about an item. | |
| unsigned int | hierarchicalLevel (const QTreeWidgetItem *item) const |
| API to get information about an item. | |
| unsigned int | hierarchicalBlockIndex (const QTreeWidgetItem *item) const |
| API to get information about an item. | |
| unsigned int | flatIndex (const QTreeWidgetItem *item) const |
| API to get information about an item. | |
Properties | |
| QList< QVariant > | values |
Friends | |
| class | pqCallbackAdaptor |
pqSignalAdaptorCompositeTreeWidget is used to connect a property with vtkSMCompositeTreeDomain as its domain to a Tree widget.
It updates the tree to show composite data tree. Caveats: This widget does not handle SINGLE_ITEM selection where non-leaves are acceptable.
Definition at line 53 of file pqSignalAdaptorCompositeTreeWidget.h.
Definition at line 60 of file pqSignalAdaptorCompositeTreeWidget.h.
| pqSignalAdaptorCompositeTreeWidget::pqSignalAdaptorCompositeTreeWidget | ( | QTreeWidget * | , |
| vtkSMIntVectorProperty * | smproperty, | ||
| bool | autoUpdateWidgetVisibility = false, |
||
| bool | showSelectedElementCounts = false |
||
| ) |
Constructor.
domain is used to build the tree layout to show in the widget. autoUpdateWidgetVisibility - is true, the tree widget is hidden if the data information says that the data is not composite. showSelectedElementCounts - when true, next to each leaf node, an entry will be added showing the number of selected elements (cells|points).
| pqSignalAdaptorCompositeTreeWidget::pqSignalAdaptorCompositeTreeWidget | ( | QTreeWidget * | , |
| vtkSMOutputPort * | outputport, | ||
| int | domainMode, | ||
| IndexModes | indexMode = INDEX_MODE_FLAT, |
||
| bool | selectMultiple = false, |
||
| bool | autoUpdateWidgetVisibility = false, |
||
| bool | showSelectedElementCounts = false |
||
| ) |
Alternate constructor.
outputport - the output port producing the composite dataset to show. domainMode - vtkSMCompositeTreeDomain::ALL|LEAVES|NON_LEAVES|NONE. Indicates what types of nodes in the composite tree are selectable. indexMode - indicates how the values are set/get (using composite-flat-index, using level-dataset-index or using only the level number. selectMultiple - true if possible to select multiple nodes. autoUpdateWidgetVisibility - is true, the tree widget is hidden if the data information says that the data is not composite. showSelectedElementCounts - when true, next to each leaf node, an entry will be added showing the number of selected elements (cells|points).
| virtual pqSignalAdaptorCompositeTreeWidget::~pqSignalAdaptorCompositeTreeWidget | ( | ) | [virtual] |
Destructor.
| QList<QVariant> pqSignalAdaptorCompositeTreeWidget::values | ( | ) | const |
Returns the current value.
This is a QList of unsigned ints.
| void pqSignalAdaptorCompositeTreeWidget::setAutoUpdateWidgetVisibility | ( | bool | val | ) | [inline] |
When set, the adaptor will update the visibility of the widget depending on whether the data is composite or not.
Definition at line 111 of file pqSignalAdaptorCompositeTreeWidget.h.
| bool pqSignalAdaptorCompositeTreeWidget::autoUpdateWidgetVisibility | ( | ) | const [inline] |
Definition at line 113 of file pqSignalAdaptorCompositeTreeWidget.h.
| void pqSignalAdaptorCompositeTreeWidget::select | ( | unsigned int | flatIndex | ) |
Select the item with the given flat index.
| unsigned int pqSignalAdaptorCompositeTreeWidget::getCurrentFlatIndex | ( | bool * | valid = NULL | ) |
API to get information about the currently selected item.
Returns the flat index for the current item.
| QString pqSignalAdaptorCompositeTreeWidget::blockName | ( | const QTreeWidgetItem * | item | ) | const |
API to get information about an item.
Returns the block name for the item.
| unsigned int pqSignalAdaptorCompositeTreeWidget::hierarchicalLevel | ( | const QTreeWidgetItem * | item | ) | const |
API to get information about an item.
Returns the AMR level for the item if valid.
| unsigned int pqSignalAdaptorCompositeTreeWidget::hierarchicalBlockIndex | ( | const QTreeWidgetItem * | item | ) | const |
API to get information about an item.
Returns the AMR block number for the item if valid.
| unsigned int pqSignalAdaptorCompositeTreeWidget::flatIndex | ( | const QTreeWidgetItem * | item | ) | const |
API to get information about an item.
Returns the flat index for the item.
| void pqSignalAdaptorCompositeTreeWidget::setValues | ( | const QList< QVariant > & | values | ) | [slot] |
Set the values.
| void pqSignalAdaptorCompositeTreeWidget::domainChanged | ( | ) | [slot] |
Called when domain changes.
| void pqSignalAdaptorCompositeTreeWidget::portInformationChanged | ( | ) | [slot] |
Called when the output port says that the data information has been updated.
| void pqSignalAdaptorCompositeTreeWidget::valuesChanged | ( | ) | [signal] |
Fired when the widget value changes.
friend class pqCallbackAdaptor [friend] |
Definition at line 225 of file pqSignalAdaptorCompositeTreeWidget.h.
QList<QVariant> pqSignalAdaptorCompositeTreeWidget::values [read, write] |
Definition at line 58 of file pqSignalAdaptorCompositeTreeWidget.h.
1.7.5.1