BALL
1.4.79
|
#include <BALL/VIEW/DATATYPE/colorExtensions.h>
Public Member Functions | |
Constructors | |
ColorExtension2 () | |
ColorExtension2 (const ColorExtension2 &color_extension) | |
virtual | ~ColorExtension2 () |
virtual void | clear () |
Assignment methods | |
void | set (const ColorExtension2 &color_extension) |
const ColorExtension2 & | operator= (const ColorExtension2 &color_extension) |
void | swap (ColorExtension2 &color_extension) |
Accessors: inspectors and mutators | |
void | setColor2 (const ColorRGBA &color) |
ColorRGBA & | getColor2 () |
const ColorRGBA & | getColor2 () const |
void | getColor2 (ColorRGBA &color) const |
debuggers and diagnostics | |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
Base class for geometric objects that need two colors. It provides the derived class with methods for accessing these colors.
Definition at line 25 of file colorExtensions.h.
BALL::VIEW::ColorExtension2::ColorExtension2 | ( | ) |
Default Constructor. The colors are set to (0.0, 0.0, 0.0, 1.0).
BALL::VIEW::ColorExtension2::ColorExtension2 | ( | const ColorExtension2 & | color_extension | ) |
Copy constructor.
|
virtual |
Destructor.
|
virtual |
Explicit default initialization. Set the colors of this colorExtension2 to the color (0.0, 0.0, 0.0, 1.0). Calls ColorRGBA::clear.
Reimplemented in BALL::VIEW::TwoColoredTube, and BALL::VIEW::TwoColoredLine.
|
virtual |
Internal value dump. Dump the current state of this colorExtension2 to the output ostream s with dumping depth depth.
s | output stream where to output the state of this colorExtension2 |
depth | the dumping depth |
Reimplemented in BALL::VIEW::TwoColoredTube, and BALL::VIEW::TwoColoredLine.
ColorRGBA& BALL::VIEW::ColorExtension2::getColor2 | ( | ) |
Mutable inspection of the second color of this colorExtension2.
const ColorRGBA& BALL::VIEW::ColorExtension2::getColor2 | ( | ) | const |
Non-mutable inspection of the second color
void BALL::VIEW::ColorExtension2::getColor2 | ( | ColorRGBA & | color | ) | const |
Inspection of the second color of this colorExtension2.
const ColorExtension2& BALL::VIEW::ColorExtension2::operator= | ( | const ColorExtension2 & | color_extension | ) |
Assignment operator. Calls set.
void BALL::VIEW::ColorExtension2::set | ( | const ColorExtension2 & | color_extension | ) |
Assignment.
void BALL::VIEW::ColorExtension2::setColor2 | ( | const ColorRGBA & | color | ) |
Change the second color
void BALL::VIEW::ColorExtension2::swap | ( | ColorExtension2 & | color_extension | ) |
Swapping of colorExtensions.