Developer Documentation
LightWidget Class Reference
Inheritance diagram for LightWidget:

Public Member Functions

 LightWidget (ACG::SceneGraph::BaseNode *_node, QWidget *parent=0)
 

Protected Member Functions

virtual void showEvent (QShowEvent *event)
 Initialize contents of widget before showing it. More...
 

Private Slots

void directionalToggled ()
 The directional checkbox changed -> update object. More...
 
void fixedPositionChanged ()
 The fixed position checkbox. More...
 
void ambientChanged ()
 Color values have changed. More...
 
void diffuseChanged ()
 
void specularChanged ()
 
void brightnessChanged (int _newValue)
 Brightness value has changed. More...
 
void radiusChanged ()
 Light radius has changed. More...
 
void spotChanged ()
 Spot direction changed. More...
 

Private Member Functions

bool getObject ()
 Initializes the internal object. Returns true if successfull. More...
 
void updated ()
 Called when the object has been updated. More...
 

Private Attributes

ACG::SceneGraph::LightNodenode_
 
LightObjectobject_
 
LightSourcelight_
 
bool updatingWidgets_
 

Detailed Description

Definition at line 51 of file LightWidget.hh.

Constructor & Destructor Documentation

◆ LightWidget()

LightWidget::LightWidget ( ACG::SceneGraph::BaseNode _node,
QWidget *  parent = 0 
)

Definition at line 46 of file LightWidget.cc.

Member Function Documentation

◆ ambientChanged

void LightWidget::ambientChanged ( )
privateslot

Color values have changed.

Definition at line 191 of file LightWidget.cc.

◆ brightnessChanged

void LightWidget::brightnessChanged ( int  _newValue)
privateslot

Brightness value has changed.

Definition at line 230 of file LightWidget.cc.

◆ diffuseChanged

void LightWidget::diffuseChanged ( )
privateslot

Definition at line 204 of file LightWidget.cc.

◆ directionalToggled

void LightWidget::directionalToggled ( )
privateslot

The directional checkbox changed -> update object.

Definition at line 159 of file LightWidget.cc.

◆ fixedPositionChanged

void LightWidget::fixedPositionChanged ( )
privateslot

The fixed position checkbox.

Definition at line 180 of file LightWidget.cc.

◆ getObject()

bool LightWidget::getObject ( )
private

Initializes the internal object. Returns true if successfull.

Definition at line 268 of file LightWidget.cc.

◆ radiusChanged

void LightWidget::radiusChanged ( )
privateslot

Light radius has changed.

Definition at line 244 of file LightWidget.cc.

◆ showEvent()

void LightWidget::showEvent ( QShowEvent *  event)
protectedvirtual

Initialize contents of widget before showing it.

Definition at line 101 of file LightWidget.cc.

◆ specularChanged

void LightWidget::specularChanged ( )
privateslot

Definition at line 217 of file LightWidget.cc.

◆ spotChanged

void LightWidget::spotChanged ( )
privateslot

Spot direction changed.

Definition at line 255 of file LightWidget.cc.

◆ updated()

void LightWidget::updated ( )
private

Called when the object has been updated.

Definition at line 288 of file LightWidget.cc.

Member Data Documentation

◆ light_

LightSource* LightWidget::light_
private

Definition at line 94 of file LightWidget.hh.

◆ node_

ACG::SceneGraph::LightNode* LightWidget::node_
private

Definition at line 91 of file LightWidget.hh.

◆ object_

LightObject* LightWidget::object_
private

Definition at line 93 of file LightWidget.hh.

◆ updatingWidgets_

bool LightWidget::updatingWidgets_
private

Definition at line 96 of file LightWidget.hh.


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