38 #ifndef _pqPipelineModel_h 39 #define _pqPipelineModel_h 41 #include "pqComponentsModule.h" 44 #include "vtkSmartPointer.h" 45 #include <QAbstractItemModel> 49 class pqPipelineModelFilter;
50 class pqPipelineModelInternal;
51 class pqPipelineModelItem;
52 class pqPipelineModelOutput;
53 class pqPipelineModelSource;
61 class ModifiedLiveInsituLink;
82 class pqPipelineModelInternal;
88 class pqPipelineModelDataItem;
116 AnnotationFilterRole = 33,
117 SessionFilterRole = 34
152 virtual int rowCount(
const QModelIndex& parent = QModelIndex())
const;
161 virtual int columnCount(
const QModelIndex& parent = QModelIndex())
const;
170 virtual bool hasChildren(
const QModelIndex& parent = QModelIndex())
const;
181 virtual QModelIndex index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const;
190 virtual QModelIndex parent(
const QModelIndex& index)
const;
200 virtual QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
207 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole);
219 virtual Qt::ItemFlags flags(
const QModelIndex& index)
const;
242 ItemType getTypeFor(
const QModelIndex& index)
const;
266 void setSelectable(
const QModelIndex& index,
bool selectable);
275 bool isSelectable(
const QModelIndex& index)
const;
294 QModelIndex getNextIndex(
const QModelIndex index,
const QModelIndex& root = QModelIndex())
const;
306 void setModifiedFont(
const QFont& font);
315 void enableFilterAnnotationKey(
const QString& expectedAnnotation);
323 void disableFilterAnnotationKey();
332 void enableFilterSession(
vtkSession* session);
340 void disableFilterSession();
352 void removeServer(
pqServer* server);
382 void setView(
pqView* module);
385 void firstChildAdded(
const QModelIndex& index);
388 void onInsituConnectionInitiated(
pqServer* server);
390 void serverDataChanged();
402 void delayedUpdateVisibilityTimeout();
408 void updateDataServer(
pqServer* server);
411 friend class pqPipelineModelDataItem;
417 void addChild(pqPipelineModelDataItem* parent, pqPipelineModelDataItem* child);
423 void removeChildFromParent(pqPipelineModelDataItem* child);
427 pqPipelineModelDataItem* subtreeRoot,
ItemType type = Invalid)
const;
431 void itemDataChanged(pqPipelineModelDataItem*);
435 void setSubtreeSelectable(pqPipelineModelDataItem* item,
bool selectable);
437 QModelIndex getIndex(pqPipelineModelDataItem* item)
const;
440 pqPipelineModelInternal* Internal;
442 QPointer<pqView> View;
444 QString FilterRoleAnnotationKey;
446 ModifiedLiveInsituLink* LinkCallback;
449 friend class ModifiedLiveInsituLink;
void setEditable(bool editable)
Sets whether or not the model indexes are editable.
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
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...