macro_draw.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 
00022 
00023 #if !defined MACRO_DRAW_HEADER
00024 #define MACRO_DRAW_HEADER
00025 
00026 #include "whiptk/whipcore.h"
00027 #include "whiptk/file.h"
00028 #include "whiptk/drawable.h"
00029 #include "whiptk/pointset.h"
00030 
00031 
00036 
00037 class WHIPTK_API WT_Macro_Draw : public WT_Drawable, public WT_Point_Set
00038 {
00039         friend class WT_W2D_Class_Factory;
00040         friend class WT_Opcode;
00041 
00042 public:
00043 
00045     WT_Macro_Draw ()
00046     {}
00047 
00049     WT_Macro_Draw(
00050         int                         count, 
00051         WT_Logical_Point const *    points, 
00052         WT_Boolean                  copy 
00053         ) throw(WT_Result)
00054         : WT_Point_Set(count, points, copy)
00055     { }
00056 
00057         WT_Macro_Draw(WT_Macro_Draw const& draw) throw(WT_Result)
00058         {
00059                 set(draw.count(),draw.points(),WD_True);
00060         }
00061 
00063     virtual ~WT_Macro_Draw()
00064     { }
00065 public:
00067     virtual WT_Result   delay(WT_File & file) const;
00068     virtual WT_Result   dump(WT_File & file) const;
00069     WT_ID               object_id() const;
00070     WT_Result           materialize(WT_Opcode const & opcode, WT_File & file);
00071     virtual WT_Boolean  merge(WT_Drawable const & current);
00072     WT_Result           process(WT_File & file);
00073     WT_Result           serialize(WT_File & file) const;
00074     WT_Result           skip_operand(WT_Opcode const & opcode, WT_File & file);
00075     virtual void        update_bounds(WT_File * file);
00077 
00079 
00081     static WT_Result default_process(
00082         WT_Macro_Draw & item, 
00083         WT_File & file 
00084         );
00085 
00086 };
00088 
00089 #endif // MACRO_DRAW_HEADER
00090 
00091 

Generated on Tue Jan 6 22:41:13 2009 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.5