Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
quantumtonemapping.h
Go to the documentation of this file.
1/**
2 * @file quantumtonemapping.h
3 * @brief Declares the quantumtonemapping visualization component used by QPE.
4 * @ingroup qpe_graphics
5 *
6 * Source: @c graphics/renderer/quantumtonemapping.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
14namespace qpe {
15
16/**
17 * @brief Enumerates the supported Quantum Tone Map Operator values.
18 *
19 * The enumeration is part of the typed interface used to keep experiment configuration and analysis routing explicit.
20 */
22{
23 Off = 0,
26};
27
28/**
29 * @brief Data record containing Quantum Tone Map Sample.
30 *
31 * The structure carries computed data without coupling the numerical component to the GUI or renderer.
32 */
34{
35 float r = 0.0f;
36 float g = 0.0f;
37 float b = 0.0f;
38};
39
40// CPU reference for the final HDR -> display tone-mapping pass.
41// This is display-only: it never modifies psi, probability, or observables.
42/**
43 * @brief Implements the Quantum Tone Mapping component.
44 *
45 * The class provides one focused service within the QPE architecture and is documented here independently of the experiment-level Help.
46 */
48{
49public:
50 /**
51 * @brief Performs map channel.
52 * @param value Value to assign or evaluate.
53 * @param op The op value used by the operation.
54 */
55 static float mapChannel(float value, QuantumToneMapOperator op);
56 /**
57 * @brief Performs apply.
58 * @param hdr The hdr value used by the operation.
59 * @param op The op value used by the operation.
60 */
63};
64
65} // namespace qpe
Implements the Quantum Tone Mapping component.
static float mapChannel(float value, QuantumToneMapOperator op)
Performs map channel.
static QuantumToneMapSample apply(const QuantumToneMapSample &hdr, QuantumToneMapOperator op)
Performs apply.
QuantumToneMapOperator
Enumerates the supported Quantum Tone Map Operator values.
Data record containing Quantum Tone Map Sample.