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