#include <ChildFrm.h>
Public Member Functions | |
CChildFrame () | |
CSplitterWnd * | getViewSplitter () |
SliceViewer * | getSliceViewer () |
VolumeLoader * | getVolumeLoader () |
void | registerView (XYView *aXYView, XZView *aXZView, YZView *aYZView) |
virtual BOOL | PreCreateWindow (CREATESTRUCT &cs) |
virtual | ~CChildFrame () |
void | EnableSliceViewer (bool sv_flag) |
void | loadData (char const *filename) |
afx_msg void | OnView3dview () |
Public Attributes | |
SliceDialog * | slice_dialog_ |
The slice viewer dialog bar. | |
bool | showGradients |
VolumeLoader * | volume_loader_ |
This holds the volume loader. | |
bool | init_viewport_split_ |
OpaqueCubes * | opaque_cubes_ |
matrix44 | view_matrix_ |
The view matrix of the volume. | |
matrix44 | inv_view_matrix_ |
The inverse view matrix of the volume. | |
BlackView * | black_view |
Protected Member Functions | |
virtual BOOL | OnCreateClient (LPCREATESTRUCT create_struct, CCreateContext *create_context) |
afx_msg void | OnSize (UINT type, int new_width, int new_height) |
Protected Attributes | |
CSplitterWnd | viewport_split_ |
splitted by such splitter panel. | |
SliceViewer * | slice_viewer_ |
This holds the slice creator. | |
Raycaster * | raycaster_ |
CChildFrame::CChildFrame | ( | ) |
CChildFrame::~CChildFrame | ( | ) | [virtual] |
void CChildFrame::EnableSliceViewer | ( | bool | sv_flag | ) |
SliceViewer * CChildFrame::getSliceViewer | ( | ) |
This returns the slice creator.
CSplitterWnd* CChildFrame::getViewSplitter | ( | ) |
This returns the viewport splitter window.
VolumeLoader * CChildFrame::getVolumeLoader | ( | ) |
This returns the volume loader.
void CChildFrame::loadData | ( | char const * | filename | ) |
This loads the data using the volume loader and creates the slices using the slice creator.
filename | This holds the filename of the dataset. |
BOOL CChildFrame::OnCreateClient | ( | LPCREATESTRUCT | create_struct, | |
CCreateContext * | create_context | |||
) | [protected, virtual] |
Called by the framework during the execution of OnCreate.
create_struct | A pointer to a Windows 'CREATESTRUCT' structure, defining the initialization parameters passed to the window procedure of an application. | |
create_context | A pointer to a 'CCreateContext' structure containing pointers to the document, the frame window, the view, and the document template. |
void CChildFrame::OnSize | ( | UINT | type, | |
int | new_width, | |||
int | new_height | |||
) | [protected] |
The framework calls this member function after the window's size has changed. Here we adjust the viewport after sizing the window.
type | Specifies the type of resizing requested. | |
new_width | Specifies the new width of the client area. | |
new_height | Specifies the new height of the client area. information about the CWnd object being created. |
void CChildFrame::OnView3dview | ( | ) |
BOOL CChildFrame::PreCreateWindow | ( | CREATESTRUCT & | cs | ) | [virtual] |
This registers the views to the dialog.
The inverse view matrix of the volume.
Raycaster* CChildFrame::raycaster_ [protected] |
The slice viewer dialog bar.
SliceViewer* CChildFrame::slice_viewer_ [protected] |
This holds the slice creator.
The view matrix of the volume.
CSplitterWnd CChildFrame::viewport_split_ [protected] |
splitted by such splitter panel.
This holds the viewport splitter panel. The four views are going to be
This holds the volume loader.