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