Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Stg::Color Class Reference

#include <stage.hh>

Public Member Functions

 Color (double r, double g, double b, double a=1.0)
 
 Color (const std::string &name)
 
 Color ()
 
void GLSet (void)
 
const ColorLoad (Worldfile *wf, int entity)
 
bool operator!= (const Color &other) const
 
bool operator== (const Color &other) const
 
void Print (const char *prefix) const
 

Static Public Member Functions

static Color RandomColor ()
 

Public Attributes

double a
 
double b
 
double g
 
double r
 

Static Public Attributes

static const Color blue
 
static const Color cyan
 
static const Color green
 
static const Color magenta
 
static const Color red
 
static const Color yellow
 

Detailed Description

Definition at line 197 of file stage.hh.

Constructor & Destructor Documentation

Color::Color ( double  r,
double  g,
double  b,
double  a = 1.0 
)

Definition at line 9 of file color.cc.

Color::Color ( const std::string &  name)

Look up the color in the X11-style database. If the color is not found in the database, a cheerful red color will be used instead.

Definition at line 26 of file color.cc.

Color::Color ( )

Definition at line 13 of file color.cc.

Member Function Documentation

void Stg::Color::GLSet ( void  )
inline

Definition at line 221 of file stage.hh.

const Color & Color::Load ( Worldfile wf,
int  entity 
)

Definition at line 105 of file color.cc.

bool Color::operator!= ( const Color other) const

Definition at line 17 of file color.cc.

bool Color::operator== ( const Color other) const

Definition at line 90 of file color.cc.

void Color::Print ( const char *  prefix) const

Definition at line 100 of file color.cc.

Color Color::RandomColor ( )
static

Definition at line 95 of file color.cc.

Member Data Documentation

double Stg::Color::a

Definition at line 200 of file stage.hh.

double Stg::Color::b

Definition at line 200 of file stage.hh.

const Color Color::blue
static

convenient constants

Definition at line 217 of file stage.hh.

const Color Color::cyan
static

Definition at line 217 of file stage.hh.

double Stg::Color::g

Definition at line 200 of file stage.hh.

const Color Color::green
static

Definition at line 217 of file stage.hh.

const Color Color::magenta
static

Definition at line 217 of file stage.hh.

double Stg::Color::r

Definition at line 200 of file stage.hh.

const Color Color::red
static

Definition at line 217 of file stage.hh.

const Color Color::yellow
static

Definition at line 217 of file stage.hh.


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


stage
Author(s): Richard Vaughan , Brian Gerkey , Reed Hedges , Andrew Howard , Toby Collett , Pooya Karimian , Jeremy Asher , Alex Couture-Beil , Geoff Biggs , Rich Mattes , Abbas Sadat
autogenerated on Mon Jun 10 2019 15:06:12