pqCustomViewpointsController.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 
5 #ifndef pqCustomViewpointsController_h
6 #define pqCustomViewpointsController_h
7 
9 
10 #include <QObject>
11 
13 
21 {
22  Q_OBJECT
23  typedef QObject Superclass;
24 
25 public:
26  pqCustomViewpointsController(QObject* parent = nullptr)
27  : Superclass(parent)
28  {
29  }
30 
31  ~pqCustomViewpointsController() override = default;
32 
38  void setToolbar(pqCustomViewpointsToolbar* toolbar);
39 
43  pqCustomViewpointsToolbar* getToolbar() const { return this->Toolbar; }
44 
49  virtual QStringList getCustomViewpointToolTips() = 0;
50 
54  virtual void configureCustomViewpoints() = 0;
55 
59  virtual void setToCurrentViewpoint(int index) = 0;
60 
64  virtual void applyCustomViewpoint(int index) = 0;
65 
69  virtual void deleteCustomViewpoint(int index) = 0;
70 
74  virtual void addCurrentViewpointToCustomViewpoints() = 0;
75 
76 private:
77  pqCustomViewpointsToolbar* Toolbar = nullptr;
78 };
79 
80 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqCustomViewpointsController(QObject *parent=nullptr)
Base class for custom viewpoints controllers.
pqCustomViewpointsToolbar * getToolbar() const
Get the toolbar controlled by this
index