#include <XYView.h>
Inheritance diagram for XYView:

Public Member Functions | |
| XYView () | |
| Implementation for type information about the MFC classes at runtime. | |
| virtual | ~XYView () |
| virtual BOOL | initOpenGL () |
| virtual void | renderScene () |
| void | setDeviceContext () |
| void | OnPaint () |
| void | OnMouseMove (UINT flags, CPoint point) |
| void | SetSliceDepth (int s_depth) |
| int | getXDim () |
| int | getYDim () |
| int | getZDim () |
Public Attributes | |
| SliceViewer * | slice_viewer_ |
| The slice viewer. | |
| VolumeLoader * | volume_loader_ |
| The volume loader. | |
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 | |
| 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. | |
| XYView::XYView | ( | ) |
Implementation for type information about the MFC classes at runtime.
The default constructor.
| XYView::~XYView | ( | ) | [virtual] |
The destructor.
| int XYView::getXDim | ( | ) |
| int XYView::getYDim | ( | ) |
| int XYView::getZDim | ( | ) |
| BOOL XYView::initOpenGL | ( | ) | [virtual] |
This initializes all stuff needed for the OpenGL rendering.
Reimplemented from OpenGLView.
| int XYView::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 XYView::OnDestroy | ( | ) | [protected] |
The framework calls this member function to inform the CWnd object that it is being destroyed.
Reimplemented from OpenGLView.
| BOOL XYView::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 XYView::OnMouseMove | ( | UINT | flags, | |
| CPoint | point | |||
| ) |
The MFC framework calls this member function when the mouse cursor moves.
| 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 XYView::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 XYView::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 XYView::renderScene | ( | ) | [virtual] |
Renders the scene of the current OpenGL view.
Implements OpenGLView.
| void XYView::setDeviceContext | ( | ) |
Sets the device context.
| void XYView::SetSliceDepth | ( | int | s_depth | ) |
Sets the depth of the current slice.
| s_depth | The depth of the current slice. |
int XYView::last_y_pos_ [protected] |
The last y position value of the mouse cursor.
RGBAColor* XYView::slice_data_ [protected] |
The slice color data for the OpenGL rendering.
unsigned int XYView::slice_depth_ [protected] |
The depth of the slice.
float XYView::slice_size [private] |
The draw size of the slice.
The slice viewer.
unsigned int XYView::slice_x_dim_ [protected] |
The x slice dimension.
unsigned int XYView::slice_y_dim_ [protected] |
The y slice dimension.
unsigned int XYView::slice_z_dim_ [protected] |
The z slice dimension.
1.4.7