pqApplyBehavior.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 #ifndef pqApplyBehavior_h
5 #define pqApplyBehavior_h
6 
8 #include <QObject>
9 #include <QScopedPointer>
10 
11 class pqPipelineFilter;
12 class pqPipelineSource;
13 class pqPropertiesPanel;
14 class pqProxy;
15 class pqView;
16 
33 {
34  Q_OBJECT
35  typedef QObject Superclass;
36 
37 public:
38  pqApplyBehavior(QObject* parent = nullptr);
39  ~pqApplyBehavior() override;
40 
42 
45  void registerPanel(pqPropertiesPanel* panel);
46  void unregisterPanel(pqPropertiesPanel* panel);
48 
49  static void hideInputIfRequired(pqPipelineFilter* filter, pqView* view);
50 
51 Q_SIGNALS:
52  void triggerApply();
53 
54 protected Q_SLOTS:
55  virtual void applied(pqPropertiesPanel* panel, pqProxy* proxy);
56  virtual void applied(pqPropertiesPanel* panel = nullptr);
57 
58 private Q_SLOTS:
59  void onApplied(pqProxy*);
60  void onApplied();
61  void onModified();
62  void onResetDone();
63 
64 protected:
65  virtual void showData(pqPipelineSource* source, pqView* view);
66 
67 private:
68  Q_DISABLE_COPY(pqApplyBehavior)
69  class pqInternals;
70  const QScopedPointer<pqInternals> Internals;
71 };
72 
73 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqPropertiesPanel is the default panel used by paraview to edit source properties and display propert...
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
source
This class represents any registered Server Manager proxy.
Definition: pqProxy.h:28
pqApplyBehavior collects the logic that needs to happen after the user hits "Apply" on the pqProperti...
PQ representation for a vtkSMProxy that can be involved in a pipeline.