summaryrefslogtreecommitdiff
path: root/gpr/source/lib/dng_sdk/dng_temperature.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpr/source/lib/dng_sdk/dng_temperature.h')
-rw-r--r--gpr/source/lib/dng_sdk/dng_temperature.h97
1 files changed, 97 insertions, 0 deletions
diff --git a/gpr/source/lib/dng_sdk/dng_temperature.h b/gpr/source/lib/dng_sdk/dng_temperature.h
new file mode 100644
index 0000000..7d662bd
--- /dev/null
+++ b/gpr/source/lib/dng_sdk/dng_temperature.h
@@ -0,0 +1,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
+
+/*****************************************************************************/