Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::ColorLineEdit Class Reference
+ Inheritance diagram for inviwo::ColorLineEdit:

Public Types

enum class  ColorRepresentation { Integer , FloatingPoint , Hexadecimal }
 

Public Slots

void setInvalid (bool invalid=true)
 

Signals

void colorChanged ()
 

Public Member Functions

 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 >
getColor () const
 
dvec4 getColor () const
 
bool hasAlpha () const
 
void setRepresentation (ColorRepresentation rep)
 
ColorRepresentation getRepresentation () const
 
bool isValid () const
 

Protected Member Functions

virtual void changeEvent (QEvent *event) override
 
virtual void focusInEvent (QFocusEvent *event) override
 
virtual void focusOutEvent (QFocusEvent *event) override
 
virtual void keyPressEvent (QKeyEvent *event) override
 

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