widget in TF dialog for entering six digit HTML hex color codes
More...
#include <tfcoloredit.h>
|
void | colorChanged (const QColor &color) |
|
void | colorChanged () |
|
|
| TFColorEdit (QWidget *parent=nullptr) |
|
virtual QSize | sizeHint () const override |
|
void | setColor (const QColor &color, bool ambiguous) |
|
| ColorLineEdit (QWidget *parent=nullptr) |
|
void | setColor (ivec3 v, ColorRepresentation rep=ColorRepresentation::Integer) |
|
void | setColor (ivec4 v, ColorRepresentation rep=ColorRepresentation::Integer) |
|
void | setColor (vec3 v, ColorRepresentation rep=ColorRepresentation::FloatingPoint) |
|
void | setColor (vec4 v, ColorRepresentation rep=ColorRepresentation::FloatingPoint) |
|
void | setColor (dvec3 v, ColorRepresentation rep=ColorRepresentation::FloatingPoint) |
|
void | setColor (dvec4 v, ColorRepresentation rep=ColorRepresentation::FloatingPoint) |
|
template<typename T > |
T | getColor () const |
|
dvec4 | getColor () const |
|
bool | hasAlpha () const |
|
void | setRepresentation (ColorRepresentation rep) |
|
ColorRepresentation | getRepresentation () const |
|
template<> |
dvec3 | getColor () const |
|
template<> |
dvec4 | getColor () const |
|
template<> |
dvec3 | getColor () const |
|
template<> |
dvec4 | getColor () const |
|
|
enum | ColorRepresentation { Integer,
FloatingPoint,
Hexadecimal
} |
|
virtual void | changeEvent (QEvent *event) override |
|
virtual void | focusInEvent (QFocusEvent *event) override |
|
virtual void | focusOutEvent (QFocusEvent *event) override |
|
virtual void | keyPressEvent (QKeyEvent *event) override |
|
widget in TF dialog for entering six digit HTML hex color codes
◆ colorChanged
void inviwo::TFColorEdit::colorChanged |
( |
const QColor & |
color | ) |
|
|
signal |
signal when a new valid color hex code has been entered.
◆ setColor()
void inviwo::TFColorEdit::setColor |
( |
const QColor & |
color, |
|
|
bool |
ambiguous |
|
) |
| |
set the color value of the line edit, if the value is ambiguous nothing will be shown. Otherwise the rgb components of the color are shown as hexadecimal color code, e.g. "#f9a033".
- Parameters
-
color | rgb components are converted into a hexadecimal color code |
ambiguous | whether the color has a name or not |
The documentation for this class was generated from the following files:
- tfcoloredit.h
- tfcoloredit.cpp