QGIS API Documentation 4.1.0-Master (ca2ac17535b)
Loading...
Searching...
No Matches
qgscolorgradingsettings.h
Go to the documentation of this file.
1/***************************************************************************
2 qgscolorgradingsettings.h
3 --------------------------------------
4 Date : May 2026
5 Copyright : (C) 2026 by Nyall Dawson
6 Email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSCOLORGRADINGSETTINGS_H
17#define QGSCOLORGRADINGSETTINGS_H
18
19#include "qgis.h"
20#include "qgis_3d.h"
21
22#include <QMap>
23#include <QString>
24
25#define SIP_NO_FILE
26
28class QDomElement;
29
30
38{
39 public:
43
49 void readXml( const QDomElement &element, const QgsReadWriteContext &context );
50
56 void writeXml( QDomElement &element, const QgsReadWriteContext &context ) const;
57
68 double exposureAdjustment() const { return mExposureAdjustment; }
69
75 void setExposureAdjustment( double adjustment ) { mExposureAdjustment = adjustment; }
76
86 Qgis::ToneMappingMethod toneMapping() const { return mToneMapping; }
87
92 void setToneMapping( Qgis::ToneMappingMethod mapping ) { mToneMapping = mapping; }
93
94 private:
95 double mExposureAdjustment = 0.0;
97};
98
99#endif // QGSCOLORGRADINGSETTINGS_H
ToneMappingMethod
Defines the method used to map High Dynamic Range (HDR) scene colors to the Standard Dynamic Range (S...
Definition qgis.h:4483
@ Clamp
Clamp HDR colors to SDR color ranges, leave SDR colors unchanged. This is computationally cheap and e...
Definition qgis.h:4484
void setExposureAdjustment(double adjustment)
Sets the exposure adjustment value.
QgsColorGradingSettings()=default
void setToneMapping(Qgis::ToneMappingMethod mapping)
Sets the tone mapping method.
void readXml(const QDomElement &element, const QgsReadWriteContext &context)
Reads settings from a DOM element.
Qgis::ToneMappingMethod toneMapping() const
Returns the tone mapping method applied to the scene.
double exposureAdjustment() const
Returns the exposure adjustment value.
void writeXml(QDomElement &element, const QgsReadWriteContext &context) const
Writes settings to a DOM element.
QgsColorGradingSettings & operator=(QgsColorGradingSettings const &rhs)
A container for the context for various read/write operations on objects.