LVRAnimationDialog.hpp
Go to the documentation of this file.
1 
28 #ifndef ANIMATIONDIALOG_H_
29 #define ANIMATIONDIALOG_H_
30 
31 #include <vtkRenderer.h>
32 #include <vtkSmartPointer.h>
33 #include <vtkCamera.h>
34 #include <vtkCameraRepresentation.h>
35 #include <vtkCameraInterpolator.h>
36 #include <vtkCommand.h>
37 #include <vtkRendererCollection.h>
38 #include <vtkRenderWindow.h>
39 #include <vtkRenderWindowInteractor.h>
40 #include <vtkWindowToImageFilter.h>
41 
42 #include <QtWidgets>
43 #include "ui_LVRAnimationDialogUI.h"
44 #include "LVRRecordedFrameItem.hpp"
45 
46 using Ui::AnimationDialog;
47 
48 namespace lvr2
49 {
50 
51 class LVRAnimationDialog : public QObject
52 {
53  Q_OBJECT
54 
55 public:
56  LVRAnimationDialog(vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor, vtkSmartPointer<vtkCameraRepresentation> pathCamera, QTreeWidget* treeWidget);
57  virtual ~LVRAnimationDialog();
58 
59 public Q_SLOTS:
60  void addFrame();
61  void removeFrame();
62  void clearFrames();
63  void changeInterpolation(const QString& text);
64  void savePath();
65  void loadPath();
66  void saveVideo();
67  void play();
68  void goToCamPosition(QListWidgetItem *item);
69 
70 private:
72 
73 
74  AnimationDialog* m_dialog;
75  QListWidget* m_timeline;
76  vtkSmartPointer<vtkRenderWindowInteractor> m_renderWindowInteractor;
77  vtkSmartPointer<vtkCameraRepresentation> m_pathCamera;
78  vtkSmartPointer<vtkCamera> m_mainCamera;
79  QTreeWidget* m_treeWidget;
80  unsigned int m_frameCounter;
81 };
82 
83 } // namespace lvr2
84 
85 #endif /* ANIMATIONDIALOG_H_ */
LVRAnimationDialog(vtkSmartPointer< vtkRenderWindowInteractor > renderWindowInteractor, vtkSmartPointer< vtkCameraRepresentation > pathCamera, QTreeWidget *treeWidget)
void changeInterpolation(const QString &text)
void goToCamPosition(QListWidgetItem *item)
vtkSmartPointer< vtkRenderWindowInteractor > m_renderWindowInteractor
vtkSmartPointer< vtkCameraRepresentation > m_pathCamera
vtkSmartPointer< vtkCamera > m_mainCamera


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:08