Debian Codegraph @

core/libs/dngwriter/extra/dng_sdk/dng_temperature.h

raw
1 /*****************************************************************************/
2 // Copyright 2006-2019 Adobe Systems Incorporated
3 // All Rights Reserved.
4 //
5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
6 // accordance with the terms of the Adobe license agreement accompanying it.
7 /*****************************************************************************/
8
9 /** \file
10 * Representation of color temperature and offset (tint) using black body
11 * radiator definition.
12 */
13
14 #ifndef __dng_temperature__
15 #define __dng_temperature__
16
17 /*****************************************************************************/
18
19 #include "dng_classes.h"
20 #include "dng_types.h"
21
22 /*****************************************************************************/
23
24 class dng_temperature
25 {
26
27 private:
28
29 real64 fTemperature;
30
31 real64 fTint;
32
33 public:
34
35 dng_temperature ()
36
37 : fTemperature (0.0)
38 , fTint (0.0)
39
40 {
41 }
42
43 dng_temperature (real64 temperature,
44 real64 tint)
45
46 : fTemperature (temperature)
47 , fTint (tint )
48
49 {
50
51 }
52
53 dng_temperature (const dng_xy_coord &xy)
54
55 : fTemperature (0.0)
56 , fTint (0.0)
57
58 {
59 Set_xy_coord (xy);
60 }
61
62 void SetTemperature (real64 temperature)
63 {
64 fTemperature = temperature;
65 }
66
67 real64 Temperature () const
68 {
69 return fTemperature;
70 }
71
72 void SetTint (real64 tint)
73 {
74 fTint = tint;
75 }
76
77 real64 Tint () const
78 {
79 return fTint;
80 }
81
82 void Set_xy_coord (const dng_xy_coord &xy);
83
84 dng_xy_coord Get_xy_coord () const;
85
86 };
87
88 /*****************************************************************************/
89
90 #endif
91
92 /*****************************************************************************/