VR-Forces 4.0.4 Class Documentation
Public Member Functions | Public Attributes | Private Attributes
DtEmbeddedMfcOsgWindow Class Reference

A simple OpenGL OSG control window. More...

Inheritance diagram for DtEmbeddedMfcOsgWindow:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtEmbeddedMfcOsgWindow (makVrv::DtDe &de, makVrv::DtWindowConfiguration &wc)
 CTOR.
virtual ~DtEmbeddedMfcOsgWindow ()
 DTOR.
virtual bool isValid () const
 Check to see if the window is still valid.
virtual void setPosition (int x, int y)
 Set the position of the window in screen coordinates.
virtual void resize (int width, int height)
 Resize the window.
virtual void sizeChanged (int width, int height)
 Called when the size of the window has changed.
void oglCreate (CRect rect, CWnd *parent)
void oglInitialize (bool doubleBuffer, bool stereo, unsigned int colorBits, unsigned int depthBits, unsigned int stencilBits, bool vsync)
 Initialize the OpenGL context.
bool isRealizedImplementation () const
void oglClose ()
 Deinitialize OpenGL.
bool makeCurrent ()
 Make this window's context current.
bool release ()
 Release this window's context.
void swapBuffers ()
 Swap this window's OpenGL buffers.
void setVSync (bool enabled)
 Control this window's vsync.
afx_msg void OnPaint ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnDraw (CDC *pDC)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnRButtonUp (UINT nFlags, CPoint point)
afx_msg void OnMButtonDown (UINT nFlags, CPoint point)
afx_msg void OnMButtonUp (UINT nFlags, CPoint point)

Public Attributes

UINT_PTR m_unpTimer

Private Attributes

DtMfcControlAsOsgContextmyControl
CWndmyHWnd
HDC myHDC
HGLRC myHGLRC
int myPixelFormat

Detailed Description

A simple OpenGL OSG control window.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual bool DtEmbeddedMfcOsgWindow::isValid ( ) const [virtual]

Check to see if the window is still valid.

Reimplemented from makVrv::DtOsgWindow.

virtual void DtEmbeddedMfcOsgWindow::setPosition ( int  x,
int  y 
) [virtual]

Set the position of the window in screen coordinates.

Implements makVrv::DtWindow.

virtual void DtEmbeddedMfcOsgWindow::resize ( int  width,
int  height 
) [virtual]

Resize the window.

Implements makVrv::DtWindow.

virtual void DtEmbeddedMfcOsgWindow::sizeChanged ( int  width,
int  height 
) [virtual]

Called when the size of the window has changed.

This is necessary since often the window system will allow the use to resize a window.

Reimplemented from makVrv::DtOsgWindow.

void DtEmbeddedMfcOsgWindow::oglCreate ( CRect  rect,
CWnd parent 
)
void DtEmbeddedMfcOsgWindow::oglInitialize ( bool  doubleBuffer,
bool  stereo,
unsigned int  colorBits,
unsigned int  depthBits,
unsigned int  stencilBits,
bool  vsync 
)

Initialize the OpenGL context.

Deinitialize OpenGL.

Make this window's context current.

Release this window's context.

Swap this window's OpenGL buffers.

Control this window's vsync.

afx_msg void DtEmbeddedMfcOsgWindow::OnSize ( UINT  nType,
int  cx,
int  cy 
)
afx_msg void DtEmbeddedMfcOsgWindow::OnDraw ( CDC *  pDC)
afx_msg int DtEmbeddedMfcOsgWindow::OnCreate ( LPCREATESTRUCT  lpCreateStruct)
afx_msg void DtEmbeddedMfcOsgWindow::OnMouseMove ( UINT  nFlags,
CPoint  point 
)
afx_msg void DtEmbeddedMfcOsgWindow::OnLButtonDown ( UINT  nFlags,
CPoint  point 
)
afx_msg void DtEmbeddedMfcOsgWindow::OnLButtonUp ( UINT  nFlags,
CPoint  point 
)
afx_msg void DtEmbeddedMfcOsgWindow::OnRButtonDown ( UINT  nFlags,
CPoint  point 
)
afx_msg void DtEmbeddedMfcOsgWindow::OnRButtonUp ( UINT  nFlags,
CPoint  point 
)
afx_msg void DtEmbeddedMfcOsgWindow::OnMButtonDown ( UINT  nFlags,
CPoint  point 
)
afx_msg void DtEmbeddedMfcOsgWindow::OnMButtonUp ( UINT  nFlags,
CPoint  point 
)

Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)