color Class Reference

#include <color.h>

List of all members.

Public Member Functions

 color (int red=0, int green=0, int blue=0)
 ~color ()
int red () const
int green () const
int blue () const
void red (int red)
void green (int green)
void blue (int blue)
bool operator== (const color &to_compare) const
bool operator!= (const color &to_compare) const
int index () const
void index (int new_index)
istring text_form () const


Detailed Description

Definition at line 24 of file color.h.


Constructor & Destructor Documentation

color::color ( int  red = 0,
int  green = 0,
int  blue = 0 
)

Definition at line 23 of file color.cpp.

color::~color (  ) 

Definition at line 27 of file color.cpp.


Member Function Documentation

int color::red (  )  const

Definition at line 29 of file color.cpp.

Referenced by text_form().

int color::green (  )  const

Definition at line 31 of file color.cpp.

Referenced by text_form().

int color::blue (  )  const

Definition at line 33 of file color.cpp.

Referenced by text_form().

void color::red ( int  red  ) 

Definition at line 35 of file color.cpp.

void color::green ( int  green  ) 

Definition at line 37 of file color.cpp.

void color::blue ( int  blue  ) 

Definition at line 39 of file color.cpp.

bool color::operator== ( const color to_compare  )  const

Definition at line 48 of file color.cpp.

References _blue, _green, and _red.

bool color::operator!= ( const color to_compare  )  const

Definition at line 45 of file color.cpp.

int color::index (  )  const

Definition at line 41 of file color.cpp.

Referenced by visible_line::plot(), ring::plot(), oval::plot(), dot::plot(), and box::plot().

void color::index ( int  new_index  ) 

Definition at line 43 of file color.cpp.

istring color::text_form (  )  const

Definition at line 54 of file color.cpp.

References blue(), green(), and red().


The documentation for this class was generated from the following files:
Generated on Fri Oct 10 04:30:05 2008 for HOOPLE Libraries by  doxygen 1.5.1