Quantum Phenomena Explorer
7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
quantumgraphicspreset.h
Go to the documentation of this file.
1
/**
2
* @file quantumgraphicspreset.h
3
* @brief Declares the quantumgraphicspreset visualization component used by QPE.
4
* @ingroup qpe_graphics
5
*
6
* Source: @c graphics/renderer/quantumgraphicspreset.h. This file is part of Quantum Phenomena Explorer (QPE),
7
* maintained by Officina Turini. See LICENSE_IT.txt / LICENSE.txt for the
8
* QPE freeware source-available terms and THIRD_PARTY_NOTICES.txt for
9
* third-party components.
10
*/
11
12
#pragma once
13
14
namespace
qpe
{
15
16
/**
17
* @brief Enumerates the supported Quantum Graphics Preset Kind values.
18
*
19
* The enumeration is part of the typed interface used to keep experiment configuration and analysis routing explicit.
20
*/
21
enum class
QuantumGraphicsPresetKind
22
{
23
Scientific
= 0,
24
Presentation
= 1,
25
Cinematic
= 2
26
};
27
28
/**
29
* @brief Data structure used by the Quantum Graphics Preset Values component.
30
*
31
* The structure keeps related values explicit and testable across the QPE physics, analysis, or persistence layers.
32
*/
33
struct
QuantumGraphicsPresetValues
34
{
35
int
paletteIndex
= 0;
36
int
displayScaleIndex
= 0;
37
double
exposureEv
= 0.0;
38
double
gamma
= 1.0;
39
int
postPreviewIndex
= 0;
40
double
brightThreshold
= 0.72;
41
double
brightSoftKnee
= 0.08;
42
double
blurSpread
= 2.0;
43
double
bloomStrength
= 0.0;
44
int
toneMapIndex
= 0;
45
};
46
47
/**
48
* @brief Implements the Quantum Graphics Preset component.
49
*
50
* The class provides one focused service within the QPE architecture and is documented here independently of the experiment-level Help.
51
*/
52
class
QuantumGraphicsPreset
53
{
54
public
:
55
/**
56
* @brief Returns values.
57
* @param kind The kind value used by the operation.
58
*/
59
static
QuantumGraphicsPresetValues
values
(
QuantumGraphicsPresetKind
kind);
60
/**
61
* @brief Returns name.
62
* @param kind The kind value used by the operation.
63
*/
64
static
const
char
*
name
(
QuantumGraphicsPresetKind
kind);
65
};
66
67
}
// namespace qpe
qpe::QuantumGraphicsPreset
Implements the Quantum Graphics Preset component.
Definition
quantumgraphicspreset.h:53
qpe::QuantumGraphicsPreset::values
static QuantumGraphicsPresetValues values(QuantumGraphicsPresetKind kind)
Returns values.
Definition
quantumgraphicspreset.cpp:16
qpe::QuantumGraphicsPreset::name
static const char * name(QuantumGraphicsPresetKind kind)
Returns name.
Definition
quantumgraphicspreset.cpp:71
qpe
Definition
mainwindow.h:76
qpe::QuantumGraphicsPresetKind
QuantumGraphicsPresetKind
Enumerates the supported Quantum Graphics Preset Kind values.
Definition
quantumgraphicspreset.h:22
qpe::QuantumGraphicsPresetKind::Scientific
@ Scientific
qpe::QuantumGraphicsPresetKind::Cinematic
@ Cinematic
qpe::QuantumGraphicsPresetKind::Presentation
@ Presentation
qpe::QuantumGraphicsPresetValues
Data structure used by the Quantum Graphics Preset Values component.
Definition
quantumgraphicspreset.h:34
qpe::QuantumGraphicsPresetValues::brightSoftKnee
double brightSoftKnee
Definition
quantumgraphicspreset.h:41
qpe::QuantumGraphicsPresetValues::exposureEv
double exposureEv
Definition
quantumgraphicspreset.h:37
qpe::QuantumGraphicsPresetValues::gamma
double gamma
Definition
quantumgraphicspreset.h:38
qpe::QuantumGraphicsPresetValues::bloomStrength
double bloomStrength
Definition
quantumgraphicspreset.h:43
qpe::QuantumGraphicsPresetValues::paletteIndex
int paletteIndex
Definition
quantumgraphicspreset.h:35
qpe::QuantumGraphicsPresetValues::blurSpread
double blurSpread
Definition
quantumgraphicspreset.h:42
qpe::QuantumGraphicsPresetValues::postPreviewIndex
int postPreviewIndex
Definition
quantumgraphicspreset.h:39
qpe::QuantumGraphicsPresetValues::toneMapIndex
int toneMapIndex
Definition
quantumgraphicspreset.h:44
qpe::QuantumGraphicsPresetValues::brightThreshold
double brightThreshold
Definition
quantumgraphicspreset.h:40
qpe::QuantumGraphicsPresetValues::displayScaleIndex
int displayScaleIndex
Definition
quantumgraphicspreset.h:36
graphics
renderer
quantumgraphicspreset.h
Generated by
1.12.0