The Painter class Includes the rendering process, thus creating the whole picture. The Painter will be used by QML within rendering thread.
More...
#include <painter.h>
|
void | paint () |
| Starts rendering and paints the whole picture. More...
|
|
|
void | initializeDone () |
| This signal is emitted if initialization of all required resources for current scene are initialized. The signal is emitted every time if previous scene was deleted and a new scene was synchronized. More...
|
|
The Painter class Includes the rendering process, thus creating the whole picture. The Painter will be used by QML within rendering thread.
Painter::Painter |
( |
PainterQML * |
painter, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
Constructor of Painter.
- Parameters
-
painter | Corresponding QML-Painter. Will be informed about finished rendering. |
parent | QObject-parent |
Destructor. Will delete all rendering related classes and resources.
void Painter::clearScene |
( |
| ) |
|
Clears the scene and removes all not anymore required resources.
void Painter::handleInitializeDone |
( |
| ) |
|
|
protectedslot |
void Painter::initialize |
( |
| ) |
|
|
protected |
Initializes all required resources, that are direct members of painter (scene independent resources). This method is executed within first paint.
void Painter::initializeDone |
( |
| ) |
|
|
signal |
This signal is emitted if initialization of all required resources for current scene are initialized. The signal is emitted every time if previous scene was deleted and a new scene was synchronized.
void Painter::initializeFBOs |
( |
| ) |
|
|
protected |
void Painter::initializeShaderPrograms |
( |
| ) |
|
|
protected |
bool Painter::isActive |
( |
| ) |
const |
Checks if Painter is active. Active means the painter is rendering.
- Returns
- Active state of painter.
Starts rendering and paints the whole picture.
void Painter::renderLightRays |
( |
const Camera & |
camera | ) |
|
|
protected |
void Painter::renderScene |
( |
const Camera & |
camera | ) |
|
|
protected |
void Painter::setActive |
( |
bool |
active | ) |
|
Sets Active state. If active is true the painter renders the picture.
- Parameters
-
void Painter::synchronizeScene |
( |
Scene * |
scene | ) |
|
Painter copies all needed information of scene into own thread.
- Parameters
-
scene | The scene that should be synchronized. If nullptr is passed it is like clearScene() |
void Painter::updateEnvMap |
( |
| ) |
|
Updates environment map using config file.
int Painter::m_blurViewportRatioPreviewScene |
|
protected |
int Painter::m_blurViewportRatioScene |
|
protected |
CubeMap* Painter::m_gemStructureMap |
|
protected |
QOpenGLFunctions* Painter::m_gl |
|
protected |
uint Painter::m_glowPreviewSceneDepthRB |
|
protected |
uint Painter::m_glowPreviewSceneFBO |
|
protected |
uint Painter::m_glowPreviewSceneTexture |
|
protected |
uint Painter::m_glowSceneDepthRB |
|
protected |
uint Painter::m_glowSceneFBO |
|
protected |
uint Painter::m_glowSceneTexture |
|
protected |
bool Painter::m_initialized |
|
protected |
int Painter::m_oldElapsed |
|
protected |
Camera* Painter::m_previewCamera |
|
protected |
uint Painter::m_previewSceneDepthRB |
|
protected |
uint Painter::m_previewSceneFBO |
|
protected |
uint Painter::m_previewSceneTexture |
|
protected |
uint Painter::m_sceneDepthRB |
|
protected |
uint Painter::m_sceneTexture |
|
protected |
QSize* Painter::m_usedViewport |
|
protected |
The documentation for this class was generated from the following files: