#include <flowvis_frame.h>
Public Member Functions | |
FlowVisFrame (wxWindow *parent) | |
Common Constructor. | |
void | OnTraFuChanged () |
Transfers the currently specified transfer function to the canvas. | |
Protected Member Functions | |
Event handlers for wxWidgets events | |
void | OnExit (wxCommandEvent &event) |
void | OnOpen (wxCommandEvent &event) |
void | OnBGOpenTraFu (wxCommandEvent &event) |
void | OnBGComboChange (wxCommandEvent &event) |
void | OnChangeNrArrows (wxSpinEvent &event) |
void | OnArrowOpenTraFu (wxCommandEvent &event) |
void | OnPlotSettingsChange (wxCommandEvent &event) |
void | OnSLPlotSettingsChange (wxCommandEvent &event) |
void | OnAbout (wxCommandEvent &event) |
void | OnSLColorChange (wxColourPickerEvent &event) |
void | OnGlyphDensitChanged (wxScrollEvent &event) |
void | OnApplyCalcSettings (wxCommandEvent &event) |
void | OnSave (wxCommandEvent &event) |
Private Member Functions | |
void | SyncUI () |
Syncroize the user Interface with the current settings and state. | |
void | TransferSLPlotSettings () |
Inform the canvas about the current Streamline Plot Settings. | |
void | TransferCalcSettings () |
Inform the canvas about the current Streamline Calculation Settings. | |
Private Attributes | |
FlowVisCanvas * | m_flowcanvas |
OpenGL Canvas for visualization. | |
std::auto_ptr< FlowVisData > | m_data |
Pointer to the data that is to be visualized. | |
std::vector< TraFuData > | m_trafu_datas |
Vector of all existing transfer functions. | |
int | m_current_set |
bool | m_arrows_enabled |
Definition at line 9 of file flowvis_frame.h.
FlowVisFrame::FlowVisFrame | ( | wxWindow * | parent | ) |
Common Constructor.
Definition at line 38 of file flowvis_frame.cpp.
References m_flowcanvas, SyncUI(), TransferCalcSettings(), and TransferSLPlotSettings().
void FlowVisFrame::OnTraFuChanged | ( | ) |
Transfers the currently specified transfer function to the canvas.
Definition at line 155 of file flowvis_frame.cpp.
References m_current_set, m_flowcanvas, m_trafu_datas, and FlowVisCanvas::UpdateTransferFunction().
Referenced by OnBGComboChange(), OnOpen(), and TraFuDialog::UpdateVolumeCanvas().
void FlowVisFrame::OnExit | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 62 of file flowvis_frame.cpp.
void FlowVisFrame::OnOpen | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 67 of file flowvis_frame.cpp.
References m_data, m_flowcanvas, m_trafu_datas, OnTraFuChanged(), FlowVisCanvas::SetData(), and SyncUI().
void FlowVisFrame::OnBGOpenTraFu | ( | wxCommandEvent & | event | ) | [protected] |
void FlowVisFrame::OnBGComboChange | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 148 of file flowvis_frame.cpp.
References m_current_set, m_flowcanvas, OnTraFuChanged(), and FlowVisCanvas::SetBackgroundSet().
void FlowVisFrame::OnChangeNrArrows | ( | wxSpinEvent & | event | ) | [protected] |
Definition at line 161 of file flowvis_frame.cpp.
References m_flowcanvas, and FlowVisCanvas::SetArrows().
void FlowVisFrame::OnArrowOpenTraFu | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 166 of file flowvis_frame.cpp.
void FlowVisFrame::OnPlotSettingsChange | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 170 of file flowvis_frame.cpp.
References m_flowcanvas, FlowVisCanvas::SetArrowPlot(), and FlowVisCanvas::SetBackgroundPlot().
void FlowVisFrame::OnSLPlotSettingsChange | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 198 of file flowvis_frame.cpp.
References m_flowcanvas, and TransferSLPlotSettings().
void FlowVisFrame::OnAbout | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 176 of file flowvis_frame.cpp.
void FlowVisFrame::OnSLColorChange | ( | wxColourPickerEvent & | event | ) | [protected] |
Definition at line 192 of file flowvis_frame.cpp.
References m_flowcanvas, and TransferSLPlotSettings().
void FlowVisFrame::OnGlyphDensitChanged | ( | wxScrollEvent & | event | ) | [protected] |
Definition at line 186 of file flowvis_frame.cpp.
References m_flowcanvas, and TransferSLPlotSettings().
void FlowVisFrame::OnApplyCalcSettings | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 213 of file flowvis_frame.cpp.
References m_flowcanvas, FlowVisCanvas::Prepare_Streamlines(), and TransferCalcSettings().
void FlowVisFrame::OnSave | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 276 of file flowvis_frame.cpp.
References m_flowcanvas, and FlowVisCanvas::RenderToFile().
void FlowVisFrame::SyncUI | ( | ) | [private] |
Syncroize the user Interface with the current settings and state.
Definition at line 100 of file flowvis_frame.cpp.
References m_current_set, m_data, and m_trafu_datas.
Referenced by FlowVisFrame(), and OnOpen().
void FlowVisFrame::TransferSLPlotSettings | ( | ) | [private] |
Inform the canvas about the current Streamline Plot Settings.
Definition at line 204 of file flowvis_frame.cpp.
References m_flowcanvas, FlowVisCanvas::SetGlyphDensity(), FlowVisCanvas::SetLineColor(), FlowVisCanvas::SetLineGlyphs(), FlowVisCanvas::SetLineTapering(), and FlowVisCanvas::SetStreamlinePlot().
Referenced by FlowVisFrame(), OnGlyphDensitChanged(), OnSLColorChange(), and OnSLPlotSettingsChange().
void FlowVisFrame::TransferCalcSettings | ( | ) | [private] |
Inform the canvas about the current Streamline Calculation Settings.
Definition at line 220 of file flowvis_frame.cpp.
References m_flowcanvas, FlowVisCanvas::SetDsep(), FlowVisCanvas::SetDtest(), FlowVisCanvas::SetIntegType(), FlowVisCanvas::SetMaxIter(), and FlowVisCanvas::SetStepSize().
Referenced by FlowVisFrame(), and OnApplyCalcSettings().
FlowVisCanvas* FlowVisFrame::m_flowcanvas [private] |
OpenGL Canvas for visualization.
Definition at line 46 of file flowvis_frame.h.
Referenced by FlowVisFrame(), OnApplyCalcSettings(), OnBGComboChange(), OnChangeNrArrows(), OnGlyphDensitChanged(), OnOpen(), OnPlotSettingsChange(), OnSave(), OnSLColorChange(), OnSLPlotSettingsChange(), OnTraFuChanged(), TransferCalcSettings(), and TransferSLPlotSettings().
std::auto_ptr<FlowVisData> FlowVisFrame::m_data [private] |
std::vector<TraFuData> FlowVisFrame::m_trafu_datas [private] |
Vector of all existing transfer functions.
Definition at line 52 of file flowvis_frame.h.
Referenced by OnBGOpenTraFu(), OnOpen(), OnTraFuChanged(), and SyncUI().
int FlowVisFrame::m_current_set [private] |
Definition at line 54 of file flowvis_frame.h.
Referenced by OnBGComboChange(), OnBGOpenTraFu(), OnTraFuChanged(), and SyncUI().
bool FlowVisFrame::m_arrows_enabled [private] |
Definition at line 55 of file flowvis_frame.h.