17#ifndef __albaLightKit_H__
18#define __albaLightKit_H__
25#include "albaServiceClient.h"
26#include "albaAbsLogicManager.h"
28#define MAX_NUM_LIGHT 10
59 LightItem(wxString n,
int onoff,
float az,
float el,
float inten,wxColour c, vtkLight *l) {m_Name = n; m_OnOff = onoff; m_Azimuth = az; m_Elevation = el; m_Intensity = inten; m_Colour = c; m_Light = l;};
Implementation of the message object for the Subject/Observer design pattern.
albaGUI is a panel with function to easily create GUI.
LightItem(wxString n, int onoff, float az, float el, float inten, wxColour c, vtkLight *l)
wxWindow * m_LightParentPanel
albaGUIButton * m_ButtonAdd
vtkRenderer * m_LightRenderer
void RemoveLight(int sel)
Remove the selected light (into the light list listbox) from the scene.
albaGUI * GetGui()
Returns the albaLightKit's GUI.
albaGUIButton * m_ButtonRemove
void EnableWidget(bool enable)
Enable-Disable interface's widgets.
void SetListener(albaObserver *Listener)
void AddLight()
Add a light to the scene.
albaLightKit(wxWindow *parent, vtkRenderer *r, albaObserver *Listener=NULL)
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
void ParametersInit()
Initialize the interface's parameters.
albaObserver * m_Listener
LightItem * m_SelectedLight
Interface implementing the Observer of the Subject/Observer design pattern.