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

#include <albaGUILutSwatch.h>

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

Public Member Functions

 albaGUILutSwatch (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(100, 50), long style=wxTAB_TRAVERSAL)
 
void SetLut (vtkLookupTable *lut)
 
void SetEditable (bool b)
 
virtual bool Enable (bool enable=true)
 
virtual void SetListener (albaObserver *Listener)
 

Protected Member Functions

void OnEraseBackground (wxEraseEvent &event)
 
void OnPaint (wxPaintEvent &event)
 
void Update ()
 
void OnLeftMouseButtonDown (wxMouseEvent &event)
 
void OnLeftMouseButtonUp (wxMouseEvent &event)
 
void OnMouseMotion (wxMouseEvent &event)
 

Protected Attributes

albaObserverm_Listener
 
wxBitmap m_Bmp
 
vtkLookupTable * m_Lut
 
bool m_MouseInWindow
 
wxString m_Tip
 
int m_MouseX
 
unsigned long m_UpdateTime
 
bool m_Editable
 
wxFont m_Font
 
int m_oldW
 
int m_oldH
 
bool m_Enabled
 

Detailed Description

albaGUILutSwatch : widget representing a LUT, usually used to call the LutEditor.

See also
albaGUILutEditor

Definition at line 28 of file albaGUILutSwatch.h.

Constructor & Destructor Documentation

◆ albaGUILutSwatch()

albaGUILutSwatch::albaGUILutSwatch ( wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(100, 50),
long  style = wxTAB_TRAVERSAL 
)

Member Function Documentation

◆ SetLut()

void albaGUILutSwatch::SetLut ( vtkLookupTable *  lut)

◆ SetEditable()

void albaGUILutSwatch::SetEditable ( bool  b)

-if b=true LeftMouseButtonDown will pop-up the LutEditor -the user is notified anyway -default = false

◆ Enable()

virtual bool albaGUILutSwatch::Enable ( bool  enable = true)
virtual

◆ SetListener()

virtual void albaGUILutSwatch::SetListener ( albaObserver Listener)
inlinevirtual

Definition at line 44 of file albaGUILutSwatch.h.

◆ OnEraseBackground()

void albaGUILutSwatch::OnEraseBackground ( wxEraseEvent &  event)
inlineprotected

Definition at line 49 of file albaGUILutSwatch.h.

◆ OnPaint()

void albaGUILutSwatch::OnPaint ( wxPaintEvent &  event)
protected

◆ Update()

void albaGUILutSwatch::Update ( )
protected

◆ OnLeftMouseButtonDown()

void albaGUILutSwatch::OnLeftMouseButtonDown ( wxMouseEvent &  event)
protected

◆ OnLeftMouseButtonUp()

void albaGUILutSwatch::OnLeftMouseButtonUp ( wxMouseEvent &  event)
protected

◆ OnMouseMotion()

void albaGUILutSwatch::OnMouseMotion ( wxMouseEvent &  event)
protected

Member Data Documentation

◆ m_Listener

albaObserver* albaGUILutSwatch::m_Listener
protected

Definition at line 46 of file albaGUILutSwatch.h.

◆ m_Bmp

wxBitmap albaGUILutSwatch::m_Bmp
protected

Definition at line 48 of file albaGUILutSwatch.h.

◆ m_Lut

vtkLookupTable* albaGUILutSwatch::m_Lut
protected

Definition at line 59 of file albaGUILutSwatch.h.

◆ m_MouseInWindow

bool albaGUILutSwatch::m_MouseInWindow
protected

Definition at line 60 of file albaGUILutSwatch.h.

◆ m_Tip

wxString albaGUILutSwatch::m_Tip
protected

Definition at line 61 of file albaGUILutSwatch.h.

◆ m_MouseX

int albaGUILutSwatch::m_MouseX
protected

Definition at line 62 of file albaGUILutSwatch.h.

◆ m_UpdateTime

unsigned long albaGUILutSwatch::m_UpdateTime
protected

Definition at line 63 of file albaGUILutSwatch.h.

◆ m_Editable

bool albaGUILutSwatch::m_Editable
protected

Definition at line 64 of file albaGUILutSwatch.h.

◆ m_Font

wxFont albaGUILutSwatch::m_Font
protected

Definition at line 65 of file albaGUILutSwatch.h.

◆ m_oldW

int albaGUILutSwatch::m_oldW
protected

Definition at line 66 of file albaGUILutSwatch.h.

◆ m_oldH

int albaGUILutSwatch::m_oldH
protected

Definition at line 67 of file albaGUILutSwatch.h.

◆ m_Enabled

bool albaGUILutSwatch::m_Enabled
protected

Definition at line 68 of file albaGUILutSwatch.h.


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