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

#include <albaGUILutEditor.h>

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

Public Member Functions

 albaGUILutEditor (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(300, 800), long style=wxTAB_TRAVERSAL)
 
virtual ~albaGUILutEditor ()
 
virtual void SetListener (albaObserver *Listener)
 
void OnEvent (albaEventBase *alba_event)
 
void SetLut (vtkLookupTable *lut)
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Static Public Member Functions

static void ShowLutDialog (vtkLookupTable *lut, albaObserver *listener=NULL, int id=MINID)
 

Protected Member Functions

void UpdateInfo ()
 
void UpdateLut ()
 
void UpdateWidgetsOnLutChange ()
 
void CopyLut (vtkLookupTable *from, vtkLookupTable *to)
 

Protected Attributes

albaObserverm_Listener
 
int m_Preset
 
int m_UserPreset
 
int m_NumEntry
 
double m_ValueRange [2]
 
wxString m_Info
 
wxString m_NewUserLutName
 
wxString m_UserLutLibraryDir
 
albaGUILutSwatchm_LutSwatch
 
albaGUILutWidgetm_LutWidget
 
albaGUIColorWidgetm_ColorWidget
 
albaLUTLibrarym_UserLutLibrary
 
wxComboBox * m_UserPresetCombo
 
wxComboBox * m_PresetCombo
 
vtkLookupTable * m_ExternalLut
 
vtkLookupTable * m_Lut
 

Detailed Description

albaGUILutEditor : vtkLookupTable Editor

USAGE:

FEATURES:

See also
albaColor albaGUIColorSwatch albaGUIColorWidget albaGUILutPreset albaGUILutSwatch albaGUILutWidget

Definition at line 46 of file albaGUILutEditor.h.

Constructor & Destructor Documentation

◆ albaGUILutEditor()

albaGUILutEditor::albaGUILutEditor ( wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(300, 800),
long  style = wxTAB_TRAVERSAL 
)

◆ ~albaGUILutEditor()

virtual albaGUILutEditor::~albaGUILutEditor ( )
virtual

Member Function Documentation

◆ SetListener()

virtual void albaGUILutEditor::SetListener ( albaObserver Listener)
inlinevirtual

Definition at line 53 of file albaGUILutEditor.h.

References m_Listener.

◆ OnEvent()

void albaGUILutEditor::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Implements albaObserver.

◆ SetLut()

void albaGUILutEditor::SetLut ( vtkLookupTable *  lut)

Assign the external lookup table to the widget.

◆ ShowLutDialog()

static void albaGUILutEditor::ShowLutDialog ( vtkLookupTable *  lut,
albaObserver listener = NULL,
int  id = MINID 
)
static

Show the dialog.

◆ UpdateInfo()

void albaGUILutEditor::UpdateInfo ( )
protected

◆ UpdateLut()

void albaGUILutEditor::UpdateLut ( )
protected

Update the internal Lookup Table according to the preset selected from the combo box.

◆ UpdateWidgetsOnLutChange()

void albaGUILutEditor::UpdateWidgetsOnLutChange ( )
protected

◆ CopyLut()

void albaGUILutEditor::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* albaGUILutEditor::m_Listener
protected

Definition at line 76 of file albaGUILutEditor.h.

Referenced by SetListener().

◆ m_Preset

int albaGUILutEditor::m_Preset
protected

Index of lookup table preset.

Definition at line 78 of file albaGUILutEditor.h.

◆ m_UserPreset

int albaGUILutEditor::m_UserPreset
protected

Definition at line 79 of file albaGUILutEditor.h.

◆ m_NumEntry

int albaGUILutEditor::m_NumEntry
protected

Number of colors of the current lookup table.

Definition at line 81 of file albaGUILutEditor.h.

◆ m_ValueRange

double albaGUILutEditor::m_ValueRange[2]
protected

Value range of the current lookup table.

Definition at line 82 of file albaGUILutEditor.h.

◆ m_Info

wxString albaGUILutEditor::m_Info
protected

Definition at line 83 of file albaGUILutEditor.h.

◆ m_NewUserLutName

wxString albaGUILutEditor::m_NewUserLutName
protected

Definition at line 84 of file albaGUILutEditor.h.

◆ m_UserLutLibraryDir

wxString albaGUILutEditor::m_UserLutLibraryDir
protected

Definition at line 85 of file albaGUILutEditor.h.

◆ m_LutSwatch

albaGUILutSwatch* albaGUILutEditor::m_LutSwatch
protected

Definition at line 87 of file albaGUILutEditor.h.

◆ m_LutWidget

albaGUILutWidget* albaGUILutEditor::m_LutWidget
protected

Definition at line 88 of file albaGUILutEditor.h.

◆ m_ColorWidget

albaGUIColorWidget* albaGUILutEditor::m_ColorWidget
protected

Definition at line 89 of file albaGUILutEditor.h.

◆ m_UserLutLibrary

albaLUTLibrary* albaGUILutEditor::m_UserLutLibrary
protected

Definition at line 91 of file albaGUILutEditor.h.

◆ m_UserPresetCombo

wxComboBox* albaGUILutEditor::m_UserPresetCombo
protected

Definition at line 92 of file albaGUILutEditor.h.

◆ m_PresetCombo

wxComboBox* albaGUILutEditor::m_PresetCombo
protected

Definition at line 93 of file albaGUILutEditor.h.

◆ m_ExternalLut

vtkLookupTable* albaGUILutEditor::m_ExternalLut
protected

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

Definition at line 94 of file albaGUILutEditor.h.

◆ m_Lut

vtkLookupTable* albaGUILutEditor::m_Lut
protected

Internal lut – initialized in SetLut.

Definition at line 95 of file albaGUILutEditor.h.


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