-
Notifications
You must be signed in to change notification settings - Fork 0
/
swftSimplePipelineViewer.h
79 lines (55 loc) · 1.89 KB
/
swftSimplePipelineViewer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef SWFTSIMPLEPIPELINEVIEWER_H
#define SWFTSIMPLEPIPELINEVIEWER_H
#include <QWidget>
#include "pqComponentsModule.h"
#include "swftPipelineLeafListView.h"
#include <QModelIndex>
#include <QFrame>
class pqPipelineModel;
class pqPipelineAnnotationFilterModel;
class pqPipelineSource;
class pqView;
class vtkSession;
namespace Ui {
class swftSimplePipelineViewer;
}
class swftSimplePipelineViewer : public QWidget
{
Q_OBJECT
public:
explicit swftSimplePipelineViewer(QWidget *parent = 0);
~swftSimplePipelineViewer();
//Set the visibility of selected item
void setSelectionVisibility(bool visible);
//set Annotation filter to use
void enableAnnotationFilter(const QString &annotationKey);
// Disable any Annotation filter
void disableAnnotationFilter();
// set session filter to use
void enableSessionFilter(vtkSession * session);
// Disable any Session filter
void disableSessionFilter();
void updateData(const QModelIndex &topLeft, const QModelIndex &bottomRight);
QFrame *lineWidget(const QString name);
signals:
public slots:
// Set the Active view. By Default connected to
// pqActiveObjects::viewChanged() so it keeps track of the active view.
void setActiveView(pqView*);
protected slots:
void handleIndexClicked(const QModelIndex &index_);
void expandWithModelIndexTranslation(const QModelIndex &);
protected:
//sets te visibility for items in the indices list.
pqPipelineModel *PipelineModel;
pqPipelineAnnotationFilterModel *FilteredPipelineModel;
const QModelIndex pipelineModelIndex(const QModelIndex &index) const;
const pqPipelineModel *getPipelineModel(const QModelIndex &index) const;
//leaf list
swftPipelineLeafListView *leafList;
//population commands
void populateControls(pqView *view);
private:
Ui::swftSimplePipelineViewer *ui;
};
#endif // SWFTSIMPLEPIPELINEVIEWER_H