#include <colorExtensions.h>
Public Member Functions |
|
Constructors
|
|
MultiColorExtension () | |
Default Constructor. |
|
MultiColorExtension (const MultiColorExtension &color_extension) | |
Copy constructor. |
|
virtual | ~MultiColorExtension () |
Destructor. |
|
virtual void | clear () |
Explicit default initialization.
|
|
Assignment methods
|
|
void | set (const MultiColorExtension &color_extension) |
Assignment. |
|
const MultiColorExtension & | operator= (const MultiColorExtension &color_extension) |
Assignment operator. |
|
void | swap (MultiColorExtension &color_extension) |
Swapping of
colorExtensions. |
|
Accessors: inspectors and mutators
|
|
void | setColors (const vector< ColorRGBA > &colors) |
Change the colors. |
|
vector< ColorRGBA > & | getColors () |
Mutable inspection of the
colors. |
|
const vector< ColorRGBA > & | getColors () const |
Non-mutable inspection of the
colors. |
|
void | setAlphas (Size alpha) |
Set the alpha values for all
colors. |
|
debuggers and diagnostics
|
|
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
Internal value dump. |
|
Public Attributes |
|
vector< ColorRGBA > | colors |
It provides the derived class with methods for accessing these colors.
virtual void BALL::VIEW::MultiColorExtension::clear | ( | ) | [virtual] |
Explicit default initialization.
Clears the color vector.
Reimplemented in BALL::VIEW::Mesh, and BALL::VIEW::MultiLine.
virtual void BALL::VIEW::MultiColorExtension::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::Mesh, and BALL::VIEW::MultiLine.
const MultiColorExtension& BALL::VIEW::MultiColorExtension::operator= | ( | const MultiColorExtension & | color_extension | ) |
Assignment operator.
Calls set.