pqKeyFrameEditor.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 pqKeyFrameEditor_h
6 #define pqKeyFrameEditor_h
7 
8 #include "pqComponentsModule.h"
9 #include <QDialog>
10 #include <QWidget>
11 
12 class pqAnimationCue;
13 class pqAnimationScene;
14 class QStandardItem;
15 
19 class PQCOMPONENTS_EXPORT pqKeyFrameEditor : public QWidget
20 {
21  typedef QWidget Superclass;
22 
23  Q_OBJECT
24 
25 public:
26  pqKeyFrameEditor(pqAnimationScene* scene, pqAnimationCue* cue, const QString& label, QWidget* p);
27  ~pqKeyFrameEditor() override;
28 
35  void setValuesOnly(bool);
36  bool valuesOnly() const;
37 
38 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
42  void readKeyFrameData();
46  void writeKeyFrameData();
47 
48 Q_SIGNALS:
49  void modified();
50 
51 private Q_SLOTS:
52  void newKeyFrame();
53  void deleteKeyFrame();
54  void deleteAllKeyFrames();
55 
56  void updateButtons();
57 
61  void useCurrentCamera(QStandardItem* item);
62  void useCurrentCameraForSelected();
63  void updateCurrentCamera(QStandardItem* item);
64  void updateCurrentCameraWithSelected();
65  void createOrbitalKeyFrame();
66  void importTrajectory();
67  void exportTrajectory();
68  void updateSplineMode();
69 
70 private: // NOLINT(readability-redundant-access-specifiers)
71  class pqInternal;
72  pqInternal* Internal;
73 };
74 
75 // internal class
76 class pqKeyFrameEditorDialog : public QDialog
77 {
78  Q_OBJECT
79 public:
80  pqKeyFrameEditorDialog(QWidget* p, QWidget* child);
81  ~pqKeyFrameEditorDialog() override;
82  QWidget* Child;
83 };
84 
85 #endif
#define PQCOMPONENTS_EXPORT
editor for editing animation key frames
pqAnimationCue is the pqProxy wrapping an animation proxy.
pqAnimationScene is a representation for a vtkSMAnimationScene proxy.