pqCameraReaction.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 pqCameraReaction_h
5 #define pqCameraReaction_h
6 
7 #include "pqReaction.h"
8 
15 {
16  Q_OBJECT
17  typedef pqReaction Superclass;
18 
19 public:
20  enum Mode
21  {
34  RESET_CAMERA_CLOSEST
35  };
36 
37  pqCameraReaction(QAction* parent, Mode mode);
38 
39  static void resetCamera(bool closest = false);
40  static void resetPositiveX();
41  static void resetPositiveY();
42  static void resetPositiveZ();
43  static void resetNegativeX();
44  static void resetNegativeY();
45  static void resetNegativeZ();
46  static void resetDirection(
47  double look_x, double look_y, double look_z, double up_x, double up_y, double up_z);
48  static void zoomToData(bool closest = false);
49  static void rotateCamera(double angle);
50  static void applyIsometricView();
51 
52 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
57  void updateEnableState() override;
58 
59 protected:
63  void onTriggered() override;
64 
65 private:
66  Q_DISABLE_COPY(pqCameraReaction)
67  Mode ReactionMode;
68 };
69 
70 #endif
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
pqCameraReaction has the logic to handle common operations associated with the camera such as reset v...
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46