VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtScalableOsgChannel.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2015 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <vrvOsg/DtOsgChannel.h>
15 
16 namespace makVrv
17 {
18  class DtOsgWindow;
19  class DtWindowManager;
20  class DtWindowConfiguration;
21 
22  namespace vrvScalableDisplay
23  {
24  // Calls OpenGLSwap from the EasyBlend SDK to perform warp & blend
26  public osg::GraphicsContext::SwapCallback
27  {
28  public:
30  DtScalableSwapCallback(DtDe* de) : myDe(de) {};
31 
32  void swapBuffersImplementation(osg::GraphicsContext *);
33 
34  protected:
36  };
37 
40 
42  : public DtOsgChannel
43  {
44  public:
45 
49 
50 
52  virtual ~DtScalableOsgChannel();
53 
55  virtual void updateProjection();
56 
57  protected:
58 
60  DtScalableOsgChannel(DtDe& de, DtWindow* window,
61  DtChannelConfiguration& channelConfig);
62 
64  void makeObserverToCameraMatrix( osg::Vec3d& orient,
65  osg::Matrixd& offsetObserverToCamera, osg::Matrixd& observerToCamera );
66  void makeObserverToCameraMatrix( osg::Quat& qObserverToWorld,
67  osg::Matrixd& offsetObserverToCamera, osg::Matrixd& observerToCamera );
68 
70  virtual bool initialize();
71 
72  protected:
73  osg::ref_ptr<DtScalableSwapCallback> mySwapCallback;
74  };
75 
79  public DtChannelCreator
80  {
81  public:
83  virtual DtChannel* create(DtDe& de, DtWindow* window,
84  DtChannelConfiguration& config);
85  };
86  }
87 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)