23 #ifndef pqPipelineModel_h 24 #define pqPipelineModel_h 26 #include "pqComponentsModule.h" 29 #include <QAbstractItemModel> 33 class ModifiedLiveInsituLink;
38 class pqPipelineModelDataItem;
39 class pqPipelineModelInternal;
72 AnnotationFilterRole = 33,
73 SessionFilterRole = 34
107 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
116 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
125 bool hasChildren(
const QModelIndex& parent = QModelIndex())
const override;
136 QModelIndex
index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
145 QModelIndex parent(
const QModelIndex& index)
const override;
155 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
162 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole)
override;
174 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
197 ItemType getTypeFor(
const QModelIndex& index)
const;
221 void setSelectable(
const QModelIndex&
index,
bool selectable);
230 bool isSelectable(
const QModelIndex& index)
const;
249 QModelIndex getNextIndex(QModelIndex index,
const QModelIndex& root = QModelIndex())
const;
261 void setModifiedFont(
const QFont& font);
270 void enableFilterAnnotationKey(
const QString& expectedAnnotation);
278 void disableFilterAnnotationKey();
283 void setAnnotationFilterMatching(
bool matching);
300 void disableFilterSession();
312 void removeServer(
pqServer* server);
358 void setView(
pqView* module);
361 void firstChildAdded(
const QModelIndex& index);
362 void childWithChildrenAdded(
const QModelIndex& index);
367 void sourceRenamed();
370 void onInsituConnectionInitiated(
pqServer* server);
372 void serverDataChanged();
384 void delayedUpdateVisibilityTimeout();
390 void updateDataServer(
pqServer* server);
393 friend class pqPipelineModelDataItem;
399 void addChild(pqPipelineModelDataItem* parent, pqPipelineModelDataItem* child);
405 void removeChildFromParent(pqPipelineModelDataItem* child);
409 pqPipelineModelDataItem* subtreeRoot,
ItemType type = Invalid)
const;
413 void itemDataChanged(pqPipelineModelDataItem*);
417 void setSubtreeSelectable(pqPipelineModelDataItem* item,
bool selectable);
419 QModelIndex getIndex(pqPipelineModelDataItem* item)
const;
428 bool checkAndLoadPipelinePixmap(
const QString& iconType);
430 pqPipelineModelInternal* Internal;
431 QMap<QString, QPixmap> PixmapMap;
432 QPointer<pqView> View;
434 bool FilterAnnotationMatching;
435 QString FilterRoleAnnotationKey;
437 ModifiedLiveInsituLink* LinkCallback;
440 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.
vtkPVSession defines a session i.e.
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.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...