Isis 3 Programmer Reference
Isis::Color Class Reference

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

#include <Color.h>

Collaboration diagram for Isis::Color:
Collaboration graph

Static Public Member Functions

static QColor fromRGBAString (QString)
 Converts a QString to its QColor. More...
 
static QString toRGBAString (QColor)
 Convert a QColor to its QString. More...
 
static QRegExp colorRGBAFormat ()
 Get the colorRGBAFormat. More...
 

Private Member Functions

 Color (const Color &)
 Unused constructor? More...
 
Coloroperator= (const Color &)
 This function does not appear to be in use. More...
 

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
History:
2017-08-30 Summer Stapleton - Updated documentation. References #4807.

Definition at line 20 of file Color.h.

Constructor & Destructor Documentation

◆ Color()

Isis::Color::Color ( const Color )
private

Unused constructor?

Returns
???

Member Function Documentation

◆ colorRGBAFormat()

QRegExp Isis::Color::colorRGBAFormat ( )
static

Get the colorRGBAFormat.

Returns
A QRegExp of the color format

Definition at line 58 of file Color.cpp.

Referenced by fromRGBAString().

◆ fromRGBAString()

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

Converts a QString to its QColor.

Returns
A QColor given a QString

Definition at line 15 of file Color.cpp.

References colorRGBAFormat(), and Isis::toInt().

Referenced by Isis::ImageList::applyColors(), and Isis::ImageListActionWorkOrder::execute().

◆ operator=()

Color& Isis::Color::operator= ( const Color )
private

This function does not appear to be in use.

Returns
???

◆ toRGBAString()

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

Convert a QColor to its QString.

Returns
A QString given a QColor

Definition at line 32 of file Color.cpp.

References _FILEINFO_, and Isis::IException::Unknown.

Referenced by Isis::ImageList::saveAndApplyColor(), Isis::ImageList::saveAndApplyRandomColor(), and Isis::ImageListActionWorkOrder::setupExecution().


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