Whiteboard
An interface and tools for visualizing large and complex datasets
Public Member Functions | Private Attributes | Friends | List of all members
color Class Reference

#include <Color.h>

Public Member Functions

 color (float r, float g, float b)
 
 color ()
 
float R () const
 
float G () const
 
float B () const
 

Private Attributes

float r_
 
float g_
 
float b_
 

Friends

bool operator== (const color &lhs, const color &rhs)
 
bool operator!= (const color &lhs, const color &rhs)
 
std::ostream & operator<< (std::ostream &o, const color &c)
 

Detailed Description

Class to provide color to graphic objects.

Constructor & Destructor Documentation

color::color ( float  r,
float  g,
float  b 
)
inline
Parameters
rred RGB decimal code
ggreen RGB decimal code
bblue RGB decimal code
color::color ( )
inline

Member Function Documentation

float color::B ( ) const
inline

Method to return the blue RGB decimal code for this color.

float color::G ( ) const
inline

Method to return the green RGB decimal code for this color.

float color::R ( ) const
inline

Method to return the red RGB decimal code for this color.

Friends And Related Function Documentation

bool operator!= ( const color lhs,
const color rhs 
)
friend

Inequality operator.

std::ostream& operator<< ( std::ostream &  o,
const color c 
)
friend
bool operator== ( const color lhs,
const color rhs 
)
friend

Equality operator.

Member Data Documentation

float color::b_
private
float color::g_
private
float color::r_
private

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