WT_RGB Class Reference

#include <rgb.h>

List of all members.


Detailed Description

A simple 24-bit RGB color.
Examples:

WhipExamples/ColorMap.cpp.

Definition at line 27 of file rgb.h.

Public Member Functions

 WT_RGB ()
 Constructs a WT_RGB object (defaults to black.).
 m_blue (in.m_blue)
 m_blue (static_cast< unsigned char >(blue))
 m_blue ((unsigned char)(blue *255.99))
WT_Boolean operator== (WT_RGB const &test) const
 Returns WD_True if the colors are equal.
WT_Boolean operator!= (WT_RGB const &test) const
 Returns WD_True if the colors are NOT equal.
WT_RGB const & operator= (WT_RGB const &in)
 Assignment operator. Assigns the given color to this one.

Public Attributes

unsigned char m_red
unsigned char m_green
unsigned char m_blue
 __pad0__: m_red (in.m_red)
 Constructs a WT_RGB object. Copy constructor.
 __pad1__: m_red (static_cast<unsigned char>(red))
 Constructs a WT_RGB object from the given color values.
 __pad2__: m_red ((unsigned char)(red * 255.99))
 Constructs a WT_RGB object from the given color scalars (each value should be 0 <= x <= 1.0).


Member Data Documentation

WT_RGB::__pad1__
 

Constructs a WT_RGB object from the given color values.

Note:
The values are converted to a byte value by casting them each to an unsigned char.

Definition at line 48 of file rgb.h.

WT_RGB::__pad2__
 

Constructs a WT_RGB object from the given color scalars (each value should be 0 <= x <= 1.0).

Note:
The values are converted to a byte value by multiplying with 255.99 and then casting them each to an unsigned char.

Definition at line 58 of file rgb.h.

unsigned char WT_RGB::m_blue
 

Blue component of the color.

Definition at line 31 of file rgb.h.

unsigned char WT_RGB::m_green
 

Green component of the color.

Definition at line 30 of file rgb.h.

unsigned char WT_RGB::m_red
 

Red component of the color.

Definition at line 29 of file rgb.h.


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