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

#include <albaGUILutHistogramSwatch.h>

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

Public Member Functions

 albaGUILutHistogramSwatch (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(184, 18), long style=wxTAB_TRAVERSAL)
 
 albaGUILutHistogramSwatch (albaGUI *parent, wxWindowID id, wxString name, vtkDataSet *dataSet, mmaVolumeMaterial *material, wxSize size=wxSize(184, 18), bool showText=true)
 
void SetMaterial (mmaVolumeMaterial *material)
 
void SetDataSet (vtkDataSet *dataSet)
 
void SetEditable (bool b)
 
void ShowThreshold (bool b)
 
void EnableOverHighlight (bool b)
 
bool IsEditable ()
 
void Modified ()
 
virtual void SetListener (albaObserver *Listener)
 
virtual albaObserverGetListener ()
 

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)
 
void OnSize (wxSizeEvent &event)
 
int GetLutIndexByPos (float fullWidth, float x)
 

Protected Attributes

albaObserverm_Listener
 
wxBitmap m_Bmp
 
int m_ShowThreshold
 
int m_OverHighlight
 
int m_Highlighted
 
int m_LastHighlighted
 
mmaVolumeMaterialm_Material
 
vtkLookupTable * m_Lut
 
vtkDataSet * m_DataSet
 
bool m_MouseInWindow
 
wxString m_Tip
 
int m_MouseX
 
unsigned long m_UpdateTime
 
bool m_Editable
 
wxFont m_Font
 

Detailed Description

Definition at line 34 of file albaGUILutHistogramSwatch.h.

Constructor & Destructor Documentation

◆ albaGUILutHistogramSwatch() [1/2]

albaGUILutHistogramSwatch::albaGUILutHistogramSwatch ( wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(184, 18),
long  style = wxTAB_TRAVERSAL 
)

constructor.

◆ albaGUILutHistogramSwatch() [2/2]

albaGUILutHistogramSwatch::albaGUILutHistogramSwatch ( albaGUI parent,
wxWindowID  id,
wxString  name,
vtkDataSet *  dataSet,
mmaVolumeMaterial material,
wxSize  size = wxSize(184, 18),
bool  showText = true 
)

constructor.

Member Function Documentation

◆ SetMaterial()

void albaGUILutHistogramSwatch::SetMaterial ( mmaVolumeMaterial material)

Set the Lock Up Table.

◆ SetDataSet()

void albaGUILutHistogramSwatch::SetDataSet ( vtkDataSet *  dataSet)

Set the VME for the histogram.

◆ SetEditable()

void albaGUILutHistogramSwatch::SetEditable ( bool  b)
inline

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

Definition at line 54 of file albaGUILutHistogramSwatch.h.

◆ ShowThreshold()

void albaGUILutHistogramSwatch::ShowThreshold ( bool  b)

Activate/Deactivate threshold view on LUT.

◆ EnableOverHighlight()

void albaGUILutHistogramSwatch::EnableOverHighlight ( bool  b)
inline

Activate/Deactivate threshold view on LUT.

Definition at line 60 of file albaGUILutHistogramSwatch.h.

◆ IsEditable()

bool albaGUILutHistogramSwatch::IsEditable ( )
inline

return true if the pop-up menu is enabled

Definition at line 63 of file albaGUILutHistogramSwatch.h.

◆ Modified()

void albaGUILutHistogramSwatch::Modified ( )

◆ SetListener()

virtual void albaGUILutHistogramSwatch::SetListener ( albaObserver Listener)
inlinevirtual

Set the event listener.

Definition at line 69 of file albaGUILutHistogramSwatch.h.

◆ GetListener()

virtual albaObserver * albaGUILutHistogramSwatch::GetListener ( )
inlinevirtual

Get the event listener.

Definition at line 72 of file albaGUILutHistogramSwatch.h.

◆ OnEraseBackground()

void albaGUILutHistogramSwatch::OnEraseBackground ( wxEraseEvent &  event)
inlineprotected

overrided to prevent flickering

Definition at line 80 of file albaGUILutHistogramSwatch.h.

◆ OnPaint()

void albaGUILutHistogramSwatch::OnPaint ( wxPaintEvent &  event)
protected

OnPaint event handler.

◆ Update()

void albaGUILutHistogramSwatch::Update ( )
protected

◆ OnLeftMouseButtonDown()

void albaGUILutHistogramSwatch::OnLeftMouseButtonDown ( wxMouseEvent &  event)
protected

◆ OnLeftMouseButtonUp()

void albaGUILutHistogramSwatch::OnLeftMouseButtonUp ( wxMouseEvent &  event)
protected

◆ OnMouseMotion()

void albaGUILutHistogramSwatch::OnMouseMotion ( wxMouseEvent &  event)
protected

◆ OnSize()

void albaGUILutHistogramSwatch::OnSize ( wxSizeEvent &  event)
protected

Update the panel when resized.

◆ GetLutIndexByPos()

int albaGUILutHistogramSwatch::GetLutIndexByPos ( float  fullWidth,
float  x 
)
protected

Member Data Documentation

◆ m_Listener

albaObserver* albaGUILutHistogramSwatch::m_Listener
protected

Definition at line 76 of file albaGUILutHistogramSwatch.h.

◆ m_Bmp

wxBitmap albaGUILutHistogramSwatch::m_Bmp
protected

Definition at line 78 of file albaGUILutHistogramSwatch.h.

◆ m_ShowThreshold

int albaGUILutHistogramSwatch::m_ShowThreshold
protected

Definition at line 99 of file albaGUILutHistogramSwatch.h.

◆ m_OverHighlight

int albaGUILutHistogramSwatch::m_OverHighlight
protected

Definition at line 100 of file albaGUILutHistogramSwatch.h.

◆ m_Highlighted

int albaGUILutHistogramSwatch::m_Highlighted
protected

Definition at line 101 of file albaGUILutHistogramSwatch.h.

◆ m_LastHighlighted

int albaGUILutHistogramSwatch::m_LastHighlighted
protected

Definition at line 102 of file albaGUILutHistogramSwatch.h.

◆ m_Material

mmaVolumeMaterial* albaGUILutHistogramSwatch::m_Material
protected

Definition at line 103 of file albaGUILutHistogramSwatch.h.

◆ m_Lut

vtkLookupTable* albaGUILutHistogramSwatch::m_Lut
protected

Definition at line 104 of file albaGUILutHistogramSwatch.h.

◆ m_DataSet

vtkDataSet* albaGUILutHistogramSwatch::m_DataSet
protected

Definition at line 105 of file albaGUILutHistogramSwatch.h.

◆ m_MouseInWindow

bool albaGUILutHistogramSwatch::m_MouseInWindow
protected

Definition at line 108 of file albaGUILutHistogramSwatch.h.

◆ m_Tip

wxString albaGUILutHistogramSwatch::m_Tip
protected

Definition at line 109 of file albaGUILutHistogramSwatch.h.

◆ m_MouseX

int albaGUILutHistogramSwatch::m_MouseX
protected

Definition at line 110 of file albaGUILutHistogramSwatch.h.

◆ m_UpdateTime

unsigned long albaGUILutHistogramSwatch::m_UpdateTime
protected

Definition at line 111 of file albaGUILutHistogramSwatch.h.

◆ m_Editable

bool albaGUILutHistogramSwatch::m_Editable
protected

Definition at line 112 of file albaGUILutHistogramSwatch.h.

◆ m_Font

wxFont albaGUILutHistogramSwatch::m_Font
protected

Definition at line 113 of file albaGUILutHistogramSwatch.h.


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