pqCustomFilterDefinitionWizard.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 
10 #ifndef pqCustomFilterDefinitionWizard_h
11 #define pqCustomFilterDefinitionWizard_h
12 
13 #include "pqComponentsModule.h"
14 #include <QDialog>
15 
17 class pqCustomFilterDefinitionWizardForm;
19 class pqOutputPort;
20 class QModelIndex;
22 
55 {
56  Q_OBJECT
57 
58 public:
66  pqCustomFilterDefinitionWizard(pqCustomFilterDefinitionModel* model, QWidget* parent = nullptr);
68 
75  pqCustomFilterDefinitionModel* getModel() const { return this->Model; }
76 
85  QString getCustomFilterName() const;
86 
87 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
98  void createCustomFilter();
99 
100 private:
113  void addAutoIncludedProxies();
114 
125  bool validateCustomFilterName();
126 
134  void setupDefaultInputOutput();
135 
136 private Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
140 
144  void navigateBack();
145 
149  void navigateNext();
150 
154  void finishWizard();
155 
161  void clearNameOverwrite(const QString& text);
163 
167 
178  void updateInputForm(const QModelIndex& current, const QModelIndex& previous);
179 
186  void updateOutputForm(const QModelIndex& current, const QModelIndex& previous);
187 
199  void updatePropertyForm(const QModelIndex& current, const QModelIndex& previous);
201 
205 
209  void addInput();
210 
214  void removeInput();
215 
219  void moveInputUp();
220 
224  void moveInputDown();
226 
230 
234  void addOutput();
235 
239  void removeOutput();
240 
244  void moveOutputUp();
245 
249  void moveOutputDown();
251 
255 
259  void addProperty();
260 
264  void removeProperty();
265 
269  void movePropertyUp();
270 
274  void movePropertyDown();
276 
280 
287  void updateInputButtons(const QModelIndex& current, const QModelIndex& previous);
288 
295  void updateOutputButtons(const QModelIndex& current, const QModelIndex& previous);
296 
303  void updatePropertyButtons(const QModelIndex& current, const QModelIndex& previous);
305 
306 private: // NOLINT(readability-redundant-access-specifiers)
307  int CurrentPage;
308  bool OverwriteOK;
309  vtkSMCompoundSourceProxy* Filter;
311  pqCustomFilterDefinitionWizardForm* Form;
312 
316  void addOutputInternal(pqOutputPort* port, const QString& string);
317 };
318 
319 #endif
The pqCustomFilterDefinitionModel class stores the sources that define a compound proxy in a hierarch...
pqOutputPort is a server manager model item for an output port of any pqPipelineSource item...
Definition: pqOutputPort.h:29
#define PQCOMPONENTS_EXPORT
previous
The pqCustomFilterDefinitionWizard class is used to create a compound proxy definition one step at a ...
The pqCustomFilterManagerModel class stores the list of registered pipeline custom filter definitions...
pqCustomFilterDefinitionModel * getModel() const
Gets the custom filter definition model used by the wizard.
a proxy excapsulation a pipeline of proxies.
port