XamlColorMap.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 1996-2006 by Autodesk, Inc.
00003 //
00004 //  By using this code, you are agreeing to the terms and conditions of
00005 //  the License Agreement included in the documentation for this code.
00006 //
00007 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00008 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00009 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00010 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00011 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00012 //
00013 //  Use, duplication, or disclosure by the U.S. Government is subject to
00014 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00015 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00016 //  Data and Computer Software), as applicable.
00017 //
00018 
00019 #if !defined XAML_COLORMAP_HEADER
00020 #define XAML_COLORMAP_HEADER
00021 
00025 
00026 #include "XAML/XamlCore.h"
00027 
00028 #include "whiptk/colormap.h"
00029 
00034 
00035 
00038 class XAMLTK_API WT_XAML_Color_Map : public WT_Color_Map
00039 {
00040         friend class WT_XAML_Class_Factory;
00041         friend class WT_XAML_Rendition;
00042 
00043 protected:
00044 
00046     WT_XAML_Color_Map(
00047         int file_revision_being_used = REVISION_WHEN_DEFAULT_COLORMAP_WAS_CHANGED 
00048         ) throw(WT_Result)
00049                 :WT_Color_Map(file_revision_being_used)
00050         { }
00052     WT_XAML_Color_Map(
00053         int count, 
00054         WT_RGBA32 const * map, 
00055         WT_File & file 
00056         ) throw(WT_Result)
00057                 :WT_Color_Map(count,map,file)
00058         {}
00059 
00061     WT_XAML_Color_Map(
00062         int count, 
00063         WT_RGB const * map, 
00064         WT_File & file 
00065         ) throw(WT_Result)
00066                 :WT_Color_Map(count,map,file)
00067         {}
00069     WT_XAML_Color_Map(WT_Color_Map const & cmap) throw(WT_Result)
00070                 :WT_Color_Map(cmap)
00071         {}
00072 
00074     virtual ~WT_XAML_Color_Map()
00075         {}
00076 public:
00078         WT_Result        serialize (WT_File & file) const;
00079     WT_Result        serializeRawColorMap(WT_XAML_File & file) const;
00080         WT_Result                parseAttributeList(XamlXML::tAttributeMap& rMap, WT_XAML_File& rFile);
00081     
00082 };
00084 
00085 #endif //XAML_COLORMAP_HEADER

Generated on Tue Jan 6 22:40:05 2009 for Autodesk DWF Toolkit by  doxygen 1.4.5