XZView Class Reference

#include <XZView.h>

Inheritance diagram for XZView:

OpenGLView List of all members.

Public Member Functions

 XZView ()
 Implementation for type information about the MFC classes at runtime.
virtual ~XZView ()
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

XZView::XZView (  ) 

Implementation for type information about the MFC classes at runtime.

The constructor.

XZView::~XZView (  )  [virtual]

The destructor.


Member Function Documentation

BOOL XZView::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 XZView::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 XZView::OnDestroy (  )  [protected]

The framework calls this member function to inform the CWnd object that it is being destroyed.

Reimplemented from OpenGLView.

BOOL XZView::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 XZView::OnMouseMove ( UINT  flags,
CPoint  point 
)

The MFC framework calls this member function when the mouse cursor moves.

Parameters:
flags Indicates whether various virtual keys are down.
point Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.

void XZView::OnPaint (  ) 

The framework calls this member function when Windows or an application makes a request to repaint a portion of an application's window.

BOOL XZView::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 XZView::renderScene (  )  [virtual]

Renders the scene of the current OpenGL view.

Implements OpenGLView.

void XZView::setDeviceContext (  ) 

Sets the device context.

void XZView::SetSliceDepth ( int  s_depth  ) 

Sets the depth of the current slice.

Parameters:
s_depth The depth of the current slice.


Member Data Documentation

int XZView::last_y_pos_ [protected]

The last y position value of the mouse cursor.

RGBAColor* XZView::slice_data_ [protected]

The slice color data for the OpenGL rendering.

unsigned int XZView::slice_depth_ [protected]

The depth of the slice.

float XZView::slice_size [private]

The draw size of the slice.

SliceViewer* XZView::slice_viewer_ [protected]

The slice viewer.

unsigned int XZView::slice_x_dim_ [protected]

The x slice dimension.

unsigned int XZView::slice_y_dim_ [protected]

The y slice dimension.

unsigned int XZView::slice_z_dim_ [protected]

The z slice dimension.

VolumeLoader* XZView::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