pqPVApplicationCore.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 pqPVApplicationCore_h
5 #define pqPVApplicationCore_h
6 
7 #include "pqApplicationCore.h"
8 
9 #include "pqApplicationComponentsModule.h" // for exports
10 #include <QList>
11 #include <QPointer>
12 
13 class pqAnimationManager;
14 class pqPythonManager;
15 class pqSelectionManager;
17 class pqTestUtility;
18 class QMenu;
19 class QWidget;
20 
27 {
28  Q_OBJECT
30 
31 public:
32  pqPVApplicationCore(int& argc, char** argv, vtkCLIOptions* options = nullptr,
33  bool addStandardArgs = true, QObject* parent = nullptr);
34  ~pqPVApplicationCore() override;
35 
41  {
42  return qobject_cast<pqPVApplicationCore*>(Superclass::instance());
43  }
44 
50  pqSelectionManager* selectionManager() const;
51 
56  pqAnimationManager* animationManager() const;
57 
61  pqTestUtility* testUtility() override;
62 
67  pqPythonManager* pythonManager() const;
68 
74  pqLiveSourceManager* liveSourceManager() const;
75 
82  virtual void registerForQuicklaunch(QWidget*);
83 
84  void loadStateFromPythonFile(const QString& filename, pqServer* server,
85  vtkTypeUInt32 location = 0x10 /*vtkPVSession::CLIENT*/);
86 
91  void instantiateLiveSourceManager();
92 
93 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
98  void applyPipeline();
99 
103  void quickLaunch();
104 
109  void startSearch();
110 
111 Q_SIGNALS:
117  void aboutToShowQuickLaunch();
118 
119  void triggerApply();
120 
121 protected:
125  bool eventFilter(QObject* obj, QEvent* event) override;
126 
127  QPointer<pqSelectionManager> SelectionManager;
128  QPointer<pqAnimationManager> AnimationManager;
129  QPointer<pqLiveSourceManager> LiveSourceManager;
130 
132  QList<QPointer<QWidget>> QuickLaunchMenus;
133 
134 private:
135  Q_DISABLE_COPY(pqPVApplicationCore)
136 };
137 
138 #endif
pqLiveSourceManager is the manager that handle all live sources in ParaView It is usually instantiate...
location
static pqPVApplicationCore * instance()
Returns the pqPVApplicationCore instance.
This class is the crux of the ParaView application.
QPointer< pqAnimationManager > AnimationManager
#define PQAPPLICATIONCOMPONENTS_EXPORT
command line options manager
Definition: vtkCLIOptions.h:46
pqAnimationManager manages the Animation sub-system.
pqSelectionManager is the nexus for introspective surface selection in paraview.
pqPythonManager is a class to facilitate the use of a python interpreter by various paraview GUI comp...
QPointer< pqLiveSourceManager > LiveSourceManager
QList< QPointer< QWidget > > QuickLaunchMenus
QPointer< pqSelectionManager > SelectionManager
pqPythonManager * PythonManager
pqPVApplicationCore is the application code used by ParaView-based applications that use more of Para...
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35
virtual pqTestUtility * testUtility()
Provides access to the test utility.