XamlFillPattern.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_FILLPAT_HEADER
00020 #define XAML_FILLPAT_HEADER
00021 
00025 
00026 #include "XAML/XamlCore.h"
00027 
00028 #include "whiptk/fillpat.h"
00029 #include "XAML/XamlDrawableAttributes.h"
00030 #include "XAML/XamlXML.h"
00031 
00036 
00037 
00041 class XAMLTK_API WT_XAML_Fill_Pattern :
00042     public WT_Fill_Pattern,
00043     public XamlDrawableAttributes::PathAttributeProvider,
00044     public XamlDrawableAttributes::Fill::Provider
00045 
00046 {
00047         friend class WT_XAML_Class_Factory;
00048         friend class WT_XAML_Rendition;
00049         
00050 private :
00051 
00052     WT_XAML_File *_pSerializeFile;                          // serialized file, !=0
00053 
00054 protected:
00056 
00058     WT_XAML_Fill_Pattern()
00059     : WT_Fill_Pattern(), 
00060       _pSerializeFile( NULL )
00061    {
00062    }
00063 
00065     WT_XAML_Fill_Pattern( WT_Pattern_ID n )
00066     : WT_Fill_Pattern(n),
00067       _pSerializeFile( NULL )
00068     {
00069     }
00070 
00071         virtual ~WT_XAML_Fill_Pattern()
00072         {
00073     }
00074 
00075 public:
00076 
00078         WT_XAML_Fill_Pattern const & operator= (WT_XAML_Fill_Pattern const & other)
00079         {
00080                 WT_Fill_Pattern::operator = (other);
00081                 return *this;
00082         }
00083 
00084     //
00085     // from XamlDrawableAttributes::PathAttributeProvider
00086     //
00087     virtual WT_Result providePathAttributes(
00088         XamlDrawableAttributes::PathAttributeConsumer *,    // consumer, != 0
00089         WT_XAML_File &) const;                      // current file
00090 
00091     //
00092     // from XamlDrawableAttributes::Fill::Provider
00093     //
00094     virtual WT_Result provideFill(
00095         XamlDrawableAttributes::Fill *&);               // memento, may be null
00096 
00098     WT_Result        serialize (WT_File & /*file*/) const;   
00100         WT_Result                parseAttributeList(XamlXML::tAttributeMap& rMap, WT_XAML_File& rFile);
00101 };
00103 
00104 #endif //XAML_FILLPAT_HEADER

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