#include "MainWindow.h"
Public Member Functions | |
MainWindow (const wxString &name) | |
Constructor. | |
~MainWindow () | |
De-constructor. | |
void | OnQuit (wxCommandEvent &e) |
The event called when the File+Exit menu item is pressed. | |
void | OnAbout (wxCommandEvent &e) |
Called when the Help+About menu item is pressed. | |
void | OnReSize (wxSizeEvent &e) |
Called when the window is resized. | |
void | OnIdle (wxIdleEvent &e) |
Called when no other events are waiting. | |
void | OnDrawCubeClick (wxCommandEvent &e) |
Called when the 'Draw Cubes' checkbox is clicked. | |
void | OnDrawOutlineClick (wxCommandEvent &e) |
Called when the 'Draw Outlines' checkbox is clicked. | |
void | OnDrawPlanesClick (wxCommandEvent &e) |
Called when the 'Draw Planes' checkbox is clicked. | |
void | OnUseTexClick (wxCommandEvent &e) |
Called when the 'Use Texture' checkbox is clicked. | |
void | OnDetachCameraClick (wxCommandEvent &e) |
Called when the 'Detach Camera' checkbox is clicked. | |
void | OnRealTimeClick (wxCommandEvent &e) |
Called when the 'Real-Time' checkbox is clicked. | |
void | OnDrawTimer (wxTimerEvent &e) |
Called when periodically when non-realtime mode is being used. | |
void | OnPlanesSliderScroll (wxScrollEvent &e) |
Called when the the planes scroll bar changes. | |
void | OnResolutionSelection (wxCommandEvent &e) |
Called when a Resolution ComboBox selection is made. | |
void | OnLoadDataSetButtonClick (wxCommandEvent &e) |
Called when the Load data set button is clicked. | |
void | OnSetLightDirButtonClick (wxCommandEvent &e) |
Called when the 'Set' light direction button is pressed. | |
void | OnResetLightDirButtonClick (wxCommandEvent &e) |
Called when the 'Reset' light direction button is pressed. | |
virtual void | ColorChanged (const ColorBox *cbox) |
Called when a new color is selected. | |
Protected Member Functions | |
void | Update (float dt) |
Updates the frame. | |
void | Draw () |
Draws the current frame. |
Definition at line 22 of file MainWindow.h.
MainWindow::MainWindow | ( | const wxString & | name | ) |
Constructor.
[in] | name | the name of the window. |
Definition at line 74 of file MainWindow.cpp.
void MainWindow::OnQuit | ( | wxCommandEvent & | e | ) |
The event called when the File+Exit menu item is pressed.
[in,out] | e | the event. |
Definition at line 319 of file MainWindow.cpp.
Referenced by MainWindow().
void MainWindow::OnAbout | ( | wxCommandEvent & | e | ) |
Called when the Help+About menu item is pressed.
[in,out] | e | the event. |
Definition at line 325 of file MainWindow.cpp.
Referenced by MainWindow().
void MainWindow::OnReSize | ( | wxSizeEvent & | e | ) |
Called when the window is resized.
[in,out] | e | the event. |
Definition at line 331 of file MainWindow.cpp.
void MainWindow::OnIdle | ( | wxIdleEvent & | e | ) |
Called when no other events are waiting.
[in,out] | e | the event. |
Definition at line 528 of file MainWindow.cpp.
References Draw(), and RTVolumeRenderer::SetFrameTime().
void MainWindow::OnDrawCubeClick | ( | wxCommandEvent & | e | ) |
Called when the 'Draw Cubes' checkbox is clicked.
[in,out] | e | the event. |
Definition at line 334 of file MainWindow.cpp.
References RTVolumeRenderer::ShouldDrawCube().
void MainWindow::OnDrawOutlineClick | ( | wxCommandEvent & | e | ) |
Called when the 'Draw Outlines' checkbox is clicked.
[in,out] | e | the event. |
Definition at line 340 of file MainWindow.cpp.
References RTVolumeRenderer::ShouldDrawCubeOutline().
void MainWindow::OnDrawPlanesClick | ( | wxCommandEvent & | e | ) |
Called when the 'Draw Planes' checkbox is clicked.
[in,out] | e | the event. |
Definition at line 346 of file MainWindow.cpp.
References RTVolumeRenderer::ShouldDrawPlanes().
void MainWindow::OnUseTexClick | ( | wxCommandEvent & | e | ) |
Called when the 'Use Texture' checkbox is clicked.
[in,out] | e | the event. |
Definition at line 352 of file MainWindow.cpp.
References RTVolumeRenderer::UseVolumeTexture().
void MainWindow::OnDetachCameraClick | ( | wxCommandEvent & | e | ) |
Called when the 'Detach Camera' checkbox is clicked.
[in,out] | e | the event. |
Definition at line 358 of file MainWindow.cpp.
References RTVolumeRenderer::ToggleCameraAttachment().
void MainWindow::OnRealTimeClick | ( | wxCommandEvent & | e | ) |
Called when the 'Real-Time' checkbox is clicked.
[in,out] | e | the event. |
Definition at line 364 of file MainWindow.cpp.
References TransferFunctionWidget::DelayRealtimeUpdate(), and RTVolumeRenderer::SetQuickMovmentRendering().
void MainWindow::OnDrawTimer | ( | wxTimerEvent & | e | ) |
Called when periodically when non-realtime mode is being used.
[in,out] | e | the event. |
Definition at line 372 of file MainWindow.cpp.
void MainWindow::OnPlanesSliderScroll | ( | wxScrollEvent & | e | ) |
Called when the the planes scroll bar changes.
[in,out] | e | the event. |
Definition at line 377 of file MainWindow.cpp.
References RTVolumeRenderer::SetPlanes().
void MainWindow::OnResolutionSelection | ( | wxCommandEvent & | e | ) |
Called when a Resolution ComboBox selection is made.
[in,out] | e | the event. |
Definition at line 383 of file MainWindow.cpp.
References RTVolumeRenderer::ResizeRenderer().
void MainWindow::OnLoadDataSetButtonClick | ( | wxCommandEvent & | e | ) |
Called when the Load data set button is clicked.
[in,out] | e | the event. |
Definition at line 486 of file MainWindow.cpp.
References RTVolumeRenderer::CopyHistogram(), VTInfo::depth, VTInfo::height, RTVolumeRenderer::LoadVolumeDataSet(), TransferFunctionWidget::SetHistogram(), and VTInfo::width.
void MainWindow::OnSetLightDirButtonClick | ( | wxCommandEvent & | e | ) |
Called when the 'Set' light direction button is pressed.
[in,out] | e | the event. |
Definition at line 409 of file MainWindow.cpp.
References Vector3< T >::Length(), RTVolumeRenderer::SetLightDirection(), Vector3< T >::x, Vector3< T >::y, and Vector3< T >::z.
void MainWindow::OnResetLightDirButtonClick | ( | wxCommandEvent & | e | ) |
Called when the 'Reset' light direction button is pressed.
[in,out] | e | the event. |
Definition at line 454 of file MainWindow.cpp.
References RTVolumeRenderer::SetLightDirection(), Vector3< T >::x, Vector3< T >::y, and Vector3< T >::z.
void MainWindow::ColorChanged | ( | const ColorBox * | cbox | ) | [virtual] |
Called when a new color is selected.
[in] | cbox | the ColorBox that changed. |
Implements ColorBoxListner.
Definition at line 471 of file MainWindow.cpp.
References ColorBox::color, RTVolumeRenderer::SetBackgroundColor(), RTVolumeRenderer::SetCubeColor(), RTVolumeRenderer::SetLightDiffuseColor(), RTVolumeRenderer::SetOutlineColor(), and RTVolumeRenderer::SetPlaneColor().