MainWindow Class Reference

The main application window that holds the OpenGL display and the controls. More...

#include "MainWindow.h"

Inheritance diagram for MainWindow:

Inheritance graph
[legend]
Collaboration diagram for MainWindow:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

The main application window that holds the OpenGL display and the controls.

Definition at line 22 of file MainWindow.h.


Constructor & Destructor Documentation

MainWindow::MainWindow ( const wxString &  name  ) 

Constructor.

Parameters:
[in] name the name of the window.

Definition at line 74 of file MainWindow.cpp.

References OnAbout(), and OnQuit().


Member Function Documentation

void MainWindow::OnQuit ( wxCommandEvent &  e  ) 

The event called when the File+Exit menu item is pressed.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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