Isis Developer Reference
Color.h
Go to the documentation of this file.
1 #ifndef Color_H
2 #define Color_H
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 class QColor;
11 class QRegExp;
12 class QString;
13 
14 namespace Isis {
26  class Color {
27  public:
28  static QColor fromRGBAString(QString);
29  static QString toRGBAString(QColor);
30  static QRegExp colorRGBAFormat();
31 
32  private:
33  Color();
39  Color(const Color &);
40  ~Color();
46  Color &operator=(const Color &);
47  };
48 }
49 
50 #endif
Isis::Color
This class is designed to serialize QColor in a human-readable form.
Definition: Color.h:26
Isis::Color::colorRGBAFormat
static QRegExp colorRGBAFormat()
Get the colorRGBAFormat.
Definition: Color.cpp:64
Isis::IException::Unknown
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
Isis::Color::toRGBAString
static QString toRGBAString(QColor)
Convert a QColor to its QString.
Definition: Color.cpp:38
Isis::Color::fromRGBAString
static QColor fromRGBAString(QString)
Converts a QString to its QColor.
Definition: Color.cpp:21
Color.h
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::toInt
int toInt(const QString &string)
Global function to convert from a string to an integer.
Definition: IString.cpp:93
Isis::IException
Isis exception class.
Definition: IException.h:91
IException.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16