DocumentationOverviewBuilding ASL Documentation Library Wiki Docs Indices Browse Perforce More InfoRelease NotesWiki Site Search License Success Stories Contributors MediaDownloadPerforce Depots SupportASL SourceForge HomeMailing Lists Discussion Forums Report Bugs Suggest Features Contribute to ASL RSSShort-text newsFull-text news File releases Other Adobe ProjectsAdobe AirAdobe GIL Adobe Labs Adobe Media Gallery Adobe XMP Tamarin project (Mozilla Foundation) Other ResourcesBoostRIAForge SGI STL |
dng_temperature.h00001 /*****************************************************************************/ 00002 // Copyright 2006 Adobe Systems Incorporated 00003 // All Rights Reserved. 00004 // 00005 // NOTICE: Adobe permits you to use, modify, and distribute this file in 00006 // accordance with the terms of the Adobe license agreement accompanying it. 00007 /*****************************************************************************/ 00008 00009 /* $Id: //mondo/workarea/stern/camera_raw/dng_sdk/source/dng_temperature.h#2 $ */ 00010 /* $DateTime: 2006/03/19 21:45:16 $ */ 00011 /* $Change: 211775 $ */ 00012 /* $Author: stern $ */ 00013 00014 #ifndef __dng_temperature__ 00015 #define __dng_temperature__ 00016 00017 /*****************************************************************************/ 00018 00019 #include "dng_classes.h" 00020 #include "dng_types.h" 00021 00022 /*****************************************************************************/ 00023 00024 class dng_temperature 00025 { 00026 00027 private: 00028 00029 real64 fTemperature; 00030 00031 real64 fTint; 00032 00033 public: 00034 00035 dng_temperature () 00036 00037 : fTemperature (0.0) 00038 , fTint (0.0) 00039 00040 { 00041 } 00042 00043 dng_temperature (real64 temperature, 00044 real64 tint) 00045 00046 : fTemperature (temperature) 00047 , fTint (tint ) 00048 00049 { 00050 00051 } 00052 00053 dng_temperature (const dng_xy_coord &xy) 00054 00055 : fTemperature (0.0) 00056 , fTint (0.0) 00057 00058 { 00059 Set_xy_coord (xy); 00060 } 00061 00062 void SetTemperature (real64 temperature) 00063 { 00064 fTemperature = temperature; 00065 } 00066 00067 real64 Temperature () const 00068 { 00069 return fTemperature; 00070 } 00071 00072 void SetTint (real64 tint) 00073 { 00074 fTint = tint; 00075 } 00076 00077 real64 Tint () const 00078 { 00079 return fTint; 00080 } 00081 00082 void Set_xy_coord (const dng_xy_coord &xy); 00083 00084 dng_xy_coord Get_xy_coord () const; 00085 00086 }; 00087 00088 /*****************************************************************************/ 00089 00090 #endif 00091 00092 /*****************************************************************************/ |