Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages | Examples

gouraud_polytri.h

00001 //  Copyright (c) 1996-2001 by Autodesk, Inc.
00002 //
00003 //  By using this code, you are agreeing to the terms and conditions of
00004 //  the License Agreement included in the documentation for this code.
00005 //
00006 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00007 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00008 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00009 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00010 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00011 //
00012 //  Use, duplication, or disclosure by the U.S. Government is subject to
00013 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00014 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00015 //  Data and Computer Software), as applicable.
00016 //
00017 
00018 #if !defined GOURAUD_POLYTRI_HEADER
00019 #define GOURAUD_POLYTRI_HEADER
00020 
00021 #include "whiptk/whipcore.h"
00022 #include "whiptk/file.h"
00023 #include "whiptk/drawable.h"
00024 #include "whiptk/gouraud_pointset.h"
00025 
00026 
00031 
00032 
00037 class WHIPTK_API WT_Gouraud_Polytriangle : public WT_Drawable, public WT_Gouraud_Point_Set
00038 {
00039 protected:
00040 
00041 public:
00042 
00044     WT_Gouraud_Polytriangle ()
00045     { }
00046 
00048     WT_Gouraud_Polytriangle(
00049         int                         count, 
00050         WT_Logical_Point const *    points, 
00051         WT_RGBA32 const *           colors, 
00052         WT_Boolean                  copy 
00053         )
00054         : WT_Gouraud_Point_Set(count, points, colors, copy)
00055     { }
00056 
00058     ~WT_Gouraud_Polytriangle()
00059     { }
00060 
00061     // Mandatory WT_Object virtual methods
00062     WT_ID            object_id() const { return Gouraud_Polytriangle_ID;}
00063     WT_Result        serialize(WT_File & file) const;
00064     WT_Result        materialize(WT_Opcode const & opcode, WT_File & file);
00065     WT_Result        skip_operand(WT_Opcode const & opcode, WT_File & file);
00066     WT_Result        process(WT_File & file);
00067     virtual void     update_bounds(WT_File * file);
00068 
00070 
00072     static WT_Result default_process(
00073         WT_Gouraud_Polytriangle & item, 
00074         WT_File & file 
00075         );
00076 };
00078 
00079 #endif // GOURAUD_POLYTRI_HEADER

Generated on Tue May 17 12:07:44 2005 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.1