pqPVApplicationCore.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: pqPVApplicationCore.h
5 
6  Copyright (c) 2005,2006 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 #ifndef pqPVApplicationCore_h
33 #define pqPVApplicationCore_h
34 
35 #include "pqApplicationCore.h"
36 
37 #include "pqApplicationComponentsModule.h" // for exports
38 #include "vtkParaViewDeprecation.h" // for PARAVIEW_DEPRECATED_IN_5_10_0
39 #include <QList>
40 #include <QPointer>
41 
42 class pqAnimationManager;
43 class pqPythonManager;
44 class pqSelectionManager;
45 class pqTestUtility;
46 class QMenu;
47 class QWidget;
48 
55 {
56  Q_OBJECT
58 
59 public:
60  pqPVApplicationCore(int& argc, char** argv, vtkCLIOptions* options = nullptr,
61  bool addStandardArgs = true, QObject* parent = nullptr);
62  ~pqPVApplicationCore() override;
63 
67  PARAVIEW_DEPRECATED_IN_5_10_0("Use the `vtkCLIOptions` overload")
68  pqPVApplicationCore(int& argc, char** argv, pqOptions* options);
69 
75  {
76  return qobject_cast<pqPVApplicationCore*>(Superclass::instance());
77  }
78 
84  pqSelectionManager* selectionManager() const;
85 
89  // animation subsystem -- saving movies, creating scenes etc.
90  pqAnimationManager* animationManager() const;
91 
95  pqTestUtility* testUtility() override;
96 
101  pqPythonManager* pythonManager() const;
102 
109  virtual void registerForQuicklaunch(QWidget*);
110 
111  void loadStateFromPythonFile(const QString& filename, pqServer* server);
112 
113 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
118  void applyPipeline();
119 
123  void quickLaunch();
124 
129  void startSearch();
130 
131 Q_SIGNALS:
137  void aboutToShowQuickLaunch();
138 
139  void triggerApply();
140 
141 protected:
145  bool eventFilter(QObject* obj, QEvent* event) override;
146 
147  QPointer<pqSelectionManager> SelectionManager;
148  QPointer<pqAnimationManager> AnimationManager;
149 
151  QList<QPointer<QWidget>> QuickLaunchMenus;
152 
153 private:
154  Q_DISABLE_COPY(pqPVApplicationCore)
155 };
156 
157 #endif
#define PARAVIEW_DEPRECATED_IN_5_10_0(reason)
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:58
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...
Command line options for pqClient.
Definition: pqOptions.h:45
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:63
virtual pqTestUtility * testUtility()
Provides access to the test utility.