#include <albaGUIHistogramWidget.h>
|
| | albaGUIHistogramWidget (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL, bool showThresholds=false) |
| |
| virtual | ~albaGUIHistogramWidget () |
| |
| virtual void | SetListener (albaObserver *Listener) |
| |
| void | OnEvent (albaEventBase *event) |
| |
| | ALBA_ID_DEC (RANGE_MODIFIED) |
| |
| void | SetHistogramData (vtkImageData *histogram) |
| |
| void | SetData (vtkDataArray *data, albaVME *vme=NULL) |
| |
| void | LogarithmicScale (int enable=1) |
| |
| void | LogarithmicScaleOn () |
| |
| void | LogarithmicScaleOff () |
| |
| bool | IsLogarithmicScale () |
| |
| void | ShowLines (int value=1) |
| |
| void | ShowText (int value=1) |
| |
| void | SetLut (vtkLookupTable *lut) |
| |
| albaGUI * | GetGui () |
| |
| void | GetThresholds (double *lower, double *upper) |
| |
| long int | GetHistogramValue (int x, int y) |
| |
| double | GetHistogramScalarValue (int x, int y) |
| |
| void | UpdateLines (int min, int max) |
| |
| | albaGUIPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel") |
| |
| | albaObserver () |
| |
| virtual | ~albaObserver () |
| |
| virtual void | OnEvent (albaEventBase *e)=0 |
| |
albaGUIHistogramWidget : widget that encapsulate render window into a gui
Definition at line 44 of file albaGUIHistogramWidget.h.
◆ HISTOGRAM_WIDGET_ID
| Enumerator |
|---|
| ID_LOGSCALE | |
| ID_NUMBER_OF_BIN | |
| ID_RANGE_SLICER | |
| ID_SLIDER_THRESHOLD | |
| ID_EXPORT_DATA | |
| ID_EXPORT_STATS | |
Definition at line 61 of file albaGUIHistogramWidget.h.
◆ albaGUIHistogramWidget()
| albaGUIHistogramWidget::albaGUIHistogramWidget |
( |
wxWindow * |
parent, |
|
|
wxWindowID |
id = -1, |
|
|
const wxPoint & |
pos = wxDefaultPosition, |
|
|
const wxSize & |
size = wxSize(400, 300), |
|
|
long |
style = wxTAB_TRAVERSAL, |
|
|
bool |
showThresholds = false |
|
) |
| |
◆ ~albaGUIHistogramWidget()
| virtual albaGUIHistogramWidget::~albaGUIHistogramWidget |
( |
| ) |
|
|
virtual |
◆ SetListener()
| virtual void albaGUIHistogramWidget::SetListener |
( |
albaObserver * |
Listener | ) |
|
|
inlinevirtual |
◆ OnEvent()
◆ ALBA_ID_DEC()
| albaGUIHistogramWidget::ALBA_ID_DEC |
( |
RANGE_MODIFIED |
| ) |
|
◆ SetHistogramData()
| void albaGUIHistogramWidget::SetHistogramData |
( |
vtkImageData * |
histogram | ) |
|
Set a pre-calculated histogram, just visualize it instead calculate.
It is used like a cache.
◆ SetData()
| void albaGUIHistogramWidget::SetData |
( |
vtkDataArray * |
data, |
|
|
albaVME * |
vme = NULL |
|
) |
| |
Input data from which generate histogram.
◆ LogarithmicScale()
| void albaGUIHistogramWidget::LogarithmicScale |
( |
int |
enable = 1 | ) |
|
Enable/disable logarithmic scale for histogram.
◆ LogarithmicScaleOn()
| void albaGUIHistogramWidget::LogarithmicScaleOn |
( |
| ) |
|
|
inline |
◆ LogarithmicScaleOff()
| void albaGUIHistogramWidget::LogarithmicScaleOff |
( |
| ) |
|
|
inline |
◆ IsLogarithmicScale()
| bool albaGUIHistogramWidget::IsLogarithmicScale |
( |
| ) |
|
|
inline |
◆ ShowLines()
| void albaGUIHistogramWidget::ShowLines |
( |
int |
value = 1 | ) |
|
Enable/Disable threshold lines visualization.
◆ ShowText()
| void albaGUIHistogramWidget::ShowText |
( |
int |
value = 1 | ) |
|
|
inline |
Enable/Disable the visualization of the number of samples in the bin under the mouse cursor.
Definition at line 94 of file albaGUIHistogramWidget.h.
◆ SetLut()
| void albaGUIHistogramWidget::SetLut |
( |
vtkLookupTable * |
lut | ) |
|
Set the reference to the lut which range will be adjusted by the slider.
The reference to the Lookup Table should be set before asking for the Histogram's Gui, so the slider to change the lookup table's range will appear on the UI.
◆ GetGui()
| albaGUI * albaGUIHistogramWidget::GetGui |
( |
| ) |
|
Return a reference to the UI.
◆ GetThresholds()
| void albaGUIHistogramWidget::GetThresholds |
( |
double * |
lower, |
|
|
double * |
upper |
|
) |
| |
Get the threshold of the histogram if setted.
◆ GetHistogramValue()
| long int albaGUIHistogramWidget::GetHistogramValue |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
◆ GetHistogramScalarValue()
| double albaGUIHistogramWidget::GetHistogramScalarValue |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
◆ UpdateLines()
| void albaGUIHistogramWidget::UpdateLines |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
Update position of the gizmo lines.
◆ CreateGui()
| void albaGUIHistogramWidget::CreateGui |
( |
| ) |
|
|
protected |
Create GUI for histogram widget.
◆ UpdateGui()
| void albaGUIHistogramWidget::UpdateGui |
( |
| ) |
|
|
protected |
Update UI parameters according to the vtkALBAHistogram.
◆ EnableWidgets()
| void albaGUIHistogramWidget::EnableWidgets |
( |
bool |
enable = true | ) |
|
|
protected |
Enable/disable view widgets.
◆ m_Listener
◆ m_HisctogramValue
| int albaGUIHistogramWidget::m_HisctogramValue |
|
protected |
◆ m_NumberOfBins
| int albaGUIHistogramWidget::m_NumberOfBins |
|
protected |
◆ m_LogHistogramFlag
| int albaGUIHistogramWidget::m_LogHistogramFlag |
|
protected |
◆ m_Threshold
| double albaGUIHistogramWidget::m_Threshold[2] |
|
protected |
◆ m_ShowText
| int albaGUIHistogramWidget::m_ShowText |
|
protected |
◆ m_Gui
| albaGUI* albaGUIHistogramWidget::m_Gui |
|
protected |
◆ m_Slider
◆ m_SliderThresholds
◆ m_SelectedRange
| double albaGUIHistogramWidget::m_SelectedRange[2] |
|
protected |
◆ m_Lut
| vtkLookupTable* albaGUIHistogramWidget::m_Lut |
|
protected |
◆ m_Data
| vtkDataArray* albaGUIHistogramWidget::m_Data |
|
protected |
◆ m_VME
| albaVME* albaGUIHistogramWidget::m_VME |
|
protected |
◆ m_HistogramRWI
| albaRWI* albaGUIHistogramWidget::m_HistogramRWI |
|
protected |
◆ m_Histogram
| vtkALBAHistogram* albaGUIHistogramWidget::m_Histogram |
|
protected |
◆ m_HistogramData
| vtkImageData* albaGUIHistogramWidget::m_HistogramData |
|
protected |
The documentation for this class was generated from the following file: