ColorType.h File Reference

#include <algorithm>
#include <vector>
#include "AppConfig.h"
#include "DataVariantValidator.h"

Go to the source code of this file.

Classes

class  ColorType
 An RGB triplet. More...

Defines

#define COLORTYPE_TO_QCOLOR(colorType)   (colorType.isValid() ? QColor(colorType.mRed, colorType.mGreen, colorType.mBlue, colorType.mAlpha) : QColor())
#define QCOLOR_TO_COLORTYPE(qcolor)   (qcolor.isValid() ? ColorType(qcolor.red(), qcolor.green(), qcolor.blue(), qcolor.alpha()) : ColorType())


Define Documentation

#define COLORTYPE_TO_QCOLOR ( colorType   )     (colorType.isValid() ? QColor(colorType.mRed, colorType.mGreen, colorType.mBlue, colorType.mAlpha) : QColor()) [related]

Converts a ColorType to a QColor.

Parameters:
colorType The ColorType to convert to a QColor. If an invalid ColorType is passed in, an invalid QColor will be created.
See also:
ColorType::isValid()

Definition at line 30 of file ColorType.h.

#define QCOLOR_TO_COLORTYPE ( qcolor   )     (qcolor.isValid() ? ColorType(qcolor.red(), qcolor.green(), qcolor.blue(), qcolor.alpha()) : ColorType()) [related]

Converts a QColor to a ColorType.

Parameters:
qcolor The QColor to convert to a ColorType. If an invalid QColor is passed in, an invalid ColorType will be created.
See also:
ColorType::isValid()

Definition at line 44 of file ColorType.h.


Software Development Kit - Opticks 4.9.0 Build 16218