17#ifndef __albaGUILutSwatch_H__
18#define __albaGUILutSwatch_H__
23#include "vtkLookupTable.h"
31 albaGUILutSwatch(wxWindow* parent, wxWindowID
id = -1,
const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxSize(100,50),
long style = wxTAB_TRAVERSAL );
42 virtual bool Enable(
bool enable =
true);
albaGUILutSwatch : widget representing a LUT, usually used to call the LutEditor.
void OnEraseBackground(wxEraseEvent &event)
void SetLut(vtkLookupTable *lut)
void SetEditable(bool b)
-if b=true LeftMouseButtonDown will pop-up the LutEditor -the user is notified anyway -default = fals...
void OnPaint(wxPaintEvent &event)
void OnLeftMouseButtonDown(wxMouseEvent &event)
albaGUILutSwatch(wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(100, 50), long style=wxTAB_TRAVERSAL)
albaObserver * m_Listener
virtual bool Enable(bool enable=true)
void OnMouseMotion(wxMouseEvent &event)
virtual void SetListener(albaObserver *Listener)
void OnLeftMouseButtonUp(wxMouseEvent &event)
unsigned long m_UpdateTime
Interface implementing the Observer of the Subject/Observer design pattern.