23 #ifndef pqPipelineModel_h 24 #define pqPipelineModel_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);
292 void enableFilterSession(
vtkSession* session);
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);
365 void onInsituConnectionInitiated(
pqServer* server);
367 void serverDataChanged();
379 void delayedUpdateVisibilityTimeout();
385 void updateDataServer(
pqServer* server);
388 friend class pqPipelineModelDataItem;
394 void addChild(pqPipelineModelDataItem* parent, pqPipelineModelDataItem* child);
400 void removeChildFromParent(pqPipelineModelDataItem* child);
404 pqPipelineModelDataItem* subtreeRoot,
ItemType type = Invalid)
const;
408 void itemDataChanged(pqPipelineModelDataItem*);
412 void setSubtreeSelectable(pqPipelineModelDataItem* item,
bool selectable);
414 QModelIndex getIndex(pqPipelineModelDataItem* item)
const;
423 bool checkAndLoadPipelinePixmap(
const QString& iconType);
425 pqPipelineModelInternal* Internal;
426 QMap<QString, QPixmap> PixmapMap;
427 QPointer<pqView> View;
429 bool FilterAnnotationMatching;
430 QString FilterRoleAnnotationKey;
432 ModifiedLiveInsituLink* LinkCallback;
435 friend class ModifiedLiveInsituLink;
void setEditable(bool editable)
Sets whether or not the model indexes are editable.
#define PQCOMPONENTS_EXPORT
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...