Image Component Library (ICL)
Public Member Functions | Private Member Functions | List of all members
icl::qt::ColorHandle Class Reference

Class wrapping ColorLabel GUI compoenent handling. More...

#include <ColorHandle.h>

Inheritance diagram for icl::qt::ColorHandle:
icl::qt::GUIHandle< ColorLabel > icl::qt::GUIHandleBase

Public Member Functions

 ColorHandle ()
 Create an empty handle. More...
 
 ColorHandle (ColorLabel *l, GUIWidget *w)
 Create a new LabelHandle. More...
 
void operator= (const core::Color &rgb)
 sets new rgb color More...
 
void operator= (const core::Color4D &rgba)
 sets new rgba color (alpha is only used if alpha is enabled for the gui component) More...
 
core::Color getRGB () const
 returns current rgb color More...
 
core::Color4D getColor () const
 convenienc function that is the same as getRGBA() More...
 
core::Color4D getRGBA () const
 returns current rgba color More...
 
bool hasAlpha () const
 return whether wrapped ColorLabel supports alpha More...
 
- Public Member Functions inherited from icl::qt::GUIHandle< ColorLabel >
const ColorLabeloperator* () const
 use the *-oprator to get the wrapped component (const) More...
 
ColorLabel *& operator* ()
 use the *-oprator to get the wrapped component (unconst) More...
 
ColorLabeloperator-> ()
 this can be used for direct access to wrapped type More...
 
const ColorLabeloperator-> () const
 this can be used for direct access to wrapped type More...
 
bool isNull () const
 returns whether wrapped pointer is null or not More...
 
void enable ()
 enables the wrapped GUI component More...
 
void disable ()
 disables the wrapped GUI component More...
 
- Public Member Functions inherited from icl::qt::GUIHandleBase
virtual ~GUIHandleBase ()
 virtual destructor More...
 
GUIWidgetgetGUIWidget ()
 returns parent GUIWidget pointer More...
 
virtual void registerCallback (const GUI::Callback &cb, const std::string &events="all")
 registers a callback on this gui widget More...
 
virtual void registerCallback (const GUI::ComplexCallback &cb, const std::string &events="all")
 registers a complex callback on this gui component More...
 
virtual void removeCallbacks ()
 removes all callbacks from parent GUIWidget component More...
 
virtual void cb ()
 envokes all registered callbacks More...
 

Private Member Functions

ColorLabellab ()
 utitlity function More...
 
const ColorLabellab () const
 utitlity function More...
 

Additional Inherited Members

- Protected Member Functions inherited from icl::qt::GUIHandle< ColorLabel >
 GUIHandle ()
 as GUIHandle is just an interface, its base constructor is protected More...
 
 GUIHandle (ColorLabel *t, GUIWidget *w)
 as GUIHandle is just an interface, its base constructor is protected More...
 
- Protected Member Functions inherited from icl::qt::GUIHandleBase
 GUIHandleBase (GUIWidget *w=0)
 create a new GUIHandleBase More...
 

Detailed Description

Class wrapping ColorLabel GUI compoenent handling.

Constructor & Destructor Documentation

icl::qt::ColorHandle::ColorHandle ( )
inline

Create an empty handle.

icl::qt::ColorHandle::ColorHandle ( ColorLabel l,
GUIWidget w 
)
inline

Member Function Documentation

core::Color4D icl::qt::ColorHandle::getColor ( ) const
inline

convenienc function that is the same as getRGBA()

core::Color icl::qt::ColorHandle::getRGB ( ) const
inline

returns current rgb color

core::Color4D icl::qt::ColorHandle::getRGBA ( ) const
inline

returns current rgba color

bool icl::qt::ColorHandle::hasAlpha ( ) const
inline

return whether wrapped ColorLabel supports alpha

ColorLabel* icl::qt::ColorHandle::lab ( )
inlineprivate

utitlity function

const ColorLabel* icl::qt::ColorHandle::lab ( ) const
inlineprivate

utitlity function

void icl::qt::ColorHandle::operator= ( const core::Color rgb)
inline

sets new rgb color

void icl::qt::ColorHandle::operator= ( const core::Color4D rgba)
inline

sets new rgba color (alpha is only used if alpha is enabled for the gui component)


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