WT_Gouraud_Point_Set Class Reference

#include <gouraud_pointset.h>

Inheritance diagram for WT_Gouraud_Point_Set:

Inheritance graph
[legend]
Collaboration diagram for WT_Gouraud_Point_Set:

Collaboration graph
[legend]
List of all members.

Detailed Description

A base class for a set of WT_Logical_Point objects, each with an assigned WT_RGBA32 color.

Definition at line 81 of file gouraud_pointset.h.

Public Member Functions

 WT_Gouraud_Point_Set ()
 Creates a WT_Gouraud_Point_Set object.
 WT_Gouraud_Point_Set (int count, WT_Logical_Point const *points, WT_RGBA32 const *colors, WT_Boolean copy) throw (WT_Result)
 Creates a WT_Gouraud_Point_Set object from the given data.
virtual ~WT_Gouraud_Point_Set ()
 Destroys a WT_Gouraud_Point_Set object.
virtual WT_Result serialize (WT_File &file, WT_String opcode_ascii, WT_Byte opcode_32bit, WT_Byte opcode_16bit) const
 Causes the serialization of the object to the file.

Protected Types

enum  
 Materialization type.
enum  
 Materialization stage.

Protected Attributes

enum WT_Gouraud_Point_Set:: { ... }  m_read_mode
 Materialization type.
enum WT_Gouraud_Point_Set:: { ... }  m_stage
 Materialization stage.

Friends

class WT_W2D_Class_Factory


Constructor & Destructor Documentation

WT_Gouraud_Point_Set::WT_Gouraud_Point_Set int  count,
WT_Logical_Point const *  points,
WT_RGBA32 const *  colors,
WT_Boolean  copy
throw (WT_Result)
 

Creates a WT_Gouraud_Point_Set object from the given data.

Parameters:
count  The number of points in the array.
points  Pointer to the array of points.
colors  Set of colors (one for each point.)
copy  Whether the points should be copied or if their addresses should be used directly from the array.


Member Function Documentation

virtual WT_Result WT_Gouraud_Point_Set::serialize WT_File file,
WT_String  opcode_ascii,
WT_Byte  opcode_32bit,
WT_Byte  opcode_16bit
const [virtual]
 

Causes the serialization of the object to the file.

If this is a WT_Drawable derived object, this method may cause the object to be delayed (in case a coincident like-object follows) and/or merged (in case a coincident like-object preceeded) so as to optimize the output.

Return values:
WT_Result::Success The operation was successful.
Parameters:
file  The file being written.
opcode_ascii  The opcode to use if writing ASCII.
opcode_32bit  The opcode to use for a point set utilizing WT_Logical_Point32 objects.
opcode_16bit  The opcode to use for a point set utilizing WT_Logical_Point16 objects.


The documentation for this class was generated from the following file:
Generated on Tue Jan 6 22:41:19 2009 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.5