TuttleOFX  1
tuttle::Color Class Reference

#include <Color.hpp>

Public Member Functions

 Color ()
 Color (double _x, double _y, double _z)
 Color (const Color &_color)
bool operator== (const Color _color) const
bool operator!= (const Color _color) const
Color operator- (const Color _color) const
Color operator+ (const Color _color) const
Color operator* (const Color _color) const
Color operator* (double value) const
Color operator/ (const Color _color) const
Color operator/ (double value) const
Color operator= (const Color _color)
Color operator+= (const Color _color)
Color operator-= (const Color _color)
Color operator*= (const Color _color)
Color operator*= (double _value)
Color operator/= (const Color _color)
Color operator/= (double _value)

Data Fields

double x
double y
double z

Friends

std::ostream & operator<< (std::ostream &o, Color const &_color)

Detailed Description

Definition at line 8 of file Color.hpp.


Constructor & Destructor Documentation

tuttle::Color::Color ( ) [inline]

Definition at line 11 of file Color.hpp.

Referenced by operator*(), operator+(), operator-(), and operator/().

tuttle::Color::Color ( double  _x,
double  _y,
double  _z 
) [inline]

Definition at line 14 of file Color.hpp.

tuttle::Color::Color ( const Color _color) [inline]

Definition at line 17 of file Color.hpp.


Member Function Documentation

bool tuttle::Color::operator!= ( const Color  _color) const [inline]

Definition at line 146 of file Color.hpp.

Color tuttle::Color::operator* ( const Color  _color) const [inline]

Definition at line 63 of file Color.hpp.

References Color(), x, y, and z.

Here is the call graph for this function:

Color tuttle::Color::operator* ( double  value) const [inline]

Definition at line 70 of file Color.hpp.

References Color(), x, y, and z.

Here is the call graph for this function:

Color tuttle::Color::operator*= ( const Color  _color) [inline]

Definition at line 107 of file Color.hpp.

References x, y, and z.

Color tuttle::Color::operator*= ( double  _value) [inline]

Definition at line 115 of file Color.hpp.

References _value, x, y, and z.

Color tuttle::Color::operator+ ( const Color  _color) const [inline]

Definition at line 56 of file Color.hpp.

References Color(), x, y, and z.

Here is the call graph for this function:

Color tuttle::Color::operator+= ( const Color  _color) [inline]

Definition at line 91 of file Color.hpp.

References x, y, and z.

Color tuttle::Color::operator- ( const Color  _color) const [inline]

Definition at line 49 of file Color.hpp.

References Color(), x, y, and z.

Here is the call graph for this function:

Color tuttle::Color::operator-= ( const Color  _color) [inline]

Definition at line 99 of file Color.hpp.

References x, y, and z.

Color tuttle::Color::operator/ ( const Color  _color) const [inline]

Definition at line 84 of file Color.hpp.

References Color(), x, y, and z.

Here is the call graph for this function:

Color tuttle::Color::operator/ ( double  value) const [inline]

Definition at line 77 of file Color.hpp.

References Color(), x, y, and z.

Here is the call graph for this function:

Color tuttle::Color::operator/= ( const Color  _color) [inline]

Definition at line 123 of file Color.hpp.

References x, y, and z.

Color tuttle::Color::operator/= ( double  _value) [inline]

Definition at line 131 of file Color.hpp.

References _value, x, y, and z.

Color tuttle::Color::operator= ( const Color  _color) [inline]

Definition at line 41 of file Color.hpp.

References x, y, and z.

bool tuttle::Color::operator== ( const Color  _color) const [inline]

Definition at line 139 of file Color.hpp.

References x, y, and z.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
Color const &  _color 
) [friend]

Definition at line 151 of file Color.hpp.


Field Documentation


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