Artificial Intelligence
Public Member Functions | Private Attributes

OpenSteer::Color Class Reference

#include <Color.h>

List of all members.

Public Member Functions

 Color ()
 Color (float greyValue)
 Color (float rValue, float gValue, float bValue, float aValue=1.0f)
 Color (Vec3 const &vector)
float r () const
float g () const
float b () const
float a () const
void setR (float value)
void setG (float value)
void setB (float value)
void setA (float value)
void set (float rValue, float gValue, float bValue, float aValue=1.0f)
Vec3 convertToVec3 () const
float const *const colorFloatArray () const
Coloroperator+= (Color const &other)
Coloroperator-= (Color const &other)
Coloroperator*= (float factor)
Coloroperator/= (float factor)

Private Attributes

float r_
float g_
float b_
float a_

Constructor & Destructor Documentation

OpenSteer::Color::Color ( )
OpenSteer::Color::Color ( float  greyValue) [explicit]
OpenSteer::Color::Color ( float  rValue,
float  gValue,
float  bValue,
float  aValue = 1.0f 
OpenSteer::Color::Color ( Vec3 const &  vector) [explicit]

Member Function Documentation

float OpenSteer::Color::a ( ) const
float OpenSteer::Color::b ( ) const
float const* const OpenSteer::Color::colorFloatArray ( ) const [inline]
OpenSteer::Vec3 OpenSteer::Color::convertToVec3 ( ) const
float OpenSteer::Color::g ( ) const
OpenSteer::Color & OpenSteer::Color::operator*= ( float  factor)
OpenSteer::Color & OpenSteer::Color::operator+= ( Color const &  other)
OpenSteer::Color & OpenSteer::Color::operator-= ( Color const &  other)
OpenSteer::Color & OpenSteer::Color::operator/= ( float  factor)
float OpenSteer::Color::r ( ) const
void OpenSteer::Color::set ( float  rValue,
float  gValue,
float  bValue,
float  aValue = 1.0f 
void OpenSteer::Color::setA ( float  value)
void OpenSteer::Color::setB ( float  value)
void OpenSteer::Color::setG ( float  value)
void OpenSteer::Color::setR ( float  value)

Member Data Documentation

float OpenSteer::Color::a_ [private]
float OpenSteer::Color::b_ [private]
float OpenSteer::Color::g_ [private]
float OpenSteer::Color::r_ [private]

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