5#ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
6#define BALL_VIEW_DATATYPE_COLORRGBA_H
8#ifndef BALL_VIEW_DATATYPE_COLORUNIT_H
12#ifndef BALL_CONCEPT_TIMESTAMP_H
166 void set(
const char* value);
186 void get(
char* value)
const;
217 void get(QColor& color)
const;
223 bool set(
const QColor& color);
395 void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
433 void stringToRGBA_(
const String& s);
441#ifdef BALL_COMPILER_MSVC
446# ifndef BALL_NO_INLINE_FUNCTIONS
447# include <BALL/VIEW/DATATYPE/colorRGBA.iC>
BALL_EXPORT bool operator<(const String &s1, const String &s2)
BALL_EXPORT bool operator>(const String &s1, const String &s2)
BALL_EXPORT bool operator==(const String &s1, const String &s2)
BALL_EXPORT bool operator!=(const String &s1, const String &s2)
BALL_EXPORT bool operator>=(const String &s1, const String &s2)
std::istream & operator>>(std::istream &is, TRegularData1D< ValueType > &grid)
Input operator.
BALL_EXPORT bool operator<=(const String &s1, const String &s2)
std::ostream & operator<<(std::ostream &o, const PixelFormat &f)
ColorRGBA BALL_SELECTED_COLOR
PreciseTime BALL_SELECTED_COLOR_CHANGE_TIME
ColorRGBA(const char *value)
QColor getQColor() const
Get a QColor representing this color.
const ColorUnit & getGreen() const
const ColorUnit & getRed() const
void get(char *value) const
void setGreen(const ColorUnit &green_value)
ColorRGBA(const String &value)
void set(const ColorUnit &red_value, const ColorUnit &green_value, const ColorUnit &blue_value, const ColorUnit &alpha_value=(float) 1)
void setBlue(const ColorUnit &blue_value)
void swap(ColorRGBA &color)
void get(String &value) const
void setRed(const ColorUnit &red_value)
void set(const ColorHSV &color)
const ColorUnit & getAlpha() const
const ColorUnit & getBlue() const
ColorRGBA getInverseColor() const
void get(QColor &color) const
Assign to a QT QColor.
ColorRGBA(const ColorUnit &red_value, const ColorUnit &green_value, const ColorUnit &blue_value, const ColorUnit &alpha_value=(float) 1)
ColorRGBA(const QColor &color, const ColorUnit &alpha)
Assignment from a QT QColor.
ColorRGBA(const ColorHSV &color)
void dump(std::ostream &s=std::cout, Size depth=0) const
void set(const ColorRGBA &color)
ColorRGBA(const ColorRGBA &color)
void get(ColorUnit &red_value, ColorUnit &green_value, ColorUnit &blue_value, ColorUnit &alpha_value) const
void get(ColorUnit &red_value, ColorUnit &green_value, ColorUnit &blue_value) const
bool set(const QColor &color)
void set(const String &value)
void get(ColorHSV &color) const
void set(const char *value)
void setAlpha(const ColorUnit &alpha_value)
ColorRGBA(const QColor &color)
Assignment from a QT QColor.