User manual

old releases - latest release - trunk

ColorTrigger Class Reference

Collaboration diagram for ColorTrigger:

List of all members.


Detailed Description

Trigger for updating the color chooser in aColorGroup.

This trigger is registered when a ColorGroup is created in a PropertyFrame. It will contain a pointer to the Fl_Color_Chooser that it is registered for.

It is registered for the ON_COLOR_SET stimulus.

When triggered it generates update events and posts them on the GUI update queue via UserInterface::post_event().

Public Member Functions

 ColorTrigger (Fl_Color_Chooser *color_chooser)
 This constructor simply sets the pointers to color and meta color fields.
void on_color_set (SceneObject *object)
 Updates the color or meta color fields of a ColorGroup.
void attach_to (SceneObject *object)
void detach_from (SceneObject *object, bool update_widget)

Private Attributes

Fl_Color_Chooser * m_color_chooser
 Pointers to the color fields that the trigger is registered for.
std::set< SceneObject * > m_objects
 A set storing all objects the trigger is registered with.


Member Function Documentation

void on_color_set ( SceneObject object  ) 

Updates the color or meta color fields of a ColorGroup.

This method generates an UpdateEvent for the affected input widget and the corresponding data, which it fetches from the activator set, and posts it on the GUI update queue.

Parameters:
stimuli The type of stimuli that caused this trigger.
object The SceneObject that this trigger was registered with.


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