#include "TransferFunctionWidget.h"
Public Member Functions | |
TransferFunctionWidget (wxWindow *parent) | |
Constructor. | |
~TransferFunctionWidget () | |
De-constructor. | |
void | DelayRealtimeUpdate (bool v) |
Enables/Disables realtime plot change updates. | |
void | OnDrawAllClick (wxCommandEvent &e) |
Called when the 'Draw All' checkbox is clicked. | |
void | OnDrawHistogramClick (wxCommandEvent &e) |
Called when the 'Histogram' checkbox is clicked. | |
void | OnActivePlotSelection (wxCommandEvent &e) |
Called when an Active plot ComboBox selection is made. | |
void | OnPlotModeSelection (wxCommandEvent &e) |
Called when a Point mode RadioBox selection is made. | |
void | OnSaveClick (wxCommandEvent &e) |
Called when a 'Save' button is clicked. | |
void | OnLoadClick (wxCommandEvent &e) |
Called when a 'Load' button is clicked. | |
void | OnRefreshClick (wxCommandEvent &e) |
Called when a 'Refresh' button is clicked. | |
void | OnResetClick (wxCommandEvent &e) |
Called when a 'Reset' button is clicked. | |
void | SetHistogram (const unsigned int *h) |
Sets the histogram. | |
void | SetListner (TransferPlotChangeListner *l) |
Sets object that listens for plot change events. |
Definition at line 351 of file TransferFunctionWidget.h.
TransferFunctionWidget::TransferFunctionWidget | ( | wxWindow * | parent | ) |
Constructor.
[in] | parent | the parent window the widget should reside in. |
Definition at line 733 of file TransferFunctionWidget.cpp.
void TransferFunctionWidget::DelayRealtimeUpdate | ( | bool | v | ) | [inline] |
Enables/Disables realtime plot change updates.
[in] | v | set to true to delay realtime plot change updates, otherwise set to false. |
Definition at line 372 of file TransferFunctionWidget.h.
References TransferFunctionPlot::DelayRealtimeUpdate().
Referenced by MainWindow::OnRealTimeClick().
void TransferFunctionWidget::OnDrawAllClick | ( | wxCommandEvent & | e | ) |
Called when the 'Draw All' checkbox is clicked.
[in,out] | e | the event. |
Definition at line 826 of file TransferFunctionWidget.cpp.
References TransferFunctionPlot::DrawAll().
void TransferFunctionWidget::OnDrawHistogramClick | ( | wxCommandEvent & | e | ) |
Called when the 'Histogram' checkbox is clicked.
[in,out] | e | the event. |
Definition at line 832 of file TransferFunctionWidget.cpp.
References TransferFunctionPlot::DrawHistogram().
void TransferFunctionWidget::OnActivePlotSelection | ( | wxCommandEvent & | e | ) |
Called when an Active plot ComboBox selection is made.
[in,out] | e | the event. |
Definition at line 838 of file TransferFunctionWidget.cpp.
References TransferFunctionPlot::MakeAlphaActive(), TransferFunctionPlot::MakeBlueActive(), TransferFunctionPlot::MakeGreenActive(), and TransferFunctionPlot::MakeRedActive().
void TransferFunctionWidget::OnPlotModeSelection | ( | wxCommandEvent & | e | ) |
Called when a Point mode RadioBox selection is made.
[in,out] | e | the event. |
Definition at line 859 of file TransferFunctionWidget.cpp.
References TransferFunctionPlot::SetPlotMode().
void TransferFunctionWidget::OnSaveClick | ( | wxCommandEvent & | e | ) |
Called when a 'Save' button is clicked.
[in,out] | e | the event. |
Definition at line 877 of file TransferFunctionWidget.cpp.
References TransferFunctionPlot::Save().
void TransferFunctionWidget::OnLoadClick | ( | wxCommandEvent & | e | ) |
Called when a 'Load' button is clicked.
[in,out] | e | the event. |
Definition at line 901 of file TransferFunctionWidget.cpp.
References TransferFunctionPlot::Load().
void TransferFunctionWidget::OnRefreshClick | ( | wxCommandEvent & | e | ) |
Called when a 'Refresh' button is clicked.
[in,out] | e | the event. |
Definition at line 925 of file TransferFunctionWidget.cpp.
References TransferFunctionPlot::RefreshListner().
void TransferFunctionWidget::OnResetClick | ( | wxCommandEvent & | e | ) |
Called when a 'Reset' button is clicked.
[in,out] | e | the event. |
Definition at line 931 of file TransferFunctionWidget.cpp.
References TransferFunctionPlot::ResetPlot().
void TransferFunctionWidget::SetHistogram | ( | const unsigned int * | h | ) | [inline] |
Sets the histogram.
[in] | h | the histogram, assumed to have at least 256 elements. |
Definition at line 435 of file TransferFunctionWidget.h.
References TransferFunctionPlot::SetHistogram().
Referenced by MainWindow::OnLoadDataSetButtonClick().
void TransferFunctionWidget::SetListner | ( | TransferPlotChangeListner * | l | ) | [inline] |
Sets object that listens for plot change events.
[in] | l | pointer to the listner. |
Definition at line 442 of file TransferFunctionWidget.h.
References TransferFunctionPlot::SetListner().