pqToggleInteractionViewMode.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 pqToggleInteractionViewMode_h
5 #define pqToggleInteractionViewMode_h
6 
7 #include "pqReaction.h"
8 #include <QPointer>
9 
10 class pqView;
11 
17 {
18  Q_OBJECT
19  typedef pqReaction Superclass;
20 
21 public:
22  pqToggleInteractionViewMode(QAction* parent, pqView* view = nullptr);
23 
24 protected:
28  void onTriggered() override;
29 
30 public Q_SLOTS:
31  void updateInteractionLabel(int interactionMode);
32 
33 private:
34  Q_DISABLE_COPY(pqToggleInteractionViewMode)
35  QPointer<pqView> View;
36 };
37 
38 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46
pqToggleInteractionViewMode is a reaction that toggle 2D/3D interaction mode