casa
5.7.0-16
|
#include <PlotOptions.h>
Public Member Functions | |
PlotColor () | |
Constructor. More... | |
virtual | ~PlotColor () |
Destructor. More... | |
virtual casacore::String | asHexadecimal () const =0 |
ABSTRACT METHODS //. More... | |
virtual casacore::String | asName () const =0 |
Returns this color's value as a human-readable name if applicable, or an empty casacore::String if inapplicable. More... | |
virtual void | setAsHexadecimalOrName (const casacore::String &str)=0 |
If the given casacore::String is a hexadecimal value, sets the color to it. More... | |
virtual double | alpha () const =0 |
Returns this color's alpha as a value between 0 (transparent) and 1 (opaque). More... | |
virtual void | setAlpha (double a)=0 |
Sets this color's alpha as a value between 0 (transparent) and 1 (opaque). More... | |
virtual void | setAsHexadecimal (const casacore::String &hex) |
CONVENIENCE METHODS //. More... | |
virtual void | setAsName (const casacore::String &name) |
Set's this color's value to the given named color. More... | |
virtual casacore::Record | toRecord () const |
RECORD METHODS //. More... | |
virtual void | fromRecord (const casacore::Record &record) |
virtual PlotColor & | operator= (const PlotColor &rh) |
OPERATORS //. More... | |
virtual bool | operator== (const PlotColor &rh) const |
Returns true if this PlotColor is equal to the given; false otherwise. More... | |
virtual bool | operator!= (const PlotColor &rh) const |
Returns true if this PlotColor is NOT equal to the given; false otherwise. More... | |
Static Protected Attributes | |
static const casacore::String | REC_HEXADECIMAL |
casacore::Record key names. More... | |
static const casacore::String | REC_ALPHA |
Definition at line 125 of file PlotOptions.h.
casa::PlotColor::PlotColor | ( | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
Returns this color's alpha as a value between 0 (transparent) and 1 (opaque).
|
pure virtual |
ABSTRACT METHODS //.
Returns this color's value in a hexadecimal form, i.e. "000000".
|
pure virtual |
Returns this color's value as a human-readable name if applicable, or an empty casacore::String if inapplicable.
|
virtual |
|
virtual |
Returns true if this PlotColor is NOT equal to the given; false otherwise.
OPERATORS //.
Assigns the value of the given PlotColor to this one.
|
virtual |
Returns true if this PlotColor is equal to the given; false otherwise.
|
pure virtual |
Sets this color's alpha as a value between 0 (transparent) and 1 (opaque).
|
virtual |
CONVENIENCE METHODS //.
Sets this color's value as a hexadecimal value.
|
pure virtual |
If the given casacore::String is a hexadecimal value, sets the color to it.
Otherwise tries to set the color as a name. If the given name is invalid, the behavior is undefined but should probably default to a sensible value.
|
virtual |
Set's this color's value to the given named color.
|
virtual |
RECORD METHODS //.
Gets/Sets the color as a Record.
|
staticprotected |
Definition at line 192 of file PlotOptions.h.
|
staticprotected |
casacore::Record key names.
Definition at line 191 of file PlotOptions.h.