XamlPNGGroup4Image.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 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 
00022 
00023 #if !defined XAML_PNGGROUP4IMAGE_HEADER
00024 #define XAML_PNGGROUP4IMAGE_HEADER
00025 
00026 #include "XAML/XamlCore.h"
00027 
00028 #include "whiptk/pnggroup4image.h"
00029 #include "XAML/XamlXML.h"
00030 
00035 
00036 
00040 class XAMLTK_API WT_XAML_PNG_Group4_Image : public WT_PNG_Group4_Image 
00041 {
00042         friend class WT_XAML_Class_Factory;
00043 
00044 protected:
00045         //Do we want to have these copy constructors??
00046         //commenting for now
00047         //WT_PNG_Group4_Image (WT_PNG_Group4_Image const &)
00048  //     : WT_PNG_Group4_Image ()
00049  //   { } // prohibited
00050 
00051  //   WT_PNG_Group4_Image & operator= (WT_PNG_Group4_Image const &)
00052  //   {
00053  //       WD_Complain ("cannot assign WT_PNG_Group4_Image");
00054  //       return *this;
00055  //   } // prohibited
00056 
00058     WT_XAML_PNG_Group4_Image ()
00059         : WT_PNG_Group4_Image()
00060     { }
00061 
00062 
00063 
00066     WT_XAML_PNG_Group4_Image (int image_type)
00067        : WT_PNG_Group4_Image(image_type)
00068     { }
00069 
00070 
00072     WT_XAML_PNG_Group4_Image(
00073             WT_Unsigned_Integer16       rows, 
00074             WT_Unsigned_Integer16       columns, 
00075             WT_PNG_Group4_Image_Format  format, 
00076             WT_Integer32                identifier, 
00077             WT_Color_Map const *        color_map, 
00078             WT_Integer32                data_size, 
00079             WT_Byte *                   data, 
00080             WT_Logical_Point const &    min_corner, 
00081             WT_Logical_Point const &    max_corner, 
00082             WT_Boolean                  copy, 
00083             WT_Integer32                dpi = -1 
00084             ) throw(WT_Result)
00085                         : WT_PNG_Group4_Image(rows,columns,format,identifier,color_map,data_size,
00086                                                                   data,min_corner,max_corner,copy,dpi)
00087         {}
00088 
00089         WT_XAML_PNG_Group4_Image & operator= (WT_XAML_PNG_Group4_Image const &)
00090     {
00091         WD_Complain ("cannot assign WT_XAML_PNG_Group4_Image");
00092         return *this;
00093     } // prohibited
00094 
00096     virtual ~WT_XAML_PNG_Group4_Image()
00097     {}
00098 public:
00099 
00101     WT_Result        serialize(WT_File & /*file*/) const;
00103         WT_Result                parseAttributeList(XamlXML::tAttributeMap& rMap, WT_XAML_File& rFile);
00105 };
00107 
00108 #endif //XAML_PNGGROUP4IMAGE_HEADER

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