OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions
Color Class Reference

#include <color.hh>

Public Member Functions

 Color ()
 Color (float r, float g, float b, float a=1.0)
float & Red ()
const float & Red () const
float & Green ()
const float & Green () const
float & Blue ()
const float & Blue () const
float & Alpha ()
const float & Alpha () const
geom::Vec3 ToHSV ()
 operator float * ()
 operator const float * () const
Coloroperator*= (float rhs)
Coloroperator+= (float rhs)
Coloroperator+= (const Color &rhs)
Coloroperator-= (const Color &rhs)
Coloroperator-= (float rhs)
Coloroperator/= (float rhs)

Static Public Member Functions

static Color FromRGB (unsigned char r, unsigned char g, unsigned char b, unsigned char a=0xff)

Detailed Description

color with red, green, blue and alpha component

Definition at line 36 of file color.hh.


Constructor & Destructor Documentation

Color ( )
inline

Definition at line 41 of file color.hh.

Color ( float  r,
float  g,
float  b,
float  a = 1.0 
)
inline

Definition at line 48 of file color.hh.


Member Function Documentation

float& Alpha ( )
inline

Definition at line 61 of file color.hh.

const float& Alpha ( ) const
inline

Definition at line 62 of file color.hh.

float& Blue ( )
inline

Definition at line 59 of file color.hh.

const float& Blue ( ) const
inline

Definition at line 60 of file color.hh.

static Color FromRGB ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a = 0xff 
)
inlinestatic

Definition at line 64 of file color.hh.

float& Green ( )
inline

Definition at line 57 of file color.hh.

const float& Green ( ) const
inline

Definition at line 58 of file color.hh.

operator const float * ( ) const
inline

Definition at line 75 of file color.hh.

operator float * ( )
inline

Definition at line 74 of file color.hh.

Color& operator*= ( float  rhs)
Color& operator+= ( float  rhs)
Color& operator+= ( const Color rhs)
Color& operator-= ( const Color rhs)
Color& operator-= ( float  rhs)
Color& operator/= ( float  rhs)
float& Red ( )
inline

Definition at line 55 of file color.hh.

const float& Red ( ) const
inline

Definition at line 56 of file color.hh.

geom::Vec3 ToHSV ( )

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