ALBA
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
albaGUILutHistogramEditor Class Reference

#include <albaGUILutHistogramEditor.h>

Inheritance diagram for albaGUILutHistogramEditor:
Inheritance graph
[legend]
Collaboration diagram for albaGUILutHistogramEditor:
Collaboration graph
[legend]

Public Types

enum  LUT_EDITOR_WIDGET_ID {
  ID_ = MINID , ID_GAMMA_CORRETION , ID_RESET_LUT , ID_FULL_SAMPLING ,
  ID_LOG_SCALE_VIEW
}
 

Public Member Functions

 albaGUILutHistogramEditor (vtkDataSet *dataSet, mmaVolumeMaterial *material, char *name="Histogram & Windowing", albaObserver *Listener=NULL, int id=MINID)
 
virtual ~albaGUILutHistogramEditor ()
 
virtual void SetListener (albaObserver *Listener)
 
virtual albaObserverGetListener ()
 
void OnEvent (albaEventBase *alba_event)
 
void OnSize (wxSizeEvent &event)
 
- Public Member Functions inherited from albaGUIDialog
 albaGUIDialog (const wxString &title, long style=albaCLOSEWINDOW|albaRESIZABLE|albaCLOSE)
 
virtual ~albaGUIDialog ()
 
void SetListener (albaObserver *Listener)
 
void OnEvent (albaEventBase *alba_event)
 
void Add (wxWindow *window, int option=0, int flag=wxEXPAND, int border=0)
 
void Add (albaGUI *window, int option=0, int flag=wxEXPAND, int border=0)
 
void Add (wxSizer *sizer, int option=0, int flag=wxEXPAND, int border=0)
 
bool Remove (wxWindow *window)
 
bool Remove (wxSizer *sizer)
 
int ShowModal ()
 
void EnableOk (bool enable)
 
void EnableCancel (bool enable)
 
void EnableClose (bool enable)
 
virtual void WXSetInitialFittingClientSize (int flags, wxSizer *sizer=NULL)
 
virtual void OnOK (wxCommandEvent &event)
 
virtual void OnCancel (wxCommandEvent &event)
 
virtual void OnCloseWindow (wxCloseEvent &event)
 
virtual void OnSize (wxSizeEvent &event)
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Static Public Member Functions

static void ShowLutHistogramDialog (vtkDataSet *dataSet, mmaVolumeMaterial *material, char *name="Histogram & Windowing", albaObserver *Listener=NULL, int id=MINID)
 

Protected Member Functions

void ResetLutDialog (double gamma, double low, double high)
 
void UpdateVolumeLut (bool reset=false)
 
void SetMaterial (mmaVolumeMaterial *material)
 
void SetDataSet (vtkDataSet *dataSet)
 
void CopyLut (vtkLookupTable *from, vtkLookupTable *to)
 

Static Protected Member Functions

static vtkDataArray * Resample (vtkDataArray *inDA, vtkDataArray *outDA)
 

Protected Attributes

albaObserverm_Listener
 
albaGUIm_GuiDialog
 
albaGUIFloatSliderm_GammaSlider
 
albaGUILutSliderm_Windowing
 
mmaVolumeMaterialm_Material
 
vtkDataSet * m_DataSet
 
vtkDataArray * m_ResampledData
 
int m_FullSampling
 
int m_LogScale
 
double m_Gamma
 
double m_LowRange
 
double m_HiRange
 
albaGUIHistogramWidgetm_Histogram
 
albaGUILutHistogramSwatchm_LutSwatch
 
vtkLookupTable * m_ExternalLut
 
vtkLookupTable * m_Lut
 

Additional Inherited Members

- Public Attributes inherited from albaGUIDialog
wxBoxSizer * m_GuiSizer
 
wxBoxSizer * m_ButtonsSizer
 
wxBoxSizer * m_DialogSizer
 
wxButton * m_OkButton
 
wxButton * m_CancelButton
 
wxButton * m_CloseButton
 
albaObserverm_Listener
 

Detailed Description

Definition at line 46 of file albaGUILutHistogramEditor.h.

Member Enumeration Documentation

◆ LUT_EDITOR_WIDGET_ID

Enumerator
ID_ 
ID_GAMMA_CORRETION 
ID_RESET_LUT 
ID_FULL_SAMPLING 
ID_LOG_SCALE_VIEW 

Definition at line 49 of file albaGUILutHistogramEditor.h.

Constructor & Destructor Documentation

◆ albaGUILutHistogramEditor()

albaGUILutHistogramEditor::albaGUILutHistogramEditor ( vtkDataSet *  dataSet,
mmaVolumeMaterial material,
char *  name = "Histogram & Windowing",
albaObserver Listener = NULL,
int  id = MINID 
)

Constructor.

◆ ~albaGUILutHistogramEditor()

virtual albaGUILutHistogramEditor::~albaGUILutHistogramEditor ( )
virtual

Destructor.

Member Function Documentation

◆ SetListener()

virtual void albaGUILutHistogramEditor::SetListener ( albaObserver Listener)
inlinevirtual

Set the event listener.

Definition at line 65 of file albaGUILutHistogramEditor.h.

◆ GetListener()

virtual albaObserver * albaGUILutHistogramEditor::GetListener ( )
inlinevirtual

Get the event listener.

Definition at line 68 of file albaGUILutHistogramEditor.h.

References albaGUIDialog::m_Listener.

◆ OnEvent()

void albaGUILutHistogramEditor::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Reimplemented from albaGUIDialog.

◆ OnSize()

void albaGUILutHistogramEditor::OnSize ( wxSizeEvent &  event)
virtual

Handle resize event.

Reimplemented from albaGUIDialog.

◆ ShowLutHistogramDialog()

static void albaGUILutHistogramEditor::ShowLutHistogramDialog ( vtkDataSet *  dataSet,
mmaVolumeMaterial material,
char *  name = "Histogram & Windowing",
albaObserver Listener = NULL,
int  id = MINID 
)
static

Show the dialog.

◆ Resample()

static vtkDataArray * albaGUILutHistogramEditor::Resample ( vtkDataArray *  inDA,
vtkDataArray *  outDA 
)
staticprotected

◆ ResetLutDialog()

void albaGUILutHistogramEditor::ResetLutDialog ( double  gamma,
double  low,
double  high 
)
protected

◆ UpdateVolumeLut()

void albaGUILutHistogramEditor::UpdateVolumeLut ( bool  reset = false)
protected

◆ SetMaterial()

void albaGUILutHistogramEditor::SetMaterial ( mmaVolumeMaterial material)
protected

◆ SetDataSet()

void albaGUILutHistogramEditor::SetDataSet ( vtkDataSet *  dataSet)
protected

◆ CopyLut()

void albaGUILutHistogramEditor::CopyLut ( vtkLookupTable *  from,
vtkLookupTable *  to 
)
protected

Copy the external Lookup Table given by the user to the internal one.

Member Data Documentation

◆ m_Listener

albaObserver* albaGUILutHistogramEditor::m_Listener
protected

Definition at line 99 of file albaGUILutHistogramEditor.h.

◆ m_GuiDialog

albaGUI* albaGUILutHistogramEditor::m_GuiDialog
protected

Definition at line 100 of file albaGUILutHistogramEditor.h.

◆ m_GammaSlider

albaGUIFloatSlider* albaGUILutHistogramEditor::m_GammaSlider
protected

Definition at line 101 of file albaGUILutHistogramEditor.h.

◆ m_Windowing

albaGUILutSlider* albaGUILutHistogramEditor::m_Windowing
protected

Definition at line 102 of file albaGUILutHistogramEditor.h.

◆ m_Material

mmaVolumeMaterial* albaGUILutHistogramEditor::m_Material
protected

Definition at line 105 of file albaGUILutHistogramEditor.h.

◆ m_DataSet

vtkDataSet* albaGUILutHistogramEditor::m_DataSet
protected

Definition at line 106 of file albaGUILutHistogramEditor.h.

◆ m_ResampledData

vtkDataArray* albaGUILutHistogramEditor::m_ResampledData
protected

Definition at line 107 of file albaGUILutHistogramEditor.h.

◆ m_FullSampling

int albaGUILutHistogramEditor::m_FullSampling
protected

Definition at line 109 of file albaGUILutHistogramEditor.h.

◆ m_LogScale

int albaGUILutHistogramEditor::m_LogScale
protected

Definition at line 110 of file albaGUILutHistogramEditor.h.

◆ m_Gamma

double albaGUILutHistogramEditor::m_Gamma
protected

Definition at line 111 of file albaGUILutHistogramEditor.h.

◆ m_LowRange

double albaGUILutHistogramEditor::m_LowRange
protected

Definition at line 112 of file albaGUILutHistogramEditor.h.

◆ m_HiRange

double albaGUILutHistogramEditor::m_HiRange
protected

Definition at line 113 of file albaGUILutHistogramEditor.h.

◆ m_Histogram

albaGUIHistogramWidget* albaGUILutHistogramEditor::m_Histogram
protected

Definition at line 116 of file albaGUILutHistogramEditor.h.

◆ m_LutSwatch

albaGUILutHistogramSwatch* albaGUILutHistogramEditor::m_LutSwatch
protected

Definition at line 117 of file albaGUILutHistogramEditor.h.

◆ m_ExternalLut

vtkLookupTable* albaGUILutHistogramEditor::m_ExternalLut
protected

Given lut that will be modified by "ok" or "apply".

Definition at line 118 of file albaGUILutHistogramEditor.h.

◆ m_Lut

vtkLookupTable* albaGUILutHistogramEditor::m_Lut
protected

Internal lut – initialized in SetLut.

Definition at line 119 of file albaGUILutHistogramEditor.h.


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