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

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 26 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)
 Creates a WT_Gouraud_Point_Set object from the given data.
 ~WT_Gouraud_Point_Set ()
 Destroys a WT_Gouraud_Point_Set object.
WT_RGBA32colors () const
 Returns the array of colors (one per point in the set.).
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.
WT_Result materialize (WT_File &file)
 Materializes the point set from the file as a set of WT_Logical_Point32 objects.
WT_Result materialize_ascii (WT_File &file)
 Materializes the point set from the file as ASCII-serialized points.
WT_Result materialize_16_bit (WT_File &file)
 Materializes the point set from the file as a set of WT_Logical_Point16 objects.
WT_Result skip_operand (WT_File &file)
 Causes the file reading to proceed to the end of this object.
WT_Result skip_operand_16_bit (WT_File &file)
 Causes the file reading to proceed to the end of this object.
WT_Result skip_operand_ascii (WT_File &file)
 Causes the file reading to proceed to the end of this object.

Protected Types

enum  
 Materialization type.
enum  
 Materialization stage.

Protected Attributes

WT_RGBA32m_colors
 The set of colors (one for each point in the set.).
WT_Integer32 m_colors_allocated
 The number of allocated points for the colors.
enum WT_Gouraud_Point_Set:: { ... }  m_read_mode
 Materialization type.
enum WT_Gouraud_Point_Set:: { ... }  m_stage
 Materialization stage.


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
 

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

WT_Result WT_Gouraud_Point_Set::materialize WT_File file  )  [virtual]
 

Materializes the point set from the file as a set of WT_Logical_Point32 objects.

Reads in the object data and causes the file reading to proceed to the end of this object.

Warning:
This is used by the framework and should not be called by client code.
Return values:
WT_Result::Success The operation was successful.
WT_Result::Out_Of_Memory_Error Could not allocate the points.

Reimplemented from WT_Point_Set.

WT_Result WT_Gouraud_Point_Set::materialize_16_bit WT_File file  )  [virtual]
 

Materializes the point set from the file as a set of WT_Logical_Point16 objects.

Reads in the object data and causes the file reading to proceed to the end of this object.

Warning:
This is used by the framework and should not be called by client code.
Return values:
WT_Result::Success The operation was successful.
WT_Result::Out_Of_Memory_Error Could not allocate the points.

Reimplemented from WT_Point_Set.

WT_Result WT_Gouraud_Point_Set::materialize_ascii WT_File file  )  [virtual]
 

Materializes the point set from the file as ASCII-serialized points.

Reads in the object data and causes the file reading to proceed to the end of this object.

Warning:
This is used by the framework and should not be called by client code.
Return values:
WT_Result::Success The operation was successful.
WT_Result::Corrupt_File_Error No points in the set.
WT_Result::Out_Of_Memory_Error Could not allocate the points.

Reimplemented from WT_Point_Set.

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.

WT_Result WT_Gouraud_Point_Set::skip_operand WT_File file  )  [virtual]
 

Causes the file reading to proceed to the end of this object.

Warning:
This is used by the framework and should not be called by client code.

Reimplemented from WT_Point_Set.

WT_Result WT_Gouraud_Point_Set::skip_operand_16_bit WT_File file  )  [virtual]
 

Causes the file reading to proceed to the end of this object.

Warning:
This is used by the framework and should not be called by client code.

Reimplemented from WT_Point_Set.

WT_Result WT_Gouraud_Point_Set::skip_operand_ascii WT_File file  )  [virtual]
 

Causes the file reading to proceed to the end of this object.

Warning:
This is used by the framework and should not be called by client code.

Reimplemented from WT_Point_Set.


The documentation for this class was generated from the following file:
Generated on Tue May 17 12:07:55 2005 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.1