kalzium
Avogadro::Color Class Reference
#include <color.h>
Detailed Description
This class represents a color in OpenGL float red-green-blue-alpha format.
Definition at line 41 of file src/color.h.
Public Member Functions | |
| Color () | |
| virtual | ~Color () |
| Color (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha=1.0) | |
| Color (const OpenBabel::OBAtom *atom) | |
| Color & | operator= (const Color &other) |
| virtual void | set (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha=1.0) |
| virtual void | set (const OpenBabel::OBAtom *atom) |
| virtual void | set (double value, double low, double high) |
| virtual void | apply () |
| virtual void | applyAsMaterials () |
Constructor & Destructor Documentation
| Avogadro::Color::Color | ( | ) | [inline] |
Definition at line 44 of file src/color.h.
| virtual Avogadro::Color::~Color | ( | ) | [inline, virtual] |
Definition at line 45 of file src/color.h.
| Avogadro::Color::Color | ( | GLfloat | red, | |
| GLfloat | green, | |||
| GLfloat | blue, | |||
| GLfloat | alpha = 1.0 | |||
| ) |
| Avogadro::Color::Color | ( | const OpenBabel::OBAtom * | atom | ) |
This constructor uses OpenBabel to retrieve the color in which the atom should be rendered.
Default is to render based on element.
Member Function Documentation
| void Avogadro::Color::set | ( | GLfloat | red, | |
| GLfloat | green, | |||
| GLfloat | blue, | |||
| GLfloat | alpha = 1.0 | |||
| ) | [virtual] |
| void Avogadro::Color::set | ( | const OpenBabel::OBAtom * | atom | ) | [virtual] |
| void Avogadro::Color::set | ( | double | value, | |
| double | low, | |||
| double | high | |||
| ) | [virtual] |
| virtual void Avogadro::Color::apply | ( | ) | [inline, virtual] |
Sets this color to be the one used by OpenGL for rendering when lighting is disabled.
Definition at line 86 of file src/color.h.
| void Avogadro::Color::applyAsMaterials | ( | ) | [virtual] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference