32 #ifndef pqSignalAdaptorCompositeTreeWidget_h 33 #define pqSignalAdaptorCompositeTreeWidget_h 35 #include "pqComponentsModule.h" 41 class QTreeWidgetItem;
57 typedef QObject Superclass;
59 Q_PROPERTY(QList<QVariant> values READ values WRITE setValues)
79 bool autoUpdateWidgetVisibility =
false,
bool showSelectedElementCounts =
false);
99 IndexModes indexMode = INDEX_MODE_FLAT,
bool selectMultiple =
false,
100 bool autoUpdateWidgetVisibility =
false,
bool showSelectedElementCounts =
false);
111 QList<QVariant> values()
const;
123 void select(
unsigned int flatIndex);
129 unsigned int getCurrentFlatIndex(
bool* valid = NULL);
135 QString blockName(
const QTreeWidgetItem* item)
const;
141 unsigned int hierarchicalLevel(
const QTreeWidgetItem* item)
const;
147 unsigned int hierarchicalBlockIndex(
const QTreeWidgetItem* item)
const;
153 unsigned int flatIndex(
const QTreeWidgetItem* item)
const;
159 void setValues(
const QList<QVariant>& values);
164 void domainChanged();
170 void portInformationChanged();
176 void valuesChanged();
184 void updateSelectionCounts();
193 void setupSelectionUpdatedCallback(
vtkSMSourceProxy* source,
unsigned int port);
200 void updateItemFlags();
203 pqInternal* Internal;
207 FLAT_INDEX = Qt::UserRole,
208 AMR_LEVEL_NUMBER = Qt::UserRole + 1,
209 AMR_BLOCK_INDEX = Qt::UserRole + 2,
210 NODE_TYPE = Qt::UserRole + 3,
211 ORIGINAL_LABEL = Qt::UserRole + 4,
212 BLOCK_NAME = Qt::UserRole + 5
231 CheckModes CheckMode;
234 unsigned int FlatIndex;
235 unsigned int LevelNo;
237 bool AutoUpdateWidgetVisibility;
241 bool ShowSelectedElementCounts;
244 bool ShowDatasetsInMultiPiece;
249 void constructor(QTreeWidget* tree,
bool autoUpdateVisibility);
257 friend class pqCallbackAdaptor;
258 class pqCallbackAdaptor;
259 pqCallbackAdaptor* CallbackAdaptor;
property representing a vector of integers
proxy for a VTK source on a server
reference for an output port of a vtkAlgorithm.