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_ */
lvr2::LVRBackgroundDialog::m_color2
QColor m_color2
Definition: LVRBackgroundDialog.hpp:72
lvr2::LVRBackgroundDialog::color2Changed
void color2Changed()
Definition: LVRBackgroundDialog.cpp:69
lvr2::LVRBackgroundDialog::~LVRBackgroundDialog
virtual ~LVRBackgroundDialog()
Definition: LVRBackgroundDialog.cpp:96
lvr2::color
Definition: DataStruct.hpp:81
lvr2::LVRBackgroundDialog::getColor1
void getColor1(float &r, float &g, float &b)
Definition: LVRBackgroundDialog.cpp:77
lvr2::LVRBackgroundDialog::m_renderWindow
vtkSmartPointer< vtkRenderWindow > m_renderWindow
Definition: LVRBackgroundDialog.hpp:69
lvr2::LVRBackgroundDialog::renderGradient
bool renderGradient()
Definition: LVRBackgroundDialog.cpp:91
lvr2::LVRBackgroundDialog::m_color1
QColor m_color1
Definition: LVRBackgroundDialog.hpp:71
lvr2::LVRBackgroundDialog::updateColorBox
void updateColorBox(QFrame *box, QColor color)
Definition: LVRBackgroundDialog.cpp:53
lvr2::LVRBackgroundDialog
Definition: LVRBackgroundDialog.hpp:50
lvr2::LVRBackgroundDialog::LVRBackgroundDialog
LVRBackgroundDialog(vtkSmartPointer< vtkRenderWindow > renderWindow)
Definition: LVRBackgroundDialog.cpp:39
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::LVRBackgroundDialog::m_ui
BackgroundDialogUI * m_ui
Definition: LVRBackgroundDialog.hpp:70
lvr2::LVRBackgroundDialog::getColor2
void getColor2(float &r, float &g, float &b)
Definition: LVRBackgroundDialog.cpp:84
lvr2::LVRBackgroundDialog::color1Changed
void color1Changed()
Definition: LVRBackgroundDialog.cpp:61


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