Moka libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Color Class Reference

#include <color.hh>

Public Member Functions

 Color ()
 
 Color (float cr, float cg, float cb)
 
 Color (const Color &C)
 
float Get_R () const
 
float Get_G () const
 
float Get_B () const
 
void Set_R (float val)
 
void Set_G (float val)
 
void Set_B (float val)
 
void Set_RGB (float vx, float vy, float vz)
 

Friends

std::ostream & operator<< (std::ostream &s, Color const &v)
 
Coloroperator>> (std::istream &s, Color &i)
 

Detailed Description

Definition at line 44 of file color.hh.

Constructor & Destructor Documentation

Color::Color ( )
inline

Definition at line 87 of file color.hh.

Color::Color ( float  cr,
float  cg,
float  cb 
)
inline

Definition at line 101 of file color.hh.

Color::Color ( const Color C)
inline

Definition at line 93 of file color.hh.

Member Function Documentation

float Color::Get_B ( ) const
inline

Definition at line 123 of file color.hh.

float Color::Get_G ( ) const
inline

Definition at line 117 of file color.hh.

float Color::Get_R ( ) const
inline

Definition at line 111 of file color.hh.

void Color::Set_B ( float  val)
inline

Definition at line 143 of file color.hh.

void Color::Set_G ( float  val)
inline

Definition at line 137 of file color.hh.

void Color::Set_R ( float  val)
inline

Definition at line 131 of file color.hh.

void Color::Set_RGB ( float  vx,
float  vy,
float  vz 
)
inline

Definition at line 149 of file color.hh.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
Color const &  v 
)
friend

Definition at line 159 of file color.hh.

Color& operator>> ( std::istream &  s,
Color i 
)
friend

Definition at line 167 of file color.hh.


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