36 #ifndef _pqPipelineModel_h 37 #define _pqPipelineModel_h 40 #include "pqComponentsModule.h" 43 #include "vtkSmartPointer.h" 44 #include <QAbstractItemModel> 50 class pqPipelineModelFilter;
51 class pqPipelineModelInternal;
52 class pqPipelineModelItem;
53 class pqPipelineModelOutput;
54 class pqPipelineModelSource;
62 class ModifiedLiveInsituLink;
81 class pqPipelineModelInternal;
87 class pqPipelineModelDataItem;
111 AnnotationFilterRole = 33,
112 SessionFilterRole = 34
134 virtual int rowCount(
const QModelIndex &parent=QModelIndex())
const;
146 virtual int columnCount(
const QModelIndex &parent=QModelIndex())
const;
153 virtual bool hasChildren(
const QModelIndex &parent=QModelIndex())
const;
162 virtual QModelIndex index(
int row,
int column,
163 const QModelIndex &parent=QModelIndex())
const;
170 virtual QModelIndex parent(
const QModelIndex &index)
const;
178 virtual QVariant data(
const QModelIndex &index,
179 int role=Qt::DisplayRole)
const;
184 bool setData(
const QModelIndex &index,
const QVariant& value,
185 int role = Qt::EditRole);
195 virtual Qt::ItemFlags flags(
const QModelIndex &index)
const;
213 ItemType getTypeFor(
const QModelIndex &index)
const;
231 void setSelectable(
const QModelIndex &index,
bool selectable);
238 bool isSelectable(
const QModelIndex &index)
const;
253 QModelIndex getNextIndex(
const QModelIndex index,
254 const QModelIndex &root=QModelIndex())
const;
258 {
return this->View; }
263 void setModifiedFont(
const QFont &font);
270 void enableFilterAnnotationKey(
const QString &expectedAnnotation);
276 void disableFilterAnnotationKey();
283 void enableFilterSession(vtkSession* session);
289 void disableFilterSession();
297 void removeServer(
pqServer *server);
317 void setView(
pqView *module);
320 void firstChildAdded(
const QModelIndex &index);
323 void onInsituConnectionInitiated(
pqServer* server);
325 void serverDataChanged();
333 void delayedUpdateVisibilityTimeout();
337 void updateDataServer(
pqServer* server);
340 friend class pqPipelineModelDataItem;
346 void addChild(pqPipelineModelDataItem* parent,
347 pqPipelineModelDataItem* child);
353 void removeChildFromParent(pqPipelineModelDataItem* child);
357 pqPipelineModelDataItem* subtreeRoot,
362 void itemDataChanged(pqPipelineModelDataItem*);
364 void setSubtreeSelectable(pqPipelineModelDataItem *item,
bool selectable);
366 QModelIndex getIndex(pqPipelineModelDataItem* item)
const;
368 pqPipelineModelInternal *Internal;
370 QPointer<pqView> View;
372 QString FilterRoleAnnotationKey;
373 vtkSession* FilterRoleSession;
374 ModifiedLiveInsituLink* LinkCallback;
377 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.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...