File indexing completed on 2025-01-19 03:55:18
0001 /*****************************************************************************/ 0002 // Copyright 2006-2019 Adobe Systems Incorporated 0003 // All Rights Reserved. 0004 // 0005 // NOTICE: Adobe permits you to use, modify, and distribute this file in 0006 // accordance with the terms of the Adobe license agreement accompanying it. 0007 /*****************************************************************************/ 0008 0009 /** \file 0010 * Representation of color temperature and offset (tint) using black body 0011 * radiator definition. 0012 */ 0013 0014 #ifndef __dng_temperature__ 0015 #define __dng_temperature__ 0016 0017 /*****************************************************************************/ 0018 0019 #include "dng_classes.h" 0020 #include "dng_types.h" 0021 0022 /*****************************************************************************/ 0023 0024 class dng_temperature 0025 { 0026 0027 private: 0028 0029 real64 fTemperature; 0030 0031 real64 fTint; 0032 0033 public: 0034 0035 dng_temperature () 0036 0037 : fTemperature (0.0) 0038 , fTint (0.0) 0039 0040 { 0041 } 0042 0043 dng_temperature (real64 temperature, 0044 real64 tint) 0045 0046 : fTemperature (temperature) 0047 , fTint (tint ) 0048 0049 { 0050 0051 } 0052 0053 dng_temperature (const dng_xy_coord &xy) 0054 0055 : fTemperature (0.0) 0056 , fTint (0.0) 0057 0058 { 0059 Set_xy_coord (xy); 0060 } 0061 0062 void SetTemperature (real64 temperature) 0063 { 0064 fTemperature = temperature; 0065 } 0066 0067 real64 Temperature () const 0068 { 0069 return fTemperature; 0070 } 0071 0072 void SetTint (real64 tint) 0073 { 0074 fTint = tint; 0075 } 0076 0077 real64 Tint () const 0078 { 0079 return fTint; 0080 } 0081 0082 void Set_xy_coord (const dng_xy_coord &xy); 0083 0084 dng_xy_coord Get_xy_coord () const; 0085 0086 }; 0087 0088 /*****************************************************************************/ 0089 0090 #endif 0091 0092 /*****************************************************************************/