BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
program.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/ba3d/view/program.h
6 //! @brief Defines Program class
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_BA3D_VIEW_PROGRAM_H
16 #define BORNAGAIN_GUI_BA3D_VIEW_PROGRAM_H
17 
18 #include "GUI/ba3d/def.h"
19 #include <QOpenGLShaderProgram>
20 
21 namespace GUI::RealSpace {
22 
23 class Camera;
24 class Canvas;
25 
26 class Program : public QOpenGLShaderProgram {
27  friend class Canvas;
28 
29 public:
30  Program();
31 
32 private:
33  void needsInit(); // mark as needed init
34  void init(); // inits, if needed
35 
36  void set(Camera const&);
37  void set(QColor const&); // object color
38  void set(QMatrix4x4 const&); // set matObject
39  void setMatModel(QMatrix4x4 const&); // set matModel
40  void setAxis(bool const&);
41 
42  bool doInit;
45  int locAxis;
46 };
47 
48 } // namespace GUI::RealSpace
49 
50 #endif // BORNAGAIN_GUI_BA3D_VIEW_PROGRAM_H
void set(Camera const &)
Definition: program.cpp:77
void setAxis(bool const &)
Definition: program.cpp:101
void setMatModel(QMatrix4x4 const &)
Definition: program.cpp:96
Definitions in namespace GUI::RealSpace.