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_ */
lvr2::LVRAnimationDialog::loadPath
void loadPath()
Definition: LVRAnimationDialog.cpp:182
lvr2::LVRAnimationDialog::m_treeWidget
QTreeWidget * m_treeWidget
Definition: LVRAnimationDialog.hpp:79
lvr2::LVRAnimationDialog::m_renderWindowInteractor
vtkSmartPointer< vtkRenderWindowInteractor > m_renderWindowInteractor
Definition: LVRAnimationDialog.hpp:76
lvr2::LVRAnimationDialog::m_timeline
QListWidget * m_timeline
Definition: LVRAnimationDialog.hpp:75
lvr2::LVRAnimationDialog::play
void play()
Definition: LVRAnimationDialog.cpp:135
lvr2::LVRAnimationDialog::goToCamPosition
void goToCamPosition(QListWidgetItem *item)
Definition: LVRAnimationDialog.cpp:78
lvr2::LVRAnimationDialog::m_frameCounter
unsigned int m_frameCounter
Definition: LVRAnimationDialog.hpp:80
lvr2::LVRAnimationDialog::addFrame
void addFrame()
Definition: LVRAnimationDialog.cpp:103
lvr2::LVRAnimationDialog
Definition: LVRAnimationDialog.hpp:51
LVRRecordedFrameItem.hpp
lvr2::LVRAnimationDialog::LVRAnimationDialog
LVRAnimationDialog(vtkSmartPointer< vtkRenderWindowInteractor > renderWindowInteractor, vtkSmartPointer< vtkCameraRepresentation > pathCamera, QTreeWidget *treeWidget)
Definition: LVRAnimationDialog.cpp:40
lvr2::LVRAnimationDialog::savePath
void savePath()
Definition: LVRAnimationDialog.cpp:156
lvr2::LVRAnimationDialog::removeFrame
void removeFrame()
Definition: LVRAnimationDialog.cpp:110
lvr2::LVRAnimationDialog::connectSignalsAndSlots
void connectSignalsAndSlots()
Definition: LVRAnimationDialog.cpp:64
lvr2::LVRAnimationDialog::saveVideo
void saveVideo()
Definition: LVRAnimationDialog.cpp:253
lvr2::LVRAnimationDialog::m_pathCamera
vtkSmartPointer< vtkCameraRepresentation > m_pathCamera
Definition: LVRAnimationDialog.hpp:77
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::LVRAnimationDialog::changeInterpolation
void changeInterpolation(const QString &text)
Definition: LVRAnimationDialog.cpp:122
lvr2::LVRAnimationDialog::~LVRAnimationDialog
virtual ~LVRAnimationDialog()
Definition: LVRAnimationDialog.cpp:59
lvr2::LVRAnimationDialog::clearFrames
void clearFrames()
Definition: LVRAnimationDialog.cpp:116
lvr2::LVRAnimationDialog::m_mainCamera
vtkSmartPointer< vtkCamera > m_mainCamera
Definition: LVRAnimationDialog.hpp:78
lvr2::LVRAnimationDialog::m_dialog
AnimationDialog * m_dialog
Definition: LVRAnimationDialog.hpp:74


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 Wed Mar 2 2022 00:37:24