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;
16 class pqTestUtility;
17 class QMenu;
18 class QWidget;
19 
26 {
27  Q_OBJECT
29 
30 public:
31  pqPVApplicationCore(int& argc, char** argv, vtkCLIOptions* options = nullptr,
32  bool addStandardArgs = true, QObject* parent = nullptr);
33  ~pqPVApplicationCore() override;
34 
40  {
41  return qobject_cast<pqPVApplicationCore*>(Superclass::instance());
42  }
43 
49  pqSelectionManager* selectionManager() const;
50 
54  // animation subsystem -- saving movies, creating scenes etc.
55  pqAnimationManager* animationManager() const;
56 
60  pqTestUtility* testUtility() override;
61 
66  pqPythonManager* pythonManager() const;
67 
74  virtual void registerForQuicklaunch(QWidget*);
75 
76  void loadStateFromPythonFile(const QString& filename, pqServer* server,
77  vtkTypeUInt32 location = 0x10 /*vtkPVSession::CLIENT*/);
78 
79 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
84  void applyPipeline();
85 
89  void quickLaunch();
90 
95  void startSearch();
96 
97 Q_SIGNALS:
103  void aboutToShowQuickLaunch();
104 
105  void triggerApply();
106 
107 protected:
111  bool eventFilter(QObject* obj, QEvent* event) override;
112 
113  QPointer<pqSelectionManager> SelectionManager;
114  QPointer<pqAnimationManager> AnimationManager;
115 
117  QList<QPointer<QWidget>> QuickLaunchMenus;
118 
119 private:
120  Q_DISABLE_COPY(pqPVApplicationCore)
121 };
122 
123 #endif
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...
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.