CLightParamWidget Class Reference

4D color manipulation widget. More...

#include <lightwidget.h>

List of all members.

Signals

void contentsChanged (void)
 Emitted when the user changes data in the widget.

Public Member Functions

 CLightParamWidget (const QString &name=QString(), bool isColorWidget=true)
 Constructs a light oaram widget.
vec4_t getValues (void) const
 Returns the current values stored in this widget.
void setValues (const vec4_t &values)
 Sets the values stored in this widget.


Detailed Description

4D color manipulation widget.

This widget is a collection of four spin boxes to select and RGBA value and a push button that brings up a color selection dialog. The intention is, that the user can select colors when seeing them and then manipulate them without bringing up the color dialog every time. The widget can also be used to ask the user for a 4D position vector. In this case, the color selection button is invisible, but still takes space of the widget. This should make it easy to align it with other CLightParam widgets.


Constructor & Destructor Documentation

CLightParamWidget::CLightParamWidget ( const QString &  name = QString(),
bool  isColorWidget = true 
)

Constructs a light oaram widget.

Parameters:
name Name of the property to edit. This name is displayed to the user.
isColorWidget Flag wether this widget is used as a color input widget (the default). If this is set to False, the the color selection button will not be available.


Member Function Documentation

void CLightParamWidget::setValues ( const vec4_t values  ) 

Sets the values stored in this widget.

Parameters:
values New values.

void CLightParamWidget::contentsChanged ( void   )  [signal]

Emitted when the user changes data in the widget.


The documentation for this class was generated from the following files:
Generated on Sun Mar 2 17:12:32 2008 for Shader Maker by  doxygen 1.5.4