pqCustomFilterDefinitionWizard.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: pqCustomFilterDefinitionWizard.h
5 
6  Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
7  All rights reserved.
8 
9  ParaView is a free software; you can redistribute it and/or modify it
10  under the terms of the ParaView license version 1.2.
11 
12  See License_v1.2.txt for the full ParaView license.
13  A copy of this license can be obtained by contacting
14  Kitware Inc.
15  28 Corporate Drive
16  Clifton Park, NY 12065
17  USA
18 
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
23 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 ========================================================================*/
32 
38 #ifndef _pqCustomFilterDefinitionWizard_h
39 #define _pqCustomFilterDefinitionWizard_h
40 
41 #include "pqComponentsModule.h"
42 #include <QDialog>
43 
45 class pqCustomFilterDefinitionWizardForm;
47 class pqOutputPort;
48 class QModelIndex;
50 
83 {
84  Q_OBJECT
85 
86 public:
96 
103  pqCustomFilterDefinitionModel* getModel() const { return this->Model; }
104 
113  QString getCustomFilterName() const;
114 
115 public Q_SLOTS:
126  void createCustomFilter();
127 
128 private:
141  void addAutoIncludedProxies();
142 
153  bool validateCustomFilterName();
154 
162  void setupDefaultInputOutput();
163 
164 private Q_SLOTS:
172  void navigateBack();
173 
177  void navigateNext();
178 
182  void finishWizard();
183 
189  void clearNameOverwrite(const QString& text);
191 
206  void updateInputForm(const QModelIndex& current, const QModelIndex& previous);
207 
214  void updateOutputForm(const QModelIndex& current, const QModelIndex& previous);
215 
227  void updatePropertyForm(const QModelIndex& current, const QModelIndex& previous);
229 
237  void addInput();
238 
242  void removeInput();
243 
247  void moveInputUp();
248 
252  void moveInputDown();
254 
262  void addOutput();
263 
267  void removeOutput();
268 
272  void moveOutputUp();
273 
277  void moveOutputDown();
279 
287  void addProperty();
288 
292  void removeProperty();
293 
297  void movePropertyUp();
298 
302  void movePropertyDown();
304 
315  void updateInputButtons(const QModelIndex& current, const QModelIndex& previous);
316 
323  void updateOutputButtons(const QModelIndex& current, const QModelIndex& previous);
324 
331  void updatePropertyButtons(const QModelIndex& current, const QModelIndex& previous);
333 
334 private:
335  int CurrentPage;
336  bool OverwriteOK;
337  vtkSMCompoundSourceProxy* Filter;
339  pqCustomFilterDefinitionWizardForm* Form;
340 
344  void addOutputInternal(pqOutputPort* port, const QString& string);
345 };
346 
347 #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:58
#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