VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgWindow.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtOsgWindow_H_
11 #define DtOsgWindow_H_
12 
13 #include <vrvOsg/vrvOsg.h>
14 #include <vrvCore/DtWindow.h>
15 #include <osg/ref_ptr>
16 #include <osg/GraphicsContext>
18 
19 namespace osgViewer
20 {
21  class GraphicsWindow;
22 }
23 
24 namespace osg
25 {
26  class GraphicsContext;
27  struct GraphicsContext::Traits;
28 }
29 
30 namespace makVrv
31 {
32 
37  {
38  public:
39 
41  virtual ~DtOsgWindow();
42 
44  virtual osg::GraphicsContext* graphicsContext();
45 
47  virtual const osg::GraphicsContext* graphicsContext() const;
48 
50  virtual bool isValid() const;
51 
55  virtual void sizeChanged(int width,int height);
56 
58  static osg::GraphicsContext::Traits* createDefaultTraits();
59 
60  void adjustPerspective();
61 
63  virtual void clearEmptyWindow(const std::string& messageLine1,
64  const std::string& messageLine2,
65  const std::string& messageLine3);
66 
67  protected:
68 
71 
76  virtual void renderText(int x, int y, const std::string& text);
77 
78  static void setUpAntiAliasingLevels(osg::GraphicsContext::Traits& traits, unsigned short level);
79 
80  protected:
81 
83 
84  };
85 
86 
89  {
92 
94  virtual ~DtOsgWindowResizeCallback();
95 
97  virtual void resizedImplementation(osg::GraphicsContext* gc, int x, int y, int width, int height);
98 
99  protected:
101 
102  };
103 }
104 
105 #endif
106 
Abstract Base class.
Definition: DtWindow.h:25
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
osg::ref_ptr< osg::GraphicsContext > myContext
Definition: DtOsgWindow.h:82
DtOsgWindow * myParent
Definition: DtOsgWindow.h:100
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:31
Contains makVrv::DtIgView class.
A Callback object used to hook into the OSG window resize.
Definition: DtOsgWindow.h:88
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Contains makVrv::DtViewConfiguration class.
A basic OSG display window, used to get the osg context for a display window.
Definition: DtOsgWindow.h:36

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)