SpikeStream Library  0.2
spikestream::RGBColor Class Reference

#include <RGBColor.h>

List of all members.

Public Member Functions

 RGBColor ()
 RGBColor (float red, float green, float blue)
 RGBColor (const RGBColor &rgbColor)
RGBColoroperator= (const RGBColor &rhs)
void set (float red, float green, float blue)

Public Attributes

float red
float green
float blue

Static Public Attributes

static RGBColor BLACK = RGBColor(0.0f, 0.0f, 0.0f)

Detailed Description

A simple RGB color class.

Definition at line 7 of file RGBColor.h.


Constructor & Destructor Documentation

Default constructor

Definition at line 9 of file RGBColor.cpp.

RGBColor::RGBColor ( float  red,
float  green,
float  blue 
)

Standard constructor

Definition at line 17 of file RGBColor.cpp.

RGBColor::RGBColor ( const RGBColor rgbColor)

Copy constructor

Definition at line 25 of file RGBColor.cpp.


Member Function Documentation

RGBColor & RGBColor::operator= ( const RGBColor rhs)

Assignment operator

Definition at line 37 of file RGBColor.cpp.

void RGBColor::set ( float  red,
float  green,
float  blue 
)

Sets the colour.

Definition at line 50 of file RGBColor.cpp.


Member Data Documentation

RGBColor RGBColor::BLACK = RGBColor(0.0f, 0.0f, 0.0f) [static]

Definition at line 17 of file RGBColor.h.

Definition at line 22 of file RGBColor.h.

Definition at line 21 of file RGBColor.h.

Definition at line 20 of file RGBColor.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Defines