TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
Color Class Reference

#include <color.h>

Inheritance diagram for Color:
[legend]
Collaboration diagram for Color:
[legend]

Public Types

enum class  Type {
  Red , Green , Blue , Black ,
  White , Yellow , Cyan , Magenta
}
 

Public Member Functions

 Color ()
 
Coloroperator= (const Color &rhs)
 
 Color (const double &r_, const double &g_, const double &b_, const double &a_)
 
 Color (const double *rgba)
 
 Color (const std::string &vector_str)
 
 Color (const Type type_)
 
bool isA (const char *name) override
 
void clear () override
 
void print (std::ostream &os) override
 
void set (double &r, double &g, double &b, double &a)
 
 ~Color ()
 
double getR () const
 
double getG () const
 
double getB () const
 
double getA () const
 
- Public Member Functions inherited from PropertyBase
virtual bool validate () const
 
virtual void set (const std::any &value)
 

Additional Inherited Members

- Protected Member Functions inherited from PropertyBase
 PropertyBase ()
 
virtual ~PropertyBase ()
 
virtual PropertyBasegetPointer ()
 
virtual PropertyBaseoperator= (const PropertyBase &rhs)
 

Member Enumeration Documentation

◆ Type

enum class Color::Type
strong
Enumerator
Red 
Green 
Blue 
Black 
White 
Yellow 
Cyan 
Magenta 

Constructor & Destructor Documentation

◆ Color() [1/5]

Color::Color ( )

◆ Color() [2/5]

Color::Color ( const double &  r_,
const double &  g_,
const double &  b_,
const double &  a_ 
)

◆ Color() [3/5]

Color::Color ( const double *  rgba)

◆ Color() [4/5]

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

◆ Color() [5/5]

Color::Color ( const Type  type_)

◆ ~Color()

Color::~Color ( )

Member Function Documentation

◆ clear()

void Color::clear ( )
overridevirtual

Implements PropertyBase.

◆ getA()

double Color::getA ( ) const

◆ getB()

double Color::getB ( ) const

◆ getG()

double Color::getG ( ) const

◆ getR()

double Color::getR ( ) const

◆ isA()

bool Color::isA ( const char *  name)
overridevirtual

Implements PropertyBase.

◆ operator=()

Color & Color::operator= ( const Color rhs)

◆ print()

void Color::print ( std::ostream &  os)
overridevirtual

Implements PropertyBase.

◆ set()

void Color::set ( double &  r,
double &  g,
double &  b,
double &  a 
)

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