Colour Class Reference
[Image creation]

#include <ls_image.h>

List of all members.

Public Member Functions

 Colour ()
 Colour (float R, float G, float B)
const Colouroperator*= (float fact)
const Colour operator+ (const Colour &c2) const
const Colour operator* (double f) const

Public Attributes

float r
float g
float b


Detailed Description

A very simple class for storing RGB colours.

Definition at line 46 of file ls_image.h.


Constructor & Destructor Documentation

Colour::Colour (  )  [inline]

Default constructor. Does not initialize r, g and b.

Definition at line 54 of file ls_image.h.

Colour::Colour ( float  R,
float  G,
float  B 
) [inline]

Initializes the colour with R, G and B.

Definition at line 56 of file ls_image.h.


Member Function Documentation

const Colour& Colour::operator*= ( float  fact  )  [inline]

Multiplies all components with fact.

Definition at line 58 of file ls_image.h.

const Colour Colour::operator+ ( const Colour c2  )  const [inline]

Returns the sum colour of *this and c2.

Definition at line 61 of file ls_image.h.

const Colour Colour::operator* ( double  f  )  const [inline]

Returns *this, scaled by f.

Definition at line 64 of file ls_image.h.


Member Data Documentation

float Colour::r

the red component

Definition at line 49 of file ls_image.h.

float Colour::g

the green component

Definition at line 49 of file ls_image.h.

float Colour::b

the blue component

Definition at line 49 of file ls_image.h.


The documentation for this class was generated from the following file:

Generated on Wed Apr 24 11:31:17 2013 for LevelS C++ support library