XamlContour_Set.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 
00019 #if !defined XAML_CONTOUR_SET_HEADER
00020 #define XAML_CONTOUR_SET_HEADER
00021 
00025 
00026 #include "XAML/XamlCore.h"
00027 
00028 #include "whiptk/contour_set.h"
00029 
00034 
00035 
00040 class XAMLTK_API WT_XAML_Contour_Set : public WT_Contour_Set 
00041 {
00042         friend class WT_XAML_Class_Factory;
00043 protected:
00044 
00046     WT_XAML_Contour_Set ()
00047         : WT_Contour_Set()        
00048     { }
00049 
00051     WT_XAML_Contour_Set(
00052         WT_File &                   file, 
00053         WT_Integer32                contours, 
00054         WT_Integer32 const *        counts, 
00055         WT_Integer32                point_count, 
00056         WT_Logical_Point const *    points, 
00057         WT_Boolean                  copy 
00058         ) throw(WT_Result)
00059                 :WT_Contour_Set(file,contours,counts,point_count,points,copy)
00060         {}
00061 
00063     WT_XAML_Contour_Set(
00064         WT_File &                   file, 
00065         WT_Integer32                point_count, 
00066         WT_Logical_Point const *    points 
00067         ) throw(WT_Result)
00068                 :WT_Contour_Set(file,point_count,points)
00069         {}
00070 
00072     WT_XAML_Contour_Set(
00073         WT_Contour_Set const &  source, 
00074         WT_Boolean              copy = WD_True 
00075         ) throw(WT_Result)
00076                 :WT_Contour_Set(source,copy)
00077         {}
00078 
00080     virtual WT_Contour_Set* copy(
00081         WT_Boolean              copy = WD_True 
00082     )
00083     {
00084         return new WT_XAML_Contour_Set( *this, copy );
00085     }
00086 
00088     virtual ~WT_XAML_Contour_Set()
00089         {}
00090 public:
00091 
00093     WT_XAML_Contour_Set const & operator= (WT_XAML_Contour_Set const & source)
00094         {
00095                 WT_Contour_Set::operator = (source);
00096                 return *this;
00097         }
00098 
00100         WT_Result        serialize(WT_File & /*file*/) const;
00102         WT_Result                parseAttributeList(XamlXML::tAttributeMap& rMap, WT_XAML_File& rFile);
00103 };
00105 
00106 #endif //XAML_CONTOUR_SET_HEADER

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