BALL
1.4.1
|
#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 |
Private Attributes | |
ColorRGBA | color2_ |
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.
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 BALL::VIEW::ColorExtension2::~ColorExtension2 | ( | ) | [virtual] |
Destructor.
virtual void BALL::VIEW::ColorExtension2::clear | ( | ) | [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 void BALL::VIEW::ColorExtension2::dump | ( | std::ostream & | s = std::cout , |
Size | depth = 0 |
||
) | const [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.
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.
Definition at line 111 of file colorExtensions.h.