17#ifndef __albaGUILutSwatch_H__
18#define __albaGUILutSwatch_H__
22#include "vtkLookupTable.h"
23#include "albaServiceClient.h"
24#include "albaAbsLogicManager.h"
38 albaGUILutHistogramSwatch(wxWindow* parent, wxWindowID
id = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxSize(184,18),
long style = wxTAB_TRAVERSAL );
114 DECLARE_EVENT_TABLE()
virtual albaObserver * GetListener()
Get the event listener.
virtual void SetListener(albaObserver *Listener)
Set the event listener.
void SetMaterial(mmaVolumeMaterial *material)
Set the Lock Up Table.
void OnLeftMouseButtonUp(wxMouseEvent &event)
void EnableOverHighlight(bool b)
Activate/Deactivate threshold view on LUT.
void OnMouseMotion(wxMouseEvent &event)
void ShowThreshold(bool b)
Activate/Deactivate threshold view on LUT.
albaGUILutHistogramSwatch(wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(184, 18), long style=wxTAB_TRAVERSAL)
constructor.
bool IsEditable()
return true if the pop-up menu is enabled
void OnPaint(wxPaintEvent &event)
OnPaint event handler.
mmaVolumeMaterial * m_Material
int GetLutIndexByPos(float fullWidth, float x)
void OnLeftMouseButtonDown(wxMouseEvent &event)
void SetDataSet(vtkDataSet *dataSet)
Set the VME for the histogram.
albaObserver * m_Listener
unsigned long m_UpdateTime
void OnEraseBackground(wxEraseEvent &event)
overrided to prevent flickering
void SetEditable(bool b)
-if b=true LeftMouseButtonDown will pop-up the LutEditor -the user is notified anyway -default = fals...
void OnSize(wxSizeEvent &event)
Update the panel when resized.
albaGUI is a panel with function to easily create GUI.
Interface implementing the Observer of the Subject/Observer design pattern.