YZView Class Reference

#include <YZView.h>

Inheritance diagram for YZView:

OpenGLView List of all members.

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

SliceViewerslice_viewer_
 The slice viewer.
VolumeLoadervolume_loader_
 The volume loader.
RGBAColorslice_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.

Constructor & Destructor Documentation

YZView::YZView (  ) 

Implementation for type information about the MFC classes at runtime.

The default constructor.

YZView::~YZView (  )  [virtual]

The destructor.


Member Function Documentation

BOOL YZView::initOpenGL (  )  [virtual]

This initializes all stuff needed for the OpenGL rendering.

Returns:
If the setting og the pixel format succeeded, it returns TRUE; otherwise FALSE.

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.

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

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

Parameters:
create_struct This structure defines the initialization parameters passed to the window procedure of an application.
Returns:
Returns TRUE if the window creation should continue and FALSE to indicate creation failure.

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.

Parameters:
s_depth The depth of the current slice.


Member Data Documentation

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]

The volume loader.

Reimplemented from OpenGLView.


The documentation for this class was generated from the following files:
Generated on Wed Dec 6 11:27:27 2006 by  doxygen 1.4.7