USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::Color Class Reference

This class is designed to serialize QColor in a human-readable form. More...

#include <Color.h>

Static Public Member Functions

static QColor fromRGBAString (QString)
static QString toRGBAString (QColor)
static QRegExp colorRGBAFormat ()

Detailed Description

This class is designed to serialize QColor in a human-readable form.

QColor provides no string conversions that include the alpha value (probably because argb and rgba both look the same and neither are standard). But encoding the colors using hex is worse than the non-standard conversion – so this class will convert to/from rgba.

Author
2012-08-?? Steven Lambright and Stuart Sides

Member Function Documentation

QRegExp Isis::Color::colorRGBAFormat ( )
static

Referenced by fromRGBAString().

QColor Isis::Color::fromRGBAString ( QString  string)
static
QString Isis::Color::toRGBAString ( QColor  color)
static

The documentation for this class was generated from the following files: