ALBA
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
albaGUILutWidget Class Reference

#include <albaGUILutWidget.h>

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

Classes

struct  LutEntry
 

Public Member Functions

 albaGUILutWidget (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(300, 290), long style=wxTAB_TRAVERSAL)
 
virtual void SetListener (albaObserver *Listener)
 
void OnEvent (albaEventBase *event)
 
void SetSelectionColor (albaColor col)
 
albaColor GetSelectionColor ()
 
void ShadeSelectionInRGB ()
 
void ShadeSelectionInHSV ()
 
void GetSelection (int *min, int *max, int *num=NULL)
 
void SetNumEntry (int num)
 
void SetLut (vtkLookupTable *lut)
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Public Attributes

struct albaGUILutWidget::LutEntry m_LutEntry [257]
 

Protected Member Functions

void InitBitmaps ()
 
void DrawEntries ()
 
void DrawEntry (int idx)
 
void DrawSelection ()
 
void OnEraseBackground (wxEraseEvent &event)
 
void OnPaint (wxPaintEvent &event)
 
int MouseToIndex (wxMouseEvent &event)
 
void OnLeftMouseButtonDown (wxMouseEvent &event)
 
void OnLeftMouseButtonUp (wxMouseEvent &event)
 
void OnMouseMotion (wxMouseEvent &event)
 

Protected Attributes

albaObserverm_Listener
 
vtkLookupTable * m_Lut
 
bool m_Dragging
 
int m_DragBeginIdx
 
int m_SelectionRowMin
 
int m_SelectionColMin
 
int m_SelectionRowMax
 
int m_SelectionColMax
 
wxBitmap m_Bmp
 
wxBitmap m_Bmp2
 
wxPoint m_BmpPosition
 
wxSize m_BmpSize
 
int m_NumEntry
 
int m_EntryW
 
int m_EntryH
 
int m_EntryM
 
int m_EntryPerRow
 

Detailed Description

albaGUILutWidget : Helper class for albaLutEditor

See also
albaLutEditor

Definition at line 28 of file albaGUILutWidget.h.

Constructor & Destructor Documentation

◆ albaGUILutWidget()

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

Member Function Documentation

◆ SetListener()

virtual void albaGUILutWidget::SetListener ( albaObserver Listener)
inlinevirtual

Definition at line 34 of file albaGUILutWidget.h.

References m_Listener.

◆ OnEvent()

void albaGUILutWidget::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Implements albaObserver.

◆ SetSelectionColor()

void albaGUILutWidget::SetSelectionColor ( albaColor  col)

◆ GetSelectionColor()

albaColor albaGUILutWidget::GetSelectionColor ( )

◆ ShadeSelectionInRGB()

void albaGUILutWidget::ShadeSelectionInRGB ( )

◆ ShadeSelectionInHSV()

void albaGUILutWidget::ShadeSelectionInHSV ( )

◆ GetSelection()

void albaGUILutWidget::GetSelection ( int *  min,
int *  max,
int *  num = NULL 
)

◆ SetNumEntry()

void albaGUILutWidget::SetNumEntry ( int  num)

◆ SetLut()

void albaGUILutWidget::SetLut ( vtkLookupTable *  lut)

◆ InitBitmaps()

void albaGUILutWidget::InitBitmaps ( )
protected

◆ DrawEntries()

void albaGUILutWidget::DrawEntries ( )
protected

◆ DrawEntry()

void albaGUILutWidget::DrawEntry ( int  idx)
protected

◆ DrawSelection()

void albaGUILutWidget::DrawSelection ( )
protected

◆ OnEraseBackground()

void albaGUILutWidget::OnEraseBackground ( wxEraseEvent &  event)
inlineprotected

Definition at line 81 of file albaGUILutWidget.h.

◆ OnPaint()

void albaGUILutWidget::OnPaint ( wxPaintEvent &  event)
protected

◆ MouseToIndex()

int albaGUILutWidget::MouseToIndex ( wxMouseEvent &  event)
protected

◆ OnLeftMouseButtonDown()

void albaGUILutWidget::OnLeftMouseButtonDown ( wxMouseEvent &  event)
protected

◆ OnLeftMouseButtonUp()

void albaGUILutWidget::OnLeftMouseButtonUp ( wxMouseEvent &  event)
protected

◆ OnMouseMotion()

void albaGUILutWidget::OnMouseMotion ( wxMouseEvent &  event)
protected

Member Data Documentation

◆ m_LutEntry

struct albaGUILutWidget::LutEntry albaGUILutWidget::m_LutEntry[257]

◆ m_Listener

albaObserver* albaGUILutWidget::m_Listener
protected

Definition at line 55 of file albaGUILutWidget.h.

Referenced by SetListener().

◆ m_Lut

vtkLookupTable* albaGUILutWidget::m_Lut
protected

Definition at line 56 of file albaGUILutWidget.h.

◆ m_Dragging

bool albaGUILutWidget::m_Dragging
protected

Definition at line 58 of file albaGUILutWidget.h.

◆ m_DragBeginIdx

int albaGUILutWidget::m_DragBeginIdx
protected

Definition at line 59 of file albaGUILutWidget.h.

◆ m_SelectionRowMin

int albaGUILutWidget::m_SelectionRowMin
protected

Definition at line 61 of file albaGUILutWidget.h.

◆ m_SelectionColMin

int albaGUILutWidget::m_SelectionColMin
protected

Definition at line 62 of file albaGUILutWidget.h.

◆ m_SelectionRowMax

int albaGUILutWidget::m_SelectionRowMax
protected

Definition at line 63 of file albaGUILutWidget.h.

◆ m_SelectionColMax

int albaGUILutWidget::m_SelectionColMax
protected

Definition at line 64 of file albaGUILutWidget.h.

◆ m_Bmp

wxBitmap albaGUILutWidget::m_Bmp
protected

Definition at line 66 of file albaGUILutWidget.h.

◆ m_Bmp2

wxBitmap albaGUILutWidget::m_Bmp2
protected

Definition at line 67 of file albaGUILutWidget.h.

◆ m_BmpPosition

wxPoint albaGUILutWidget::m_BmpPosition
protected

Definition at line 68 of file albaGUILutWidget.h.

◆ m_BmpSize

wxSize albaGUILutWidget::m_BmpSize
protected

Definition at line 69 of file albaGUILutWidget.h.

◆ m_NumEntry

int albaGUILutWidget::m_NumEntry
protected

Definition at line 71 of file albaGUILutWidget.h.

◆ m_EntryW

int albaGUILutWidget::m_EntryW
protected

Definition at line 72 of file albaGUILutWidget.h.

◆ m_EntryH

int albaGUILutWidget::m_EntryH
protected

Definition at line 73 of file albaGUILutWidget.h.

◆ m_EntryM

int albaGUILutWidget::m_EntryM
protected

Definition at line 74 of file albaGUILutWidget.h.

◆ m_EntryPerRow

int albaGUILutWidget::m_EntryPerRow
protected

Definition at line 75 of file albaGUILutWidget.h.


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