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
;
43
int
locMatProj
,
locMatModel
,
locMatObject
;
44
int
locLightPos1
,
locColor
,
ambient
,
eye
;
45
int
locAxis
;
46
};
47
48
}
// namespace GUI::RealSpace
49
50
#endif
// BORNAGAIN_GUI_BA3D_VIEW_PROGRAM_H
GUI::RealSpace::Camera
Definition:
camera.h:28
GUI::RealSpace::Canvas
Definition:
canvas.h:34
GUI::RealSpace::Program
Definition:
program.h:26
GUI::RealSpace::Program::ambient
int ambient
Definition:
program.h:44
GUI::RealSpace::Program::Program
Program()
Definition:
program.cpp:30
GUI::RealSpace::Program::doInit
bool doInit
Definition:
program.h:42
GUI::RealSpace::Program::eye
int eye
Definition:
program.h:44
GUI::RealSpace::Program::locMatObject
int locMatObject
Definition:
program.h:43
GUI::RealSpace::Program::set
void set(Camera const &)
Definition:
program.cpp:77
GUI::RealSpace::Program::locColor
int locColor
Definition:
program.h:44
GUI::RealSpace::Program::setAxis
void setAxis(bool const &)
Definition:
program.cpp:101
GUI::RealSpace::Program::locMatModel
int locMatModel
Definition:
program.h:43
GUI::RealSpace::Program::locLightPos1
int locLightPos1
Definition:
program.h:44
GUI::RealSpace::Program::locMatProj
int locMatProj
Definition:
program.h:43
GUI::RealSpace::Program::setMatModel
void setMatModel(QMatrix4x4 const &)
Definition:
program.cpp:96
GUI::RealSpace::Program::locAxis
int locAxis
Definition:
program.h:45
GUI::RealSpace::Program::init
void init()
Definition:
program.cpp:43
GUI::RealSpace::Program::needsInit
void needsInit()
Definition:
program.cpp:38
def.h
Definitions in namespace GUI::RealSpace.
GUI::RealSpace
Definition:
def.cpp:20
GUI
ba3d
view
program.h
Generated by
1.9.1