#include <YZView.h>
Inheritance diagram for YZView:
Public Member Functions | |
YZView () | |
Implementation for type information about the MFC classes at runtime. | |
virtual | ~YZView () |
virtual BOOL | initOpenGL () |
virtual void | renderScene () |
void | setDeviceContext () |
void | OnPaint () |
void | OnMouseMove (UINT flags, CPoint point) |
void | SetSliceDepth (int s_depth) |
Protected Member Functions | |
virtual BOOL | PreCreateWindow (CREATESTRUCT &create_struct) |
afx_msg int | OnCreate (LPCREATESTRUCT create_struct) |
afx_msg void | OnDestroy () |
afx_msg BOOL | OnEraseBkgnd (CDC *device_context) |
Protected Attributes | |
SliceViewer * | slice_viewer_ |
The slice viewer. | |
VolumeLoader * | volume_loader_ |
The volume loader. | |
RGBAColor * | slice_data_ |
The slice color data for the OpenGL rendering. | |
unsigned int | slice_depth_ |
The depth of the slice. | |
int | last_y_pos_ |
The last y position value of the mouse cursor. | |
unsigned int | slice_x_dim_ |
The x slice dimension. | |
unsigned int | slice_y_dim_ |
The y slice dimension. | |
unsigned int | slice_z_dim_ |
The z slice dimension. | |
Private Attributes | |
float | slice_size |
The draw size of the slice. |
YZView::YZView | ( | ) |
Implementation for type information about the MFC classes at runtime.
The default constructor.
YZView::~YZView | ( | ) | [virtual] |
The destructor.
BOOL YZView::initOpenGL | ( | ) | [virtual] |
This initializes all stuff needed for the OpenGL rendering.
Reimplemented from OpenGLView.
int YZView::OnCreate | ( | LPCREATESTRUCT | create_struct | ) | [protected] |
The MFC framework calls this member function when an application requests that the Windows window be created by calling the Create or CreateEx member function.
create_struct | Points to a CREATESTRUCT structure that contains information about the CWnd object being created. |
Reimplemented from OpenGLView.
void YZView::OnDestroy | ( | ) | [protected] |
The framework calls this member function to inform the CWnd object that it is being destroyed.
Reimplemented from OpenGLView.
BOOL YZView::OnEraseBkgnd | ( | CDC * | device_context | ) | [protected] |
The MFC framework calls this member function when the CWnd object background needs erasing (for example, when resized).
device_context | Specifies the device-context object. |
Reimplemented from OpenGLView.
void YZView::OnMouseMove | ( | UINT | flags, | |
CPoint | point | |||
) |
void YZView::OnPaint | ( | ) |
BOOL YZView::PreCreateWindow | ( | CREATESTRUCT & | create_struct | ) | [protected, virtual] |
Called before the creation of the Windows window attached to this CWnd object.
create_struct | This structure defines the initialization parameters passed to the window procedure of an application. |
Reimplemented from OpenGLView.
void YZView::renderScene | ( | ) | [virtual] |
Renders the scene of the current OpenGL view.
Implements OpenGLView.
void YZView::setDeviceContext | ( | ) |
Sets the device context.
void YZView::SetSliceDepth | ( | int | s_depth | ) |
Sets the depth of the current slice.
s_depth | The depth of the current slice. |
int YZView::last_y_pos_ [protected] |
The last y position value of the mouse cursor.
RGBAColor* YZView::slice_data_ [protected] |
The slice color data for the OpenGL rendering.
unsigned int YZView::slice_depth_ [protected] |
The depth of the slice.
float YZView::slice_size [private] |
The draw size of the slice.
SliceViewer* YZView::slice_viewer_ [protected] |
The slice viewer.
unsigned int YZView::slice_x_dim_ [protected] |
The x slice dimension.
unsigned int YZView::slice_y_dim_ [protected] |
The y slice dimension.
unsigned int YZView::slice_z_dim_ [protected] |
The z slice dimension.
VolumeLoader* YZView::volume_loader_ [protected] |