VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
DtEmbeddedMfcOsgWindow Class Reference

A simple OpenGL OSG control window.

Inheritance diagram for DtEmbeddedMfcOsgWindow:
Inheritance graph
[legend]

Public Member Functions

 DtEmbeddedMfcOsgWindow (makVrv::DtDe &de, makVrv::DtWindowConfiguration &wc)
 
virtual ~DtEmbeddedMfcOsgWindow ()
 
virtual bool isValid () const
 
virtual void setPosition (int x, int y)
 
virtual void resize (int width, int height)
 
virtual void sizeChanged (int width, int height)
 
void oglCreate (CRect rect, CWnd *parent)
 
void oglInitialize (bool doubleBuffer, bool stereo, unsigned int colorBits, unsigned int depthBits, unsigned int stencilBits, bool vsync)
 
bool isRealizedImplementation () const
 
void oglClose ()
 
bool makeCurrent ()
 
bool release ()
 
void swapBuffers ()
 
void setVSync (bool enabled)
 
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 Member Functions inherited from makVrv::DtOsgWindow
virtual ~DtOsgWindow ()
 
virtual osg::GraphicsContext * graphicsContext ()
 
virtual const
osg::GraphicsContext * 
graphicsContext () const
 
void adjustPerspective ()
 
virtual void clearEmptyWindow (const std::string &messageLine1, const std::string &messageLine2, const std::string &messageLine3)
 
- Public Member Functions inherited from makVrv::DtWindow
 DtWindow (DtDe &, DtWindowConfiguration &wc)
 
virtual void realize ()
 
virtual ~DtWindow ()
 
virtual bool canResize () const
 
virtual int width () const
 
virtual bool isChildWindow () const
 
virtual int height () const
 
virtual int pixelRatio () const
 
virtual float pixelRatioF () const
 
virtual int physicalDpiX () const
 
virtual int physicalDpiY () const
 
virtual const
DtWindowConfiguration
configuration () const
 
virtual bool tick ()
 
virtual DtChannelManagerchannelManager ()
 
virtual const DtChannelManagerchannelManager () const
 
virtual DtChannelfindChannel (const std::string &name)
 
DtDede ()
 
virtual void toggleFullScreen ()
 
virtual bool isFullScreen () const
 
virtual int screenNumber () const
 

Private Attributes

DtMfcControlAsOsgContextmyControl
 
CWndmyHWnd
 
HDC myHDC
 
HGLRC myHGLRC
 
int myPixelFormat
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtOsgWindow
static
osg::GraphicsContext::Traits * 
createDefaultTraits ()
 
- Public Attributes inherited from makVrv::DtWindow
boost::signalslib::signal
< void(bool)> 
signal_fullScreenModeChanged
 
boost::signalslib::signal
< void(float)> 
signal_pixelRatioChanged
 
- Protected Member Functions inherited from makVrv::DtOsgWindow
 DtOsgWindow (DtDe &de, DtWindowConfiguration &wc)
 
virtual void renderText (int x, int y, const std::string &text)
 
- Static Protected Member Functions inherited from makVrv::DtOsgWindow
static void setUpAntiAliasingLevels (osg::GraphicsContext::Traits &traits, unsigned short level)
 
- Protected Attributes inherited from makVrv::DtOsgWindow
osg::ref_ptr
< osg::GraphicsContext > 
myContext
 
- Protected Attributes inherited from makVrv::DtWindow
DtDemyDe
 
DtChannelManagermyChannelManager
 
DtWindowConfigurationmyWindowConfiguration
 
bool myIsChildWindow
 

Constructor & Destructor Documentation

DtEmbeddedMfcOsgWindow::DtEmbeddedMfcOsgWindow ( makVrv::DtDe de,
makVrv::DtWindowConfiguration wc 
)

CTOR.

virtual DtEmbeddedMfcOsgWindow::~DtEmbeddedMfcOsgWindow ( )
virtual

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.

bool DtEmbeddedMfcOsgWindow::isRealizedImplementation ( ) const
void DtEmbeddedMfcOsgWindow::oglClose ( )

Deinitialize OpenGL.

bool DtEmbeddedMfcOsgWindow::makeCurrent ( )

Make this window's context current.

bool DtEmbeddedMfcOsgWindow::release ( )

Release this window's context.

void DtEmbeddedMfcOsgWindow::swapBuffers ( )

Swap this window's OpenGL buffers.

void DtEmbeddedMfcOsgWindow::setVSync ( bool  enabled)

Control this window's vsync.

afx_msg void DtEmbeddedMfcOsgWindow::OnPaint ( )
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

DtMfcControlAsOsgContext* DtEmbeddedMfcOsgWindow::myControl
private
CWnd* DtEmbeddedMfcOsgWindow::myHWnd
private
HDC DtEmbeddedMfcOsgWindow::myHDC
private
HGLRC DtEmbeddedMfcOsgWindow::myHGLRC
private
int DtEmbeddedMfcOsgWindow::myPixelFormat
private

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)