#include <colorExtensions.h>
Public Member Functions |
|
Constructors
|
|
ColorExtension2 () | |
Default Constructor. |
|
ColorExtension2 (const ColorExtension2 &color_extension) | |
Copy constructor. |
|
virtual | ~ColorExtension2 () |
Destructor. |
|
virtual void | clear () |
Explicit default initialization.
|
|
Assignment methods
|
|
void | set (const ColorExtension2 &color_extension) |
Assignment. |
|
const ColorExtension2 & | operator= (const ColorExtension2 &color_extension) |
Assignment operator. |
|
void | swap (ColorExtension2 &color_extension) |
Swapping of
colorExtensions. |
|
Accessors: inspectors and mutators
|
|
void | setColor2 (const ColorRGBA &color) |
Change the second color. |
|
ColorRGBA & | getColor2 () |
Mutable inspection of the second
color of this colorExtension2. |
|
const ColorRGBA & | getColor2 () const |
Non-mutable inspection of the second
color. |
|
void | getColor2 (ColorRGBA &color) const |
Inspection of the second color of
this colorExtension2. |
|
debuggers and diagnostics
|
|
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
Internal value dump. |
It provides the derived class with methods for accessing these colors.
BALL::VIEW::ColorExtension2::ColorExtension2 | ( | ) |
Default Constructor.
The colors are set to (0.0, 0.0, 0.0, 1.0).
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::TwoColoredLine, and BALL::VIEW::TwoColoredTube.
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::TwoColoredLine, and BALL::VIEW::TwoColoredTube.
const ColorExtension2& BALL::VIEW::ColorExtension2::operator= | ( | const ColorExtension2 & | color_extension | ) |
Assignment operator.
Calls set.