51 #ifndef pqPipelineModel_h 52 #define pqPipelineModel_h 54 #include "pqComponentsModule.h" 57 #include <QAbstractItemModel> 61 class ModifiedLiveInsituLink;
65 class pqPipelineModelDataItem;
66 class pqPipelineModelInternal;
98 AnnotationFilterRole = 33,
99 SessionFilterRole = 34
134 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
143 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
152 bool hasChildren(
const QModelIndex& parent = QModelIndex())
const override;
163 QModelIndex
index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
172 QModelIndex parent(
const QModelIndex& index)
const override;
182 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
189 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole)
override;
201 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
224 ItemType getTypeFor(
const QModelIndex& index)
const;
248 void setSelectable(
const QModelIndex& index,
bool selectable);
257 bool isSelectable(
const QModelIndex& index)
const;
276 QModelIndex getNextIndex(
const QModelIndex index,
const QModelIndex& root = QModelIndex())
const;
288 void setModifiedFont(
const QFont& font);
297 void enableFilterAnnotationKey(
const QString& expectedAnnotation);
305 void disableFilterAnnotationKey();
310 void setAnnotationFilterMatching(
bool matching);
319 void enableFilterSession(
vtkSession* session);
327 void disableFilterSession();
339 void removeServer(
pqServer* server);
369 void setView(
pqView* module);
372 void firstChildAdded(
const QModelIndex& index);
375 void onInsituConnectionInitiated(
pqServer* server);
377 void serverDataChanged();
389 void delayedUpdateVisibilityTimeout();
395 void updateDataServer(
pqServer* server);
398 friend class pqPipelineModelDataItem;
404 void addChild(pqPipelineModelDataItem* parent, pqPipelineModelDataItem* child);
410 void removeChildFromParent(pqPipelineModelDataItem* child);
414 pqPipelineModelDataItem* subtreeRoot,
ItemType type = Invalid)
const;
418 void itemDataChanged(pqPipelineModelDataItem*);
422 void setSubtreeSelectable(pqPipelineModelDataItem* item,
bool selectable);
424 QModelIndex getIndex(pqPipelineModelDataItem* item)
const;
433 bool checkAndLoadPipelinePixmap(
const QString& iconType);
436 pqPipelineModelInternal* Internal;
437 QMap<QString, QPixmap> PixmapMap;
438 QPointer<pqView> View;
440 bool FilterAnnotationMatching;
441 QString FilterRoleAnnotationKey;
443 ModifiedLiveInsituLink* LinkCallback;
446 friend class ModifiedLiveInsituLink;
void setEditable(bool editable)
Sets whether or not the model indexes are editable.
pqView * view() const
Provides access to the view.
pqServerManagerModelItem is a element maintained by pqServerManagerModel.
This is a PQ abstraction of a generic view module.
bool isEditable() const
Gets whether or not the model indexes are editable.
This class is the model for the PipelineLine browser tree view.
pqServerManagerModel is the model for the Server Manager.
PQ representation for a vtkSMProxy that can be involved in a pipeline.
vtkSession defines a session i.e.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...