![]() |
VR-Forces 4.10 Class Documentation
|
A simple OpenGL OSG control window. More...

Public Member Functions | |
| DtEmbeddedMfcOsgWindow (makVrv::DtDe &de, makVrv::DtWindowConfiguration &wc) | |
| CTOR. More... | |
| virtual | ~DtEmbeddedMfcOsgWindow () |
| DTOR. More... | |
| virtual bool | isValid () const |
| Check to see if the window is still valid. More... | |
| virtual void | setPosition (int x, int y) |
| Set the position of the window in screen coordinates. More... | |
| virtual void | resize (int width, int height) |
| Resize the window. More... | |
| virtual void | sizeChanged (int width, int height) |
| Called when the size of the window has changed. More... | |
| 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. More... | |
| bool | isRealizedImplementation () const |
| void | oglClose () |
| Deinitialize OpenGL. More... | |
| bool | makeCurrent () |
| Make this window's context current. More... | |
| bool | release () |
| Release this window's context. More... | |
| void | swapBuffers () |
| Swap this window's OpenGL buffers. More... | |
| void | setVSync (bool enabled) |
| Control this window's vsync. More... | |
| 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 () |
| DTOR. More... | |
| virtual osg::GraphicsContext * | graphicsContext () |
| Get the OSG Graphics Context for the window. More... | |
| virtual const osg::GraphicsContext * | graphicsContext () const |
| Get the const OSG Graphics Context for the window. More... | |
| void | adjustPerspective () |
| virtual void | clearEmptyWindow (const std::string &messageLine1, const std::string &messageLine2, const std::string &messageLine3) |
| Called every tick by the renderer on windows with no channels. More... | |
Public Member Functions inherited from makVrv::DtWindow | |
| DtWindow (DtDe &, DtWindowConfiguration &wc) | |
| CTOR. More... | |
| virtual void | realize () |
| Realize the current configured channels. More... | |
| virtual | ~DtWindow () |
| DTOR. More... | |
| virtual bool | canResize () const |
| Check to see if the window can be resized. More... | |
| virtual int | width () const |
| Get the window width. More... | |
| virtual bool | isChildWindow () const |
| Get the window is child window flag. More... | |
| virtual int | height () const |
| Get the window height. More... | |
| virtual float | pixelRatio () const |
| Get the window pixel ratio for high dpi scaling. More... | |
| virtual const DtWindowConfiguration & | configuration () const |
| Get the window configuration. More... | |
| virtual bool | tick () |
| Tick the window. More... | |
| virtual DtChannelManager & | channelManager () |
| Get the window's channel manager. More... | |
| virtual const DtChannelManager & | channelManager () const |
| Get the window's channel manager. More... | |
| virtual DtChannel * | findChannel (const std::string &name) |
| Find a channel. More... | |
| DtDe & | de () |
| Accessor to get the de;. More... | |
| virtual void | toggleFullScreen () |
| toggle fullscreen mode, for windows that support it. More... | |
| virtual bool | isFullScreen () const |
| virtual int | screenNumber () const |
| Get the screen number of the screen that this window is on. More... | |
Private Attributes | |
| DtMfcControlAsOsgContext * | myControl |
| CWnd * | myHWnd |
| HDC | myHDC |
| HGLRC | myHGLRC |
| int | myPixelFormat |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtOsgWindow | |
| static osg::GraphicsContext::Traits * | createDefaultTraits () |
| Create a set of traits which are the default shared traits. More... | |
Public Attributes inherited from makVrv::DtWindow | |
| boost::signalslib::signal < void(bool)> | signal_fullScreenModeChanged |
| Signal that indicates when the window toggles between full screen and Windowed mode. More... | |
| boost::signalslib::signal < void(float)> | signal_pixelRatioChanged |
| Signal that indicates when the high dpi scaling factor has changed. More... | |
Protected Member Functions inherited from makVrv::DtOsgWindow | |
| DtOsgWindow (DtDe &de, DtWindowConfiguration &wc) | |
| CTOR. More... | |
| virtual void | renderText (int x, int y, const std::string &text) |
| Write some text on the screen using glut. More... | |
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 | |
| DtDe & | myDe |
| DtChannelManager * | myChannelManager |
| DtWindowConfiguration & | myWindowConfiguration |
| bool | myIsChildWindow |
A simple OpenGL OSG control window.
| DtEmbeddedMfcOsgWindow::DtEmbeddedMfcOsgWindow | ( | makVrv::DtDe & | de, |
| makVrv::DtWindowConfiguration & | wc | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Check to see if the window is still valid.
Reimplemented from makVrv::DtOsgWindow.
Set the position of the window in screen coordinates.
Implements makVrv::DtWindow.
Resize the window.
Implements makVrv::DtWindow.
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::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 | ||
| ) |
|
private |
|
private |
|
private |
|
private |
|
private |