TransferFunctionWidget Class Reference

The widget for creating tranfer functions. More...

#include "TransferFunctionWidget.h"

Collaboration diagram for TransferFunctionWidget:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

The widget for creating tranfer functions.

Definition at line 351 of file TransferFunctionWidget.h.


Constructor & Destructor Documentation

TransferFunctionWidget::TransferFunctionWidget ( wxWindow *  parent  ) 

Constructor.

Parameters:
[in] parent the parent window the widget should reside in.

Definition at line 733 of file TransferFunctionWidget.cpp.


Member Function Documentation

void TransferFunctionWidget::DelayRealtimeUpdate ( bool  v  )  [inline]

Enables/Disables realtime plot change updates.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[in] l pointer to the listner.

Definition at line 442 of file TransferFunctionWidget.h.

References TransferFunctionPlot::SetListner().


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

Generated on Thu Jan 15 00:58:04 2009 for RTVolumeRendering by  doxygen 1.5.6