public

Inheritance Graph

graph BT
	Color4f
	click Color4f "classUtil_1_1Color4f"

Description

Representation of an RGBA color that is stored as four floats.

Serialization

 
 
 

Public Functions

   
   
  Color4f()
   
  Color4f(float _r, float _g, float _b, float _a)
   
  Color4f(const Color4ub & other)
   
  Color4f(const std::vector< float > & arr)
   
  Color4f(const Color4f & void)
   
  Color4f( Color4f && void)
   
  Color4f(const Color4f & first, const Color4f & second, float v)
   
void set(float _r, float _g, float _b, float _a)
   
bool isTransparent() const
   
bool isOpaque() const
   
const float * data() const
   
float r() const
   
void r(float value)
   
float g() const
   
void g(float value)
   
float b() const
   
void b(float value)
   
float a() const
   
void a(float value)
   
float getR() const
   
float getG() const
   
float getB() const
   
float getA() const
   
void setR(float value)
   
void setG(float value)
   
void setB(float value)
   
void setA(float value)
   
Color4f abs() const
   
Color4f & operator=(const Color4f & void)
   
Color4f & operator=( Color4f && void)
   
bool operator==(const Color4f & other) const
   
bool operator!=(const Color4f & other) const
   
Color4f operator+(const Color4f & other) const
   
Color4f operator-(const Color4f & other) const
   
Color4f operator*(float f) const
   
Color4f operator*(const Color4f & other) const
   
Color4f operator/(float f) const
   
Color4f & operator+=(const Color4f & other)
   
Color4f & operator-=(const Color4f & other)
   
Color4f & operator*=(const Color4f & other)
   
Color4f & operator*=(float f)
   
Color4f & operator/=(float f)
   
std::string toString() const

Documentation

function
Util::Color4f::Color4f

public inline
   
   
Color4f( )

Defined in Util/Graphics/Color.h:151


function
Util::Color4f::Color4f

public inline
     
     
Color4f( float _r,
  float _g,
  float _b,
  float _a
)    

Defined in Util/Graphics/Color.h:153


function
Util::Color4f::Color4f

public inline
     
     
Color4f( const Color4ub & other )

Defined in Util/Graphics/Color.h:156


function
Util::Color4f::Color4f

public inline explicit
     
     
Color4f( const std::vector< float > & arr )

Defined in Util/Graphics/Color.h:159


function
Util::Color4f::Color4f

public
     
     
Color4f( const Color4f & void )

Defined in Util/Graphics/Color.h:163


function
Util::Color4f::Color4f

public
     
     
Color4f( Color4f && void )

Defined in Util/Graphics/Color.h:164


function
Util::Color4f::Color4f

public inline
     
     
Color4f( const Color4f & first,
  const Color4f & second,
  float v
)    

mixing constructor

Parameters

first
color for interpolation
second
color for interpolation
v
specifies the percentage of first in the result color, clamped to [0,1]

Returns

the color gained by mapping [0,1]> [first, second]

Defined in Util/Graphics/Color.h:173


function
Util::Color4f::set

public inline
     
     
void set( float _r,
  float _g,
  float _b,
  float _a
)    

Defined in Util/Graphics/Color.h:187


function
Util::Color4f::isTransparent

public const inline
   
   
bool isTransparent( ) const

Returns

true iff the color is FULLY transparent

Defined in Util/Graphics/Color.h:194


function
Util::Color4f::isOpaque

public const inline
   
   
bool isOpaque( ) const

Returns

true iff the color is FULLY opaque

Defined in Util/Graphics/Color.h:197


function
Util::Color4f::data

public const inline
   
   
const float * data( ) const

Defined in Util/Graphics/Color.h:199


function
Util::Color4f::r

public const inline
   
   
float r( ) const

Defined in Util/Graphics/Color.h:201


function
Util::Color4f::r

public inline
     
     
void r( float value )

Defined in Util/Graphics/Color.h:202


function
Util::Color4f::g

public const inline
   
   
float g( ) const

Defined in Util/Graphics/Color.h:203


function
Util::Color4f::g

public inline
     
     
void g( float value )

Defined in Util/Graphics/Color.h:204


function
Util::Color4f::b

public const inline
   
   
float b( ) const

Defined in Util/Graphics/Color.h:205


function
Util::Color4f::b

public inline
     
     
void b( float value )

Defined in Util/Graphics/Color.h:206


function
Util::Color4f::a

public const inline
   
   
float a( ) const

Defined in Util/Graphics/Color.h:207


function
Util::Color4f::a

public inline
     
     
void a( float value )

Defined in Util/Graphics/Color.h:208


function
Util::Color4f::getR

public const inline
   
   
float getR( ) const

Defined in Util/Graphics/Color.h:210


function
Util::Color4f::getG

public const inline
   
   
float getG( ) const

Defined in Util/Graphics/Color.h:211


function
Util::Color4f::getB

public const inline
   
   
float getB( ) const

Defined in Util/Graphics/Color.h:212


function
Util::Color4f::getA

public const inline
   
   
float getA( ) const

Defined in Util/Graphics/Color.h:213


function
Util::Color4f::setR

public inline
     
     
void setR( float value )

Defined in Util/Graphics/Color.h:214


function
Util::Color4f::setG

public inline
     
     
void setG( float value )

Defined in Util/Graphics/Color.h:215


function
Util::Color4f::setB

public inline
     
     
void setB( float value )

Defined in Util/Graphics/Color.h:216


function
Util::Color4f::setA

public inline
     
     
void setA( float value )

Defined in Util/Graphics/Color.h:217


function
Util::Color4f::abs

public const inline
   
   
Color4f abs( ) const

Defined in Util/Graphics/Color.h:219


function
Util::Color4f::operator=

public
     
     
Color4f & operator=( const Color4f & void )

Defined in Util/Graphics/Color.h:223


function
Util::Color4f::operator=

public
     
     
Color4f & operator=( Color4f && void )

Defined in Util/Graphics/Color.h:224


function
Util::Color4f::operator==

public const inline
     
     
bool operator==( const Color4f & other ) const

Defined in Util/Graphics/Color.h:225


function
Util::Color4f::operator!=

public const inline
     
     
bool operator!=( const Color4f & other ) const

Defined in Util/Graphics/Color.h:226


function
Util::Color4f::operator+

public const inline
     
     
Color4f operator+( const Color4f & other ) const

Defined in Util/Graphics/Color.h:228


function
Util::Color4f::operator-

public const inline
     
     
Color4f operator-( const Color4f & other ) const

Defined in Util/Graphics/Color.h:231


function
Util::Color4f::operator*

public const inline
     
     
Color4f operator*( float f ) const

Defined in Util/Graphics/Color.h:234


function
Util::Color4f::operator*

public const inline
     
     
Color4f operator*( const Color4f & other ) const

Defined in Util/Graphics/Color.h:237


function
Util::Color4f::operator/

public const inline
     
     
Color4f operator/( float f ) const

Defined in Util/Graphics/Color.h:240


function
Util::Color4f::operator+=

public inline
     
     
Color4f & operator+=( const Color4f & other )

Defined in Util/Graphics/Color.h:244


function
Util::Color4f::operator-=

public inline
     
     
Color4f & operator-=( const Color4f & other )

Defined in Util/Graphics/Color.h:251


function
Util::Color4f::operator*=

public inline
     
     
Color4f & operator*=( const Color4f & other )

Defined in Util/Graphics/Color.h:258


function
Util::Color4f::operator*=

public inline
     
     
Color4f & operator*=( float f )

Defined in Util/Graphics/Color.h:265


function
Util::Color4f::operator/=

public inline
     
     
Color4f & operator/=( float f )

Defined in Util/Graphics/Color.h:272


function
Util::Color4f::toString

public const inline
   
   
std::string toString( ) const

Defined in Util/Graphics/Color.h:280