Inviwo  0.9.10.1
Inviwo documentation
inviwo::ColorLineEdit Class Reference
+ Inheritance diagram for inviwo::ColorLineEdit:

Public Types

enum  ColorRepresentation { Integer, FloatingPoint, Hexadecimal }
 

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
 
template<>
dvec3 getColor () const
 
template<>
dvec4 getColor () const
 
template<>
dvec3 getColor () const
 
template<>
dvec4 getColor () 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 files: