LVRBackgroundDialog.hpp
Go to the documentation of this file.
1 
34 #ifndef LVRBACKGROUNDDIALOG_HPP_
35 #define LVRBACKGROUNDDIALOG_HPP_
36 
37 #include <vtkSmartPointer.h>
38 #include <vtkRenderWindow.h>
39 
40 
41 #include <QColorDialog>
42 
43 #include "ui_LVRBackgroundDialogUI.h"
44 
45 using Ui::BackgroundDialogUI;
46 
47 namespace lvr2
48 {
49 
50 class LVRBackgroundDialog : public QDialog
51 {
52  Q_OBJECT
53 public:
54  LVRBackgroundDialog(vtkSmartPointer<vtkRenderWindow> renderWindow);
55  virtual ~LVRBackgroundDialog();
56 
57  void getColor1(float &r, float &g, float &b);
58  void getColor2(float &r, float &g, float &b);
59  bool renderGradient();
60 
61 public Q_SLOTS:
62  void color1Changed();
63  void color2Changed();
64 
65 private:
66 
67  void updateColorBox(QFrame* box, QColor color);
68 
69  vtkSmartPointer<vtkRenderWindow> m_renderWindow;
70  BackgroundDialogUI* m_ui;
71  QColor m_color1;
72  QColor m_color2;
73 };
74 
75 } /* namespace lvr2 */
76 
77 #endif /* LVRBACKGROUNDDIALOG_HPP_ */
void updateColorBox(QFrame *box, QColor color)
vtkSmartPointer< vtkRenderWindow > m_renderWindow
void getColor2(float &r, float &g, float &b)
void getColor1(float &r, float &g, float &b)
LVRBackgroundDialog(vtkSmartPointer< vtkRenderWindow > renderWindow)


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