17#ifndef __albaGUILutHistogramEditor_H__
18#define __albaGUILutHistogramEditor_H__
29#include "vtkLookupTable.h"
82 static vtkDataArray*
Resample(vtkDataArray *inDA, vtkDataArray* outDA);
97 void CopyLut(vtkLookupTable *from, vtkLookupTable *to);
Implementation of the message object for the Subject/Observer design pattern.
albaGUIDialog is the base class for albaDialogs.
albaObserver * m_Listener
a Slider that can be used to set double values, albaGUIFloatSlider send usual wxWindows Events; Use a...
albaGUILutHistogramSwatch * m_LutSwatch
static vtkDataArray * Resample(vtkDataArray *inDA, vtkDataArray *outDA)
albaObserver * m_Listener
virtual albaObserver * GetListener()
Get the event listener.
albaGUILutHistogramEditor(vtkDataSet *dataSet, mmaVolumeMaterial *material, char *name="Histogram & Windowing", albaObserver *Listener=NULL, int id=MINID)
Constructor.
albaGUIFloatSlider * m_GammaSlider
vtkLookupTable * m_ExternalLut
Given lut that will be modified by "ok" or "apply".
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
static void ShowLutHistogramDialog(vtkDataSet *dataSet, mmaVolumeMaterial *material, char *name="Histogram & Windowing", albaObserver *Listener=NULL, int id=MINID)
Show the dialog.
virtual void SetListener(albaObserver *Listener)
Set the event listener.
void ResetLutDialog(double gamma, double low, double high)
void SetDataSet(vtkDataSet *dataSet)
void CopyLut(vtkLookupTable *from, vtkLookupTable *to)
Copy the external Lookup Table given by the user to the internal one.
vtkLookupTable * m_Lut
Internal lut – initialized in SetLut.
albaGUIHistogramWidget * m_Histogram
virtual ~albaGUILutHistogramEditor()
Destructor.
void UpdateVolumeLut(bool reset=false)
mmaVolumeMaterial * m_Material
void OnSize(wxSizeEvent &event)
Handle resize event.
vtkDataArray * m_ResampledData
void SetMaterial(mmaVolumeMaterial *material)
albaGUILutSlider * m_Windowing
albaGUILutSlider is a Label that notify user-click using the normal wxEvents.
albaGUI is a panel with function to easily create GUI.
Interface implementing the Observer of the Subject/Observer design pattern.