51 #ifndef pqPipelineModel_h 52 #define pqPipelineModel_h 57 #include <QAbstractItemModel> 61 class ModifiedLiveInsituLink;
66 class pqPipelineModelDataItem;
67 class pqPipelineModelInternal;
100 AnnotationFilterRole = 33,
101 SessionFilterRole = 34
136 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
145 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
154 bool hasChildren(
const QModelIndex& parent = QModelIndex())
const override;
165 QModelIndex
index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
174 QModelIndex parent(
const QModelIndex& index)
const override;
184 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
191 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole)
override;
203 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
226 ItemType getTypeFor(
const QModelIndex& index)
const;
250 void setSelectable(
const QModelIndex&
index,
bool selectable);
259 bool isSelectable(
const QModelIndex& index)
const;
278 QModelIndex getNextIndex(
const QModelIndex index,
const QModelIndex& root = QModelIndex())
const;
290 void setModifiedFont(
const QFont& font);
299 void enableFilterAnnotationKey(
const QString& expectedAnnotation);
307 void disableFilterAnnotationKey();
312 void setAnnotationFilterMatching(
bool matching);
321 void enableFilterSession(
vtkSession* session);
329 void disableFilterSession();
341 void removeServer(
pqServer* server);
387 void setView(
pqView* module);
390 void firstChildAdded(
const QModelIndex& index);
393 void onInsituConnectionInitiated(
pqServer* server);
395 void serverDataChanged();
407 void delayedUpdateVisibilityTimeout();
413 void updateDataServer(
pqServer* server);
416 friend class pqPipelineModelDataItem;
422 void addChild(pqPipelineModelDataItem* parent, pqPipelineModelDataItem* child);
428 void removeChildFromParent(pqPipelineModelDataItem* child);
432 pqPipelineModelDataItem* subtreeRoot,
ItemType type = Invalid)
const;
436 void itemDataChanged(pqPipelineModelDataItem*);
440 void setSubtreeSelectable(pqPipelineModelDataItem* item,
bool selectable);
442 QModelIndex getIndex(pqPipelineModelDataItem* item)
const;
451 bool checkAndLoadPipelinePixmap(
const QString& iconType);
454 pqPipelineModelInternal* Internal;
455 QMap<QString, QPixmap> PixmapMap;
456 QPointer<pqView> View;
458 bool FilterAnnotationMatching;
459 QString FilterRoleAnnotationKey;
461 ModifiedLiveInsituLink* LinkCallback;
464 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...