#include <ChildFrm.h>
Public Member Functions | |
| CChildFrame () | |
| virtual BOOL | PreCreateWindow (CREATESTRUCT &cs) |
| virtual BOOL | initOpenGL () |
| void | setContext () |
| virtual void | renderScene () |
| void | setRenderFlag (bool rs) |
| virtual | ~CChildFrame () |
| void | OnPaint () |
| afx_msg void | OnBnClickedButtonReset () |
Public Attributes | |
| CDC * | device_context_ |
| The device context. | |
| CDocument * | document |
| CPaintDC * | paint_device_context_ |
| CRect * | rect_ |
| unsigned int | x_dim_ |
| unsigned int | y_dim_ |
| float | pic_size |
| The draw size of the image. | |
| int | last_y_pos_ |
| The last y position value of the mouse cursor. | |
| int | last_x_pos_ |
| The last x position value of the mouse cursor. | |
| RGBAColor * | picture_data_ |
| The color data for the OpenGL rendering. | |
| HGLRC | rendering_context_ |
| The rendering context handle. | |
| bool | render_scene_ |
| FlowData * | theFlowData |
| Visualization * | thePainter |
Protected Member Functions | |
| virtual BOOL | createViewGLContext () |
| void | swapGLBuffers () |
| void | OnMouseMove (UINT flags, CPoint point) |
| void | OnMButtonDown (UINT flags, CPoint point) |
| virtual BOOL | OnCreateClient (LPCREATESTRUCT create_struct, CCreateContext *create_context) |
| BOOL | setupPixelFormat () |
| afx_msg void | OnSize (UINT type, int new_width, int new_height) |
| CChildFrame::CChildFrame | ( | ) |
| CChildFrame::~CChildFrame | ( | ) | [virtual] |
| BOOL CChildFrame::createViewGLContext | ( | ) | [protected, virtual] |
Creates the OpenGL context for drawing on the view.
| BOOL CChildFrame::initOpenGL | ( | ) | [virtual] |
This initializes all stuff needed for the OpenGL rendering.
| void CChildFrame::OnBnClickedButtonReset | ( | ) |
| 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::OnMButtonDown | ( | UINT | flags, | |
| CPoint | point | |||
| ) | [protected] |
| void CChildFrame::OnMouseMove | ( | UINT | flags, | |
| CPoint | point | |||
| ) | [protected] |
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 CChildFrame::OnPaint | ( | ) |
| 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. |
| BOOL CChildFrame::PreCreateWindow | ( | CREATESTRUCT & | cs | ) | [virtual] |
| void CChildFrame::renderScene | ( | ) | [virtual] |
Renders the scene of the current OpenGL view.
| void CChildFrame::setContext | ( | ) |
Sets the rendering context.
| void CChildFrame::setRenderFlag | ( | bool | rs | ) |
Sets the renderflag.
| BOOL CChildFrame::setupPixelFormat | ( | ) | [protected] |
Sets the format of the pixels to draw.
| void CChildFrame::swapGLBuffers | ( | ) | [protected] |
Sets the device context.
The device context.
| CDocument* CChildFrame::document |
The last x position value of the mouse cursor.
The last y position value of the mouse cursor.
| CPaintDC* CChildFrame::paint_device_context_ |
| float CChildFrame::pic_size |
The draw size of the image.
The color data for the OpenGL rendering.
| CRect* CChildFrame::rect_ |
The rendering context handle.
| unsigned int CChildFrame::x_dim_ |
| unsigned int CChildFrame::y_dim_ |
1.4.7