FlightGear next
FGColor Class Reference

#include <FGColor.hxx>

Public Member Functions

 FGColor ()
 
 FGColor (float r, float g, float b, float a=1.0f)
 
 FGColor (const SGPropertyNode *prop)
 
 FGColor (FGColor *c)
 
void clear ()
 
bool merge (const SGPropertyNode *prop)
 
bool merge (const FGColor *color)
 
bool set (const SGPropertyNode *prop)
 
bool set (const FGColor *color)
 
bool set (float r, float g, float b, float a=1.0f)
 
bool isValid () const
 
void print () const
 
void setRed (float red)
 
void setGreen (float green)
 
void setBlue (float blue)
 
void setAlpha (float alpha)
 
float red () const
 
float green () const
 
float blue () const
 
float alpha () const
 

Protected Attributes

float _red
 
float _green
 
float _blue
 
float _alpha
 

Detailed Description

Definition at line 7 of file FGColor.hxx.

Constructor & Destructor Documentation

◆ FGColor() [1/4]

FGColor::FGColor ( )
inline

Definition at line 9 of file FGColor.hxx.

◆ FGColor() [2/4]

FGColor::FGColor ( float r,
float g,
float b,
float a = 1.0f )
inline

Definition at line 10 of file FGColor.hxx.

◆ FGColor() [3/4]

FGColor::FGColor ( const SGPropertyNode * prop)
inline

Definition at line 11 of file FGColor.hxx.

◆ FGColor() [4/4]

FGColor::FGColor ( FGColor * c)
inline

Definition at line 12 of file FGColor.hxx.

Member Function Documentation

◆ alpha()

float FGColor::alpha ( ) const
inline

Definition at line 40 of file FGColor.hxx.

◆ blue()

float FGColor::blue ( ) const
inline

Definition at line 39 of file FGColor.hxx.

◆ clear()

void FGColor::clear ( )
inline

Definition at line 16 of file FGColor.hxx.

◆ green()

float FGColor::green ( ) const
inline

Definition at line 38 of file FGColor.hxx.

◆ isValid()

bool FGColor::isValid ( ) const
inline

Definition at line 27 of file FGColor.hxx.

◆ merge() [1/2]

bool FGColor::merge ( const FGColor * color)

Definition at line 41 of file FGColor.cxx.

◆ merge() [2/2]

bool FGColor::merge ( const SGPropertyNode * prop)

Definition at line 22 of file FGColor.cxx.

◆ print()

void FGColor::print ( ) const

Definition at line 16 of file FGColor.cxx.

◆ red()

float FGColor::red ( ) const
inline

Definition at line 37 of file FGColor.hxx.

◆ set() [1/3]

bool FGColor::set ( const FGColor * color)
inline

Definition at line 22 of file FGColor.hxx.

◆ set() [2/3]

bool FGColor::set ( const SGPropertyNode * prop)
inline

Definition at line 21 of file FGColor.hxx.

◆ set() [3/3]

bool FGColor::set ( float r,
float g,
float b,
float a = 1.0f )
inline

Definition at line 23 of file FGColor.hxx.

◆ setAlpha()

void FGColor::setAlpha ( float alpha)
inline

Definition at line 35 of file FGColor.hxx.

◆ setBlue()

void FGColor::setBlue ( float blue)
inline

Definition at line 34 of file FGColor.hxx.

◆ setGreen()

void FGColor::setGreen ( float green)
inline

Definition at line 33 of file FGColor.hxx.

◆ setRed()

void FGColor::setRed ( float red)
inline

Definition at line 32 of file FGColor.hxx.

Member Data Documentation

◆ _alpha

float FGColor::_alpha
protected

Definition at line 43 of file FGColor.hxx.

◆ _blue

float FGColor::_blue
protected

Definition at line 43 of file FGColor.hxx.

◆ _green

float FGColor::_green
protected

Definition at line 43 of file FGColor.hxx.

◆ _red

float FGColor::_red
protected

Definition at line 43 of file FGColor.hxx.


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