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

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 22 of file rgb.h.

Public Member Functions

 WT_RGB ()
 Constructs a WT_RGB object (defaults to black.).
 m_green (in.m_green)
 Constructs a WT_RGB object. Copy constructor.
 m_green (static_cast< unsigned char >(green))
 Constructs a WT_RGB object from the given color values.
 m_green ((unsigned char)(green *255.99))
 Constructs a WT_RGB object from the given color scalars (each value should be 0 <= x <= 1.0).
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 Function Documentation

WT_RGB::m_green (unsigned char)(green *255.99)   ) 
 

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.

WT_RGB::m_green static_cast< unsigned char >  (green)  ) 
 

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.


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 43 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 53 of file rgb.h.

unsigned char WT_RGB::m_blue
 

Blue component of the color.

Definition at line 26 of file rgb.h.

unsigned char WT_RGB::m_green
 

Green component of the color.

Definition at line 25 of file rgb.h.

unsigned char WT_RGB::m_red
 

Red component of the color.

Definition at line 24 of file rgb.h.


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