VR-Vantage API Documentation
DtOverlayManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtRenderer.h,v $ $Revision: 1.31 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCore/vrvCore.h>
16 
17 namespace makVrv
18 {
19  class DtChannel;
20  class DtDe;
21  class DtMouseEvent;
22  class DtRenderer;
23 
27  {
28  public:
29 
32 
34  {
35  InvalidOverlay = 0,
44  //Allow 16 user set model sets.
45  ModelSet_UserEnd = ModelSet_UserStart + 16,
47  //Allow for 128 channel specific overlays
48  Channel_SpecificEnd = Channel_SpecificStart + 128,
50  RemoteDisplayWorldOverlay
51  };
52 
54  virtual void render(DtChannel* channel, bool projectedGeocentricEffect,
55  float geocentricAlpha,
56  double* position, double* matrix,
57  double viewportSize[2]) = 0;
58 
60  virtual void releaseResources() = 0;
61 
63  static DefaultOverlays modelSetToOverlay(unsigned int modelSet);
64 
65  virtual void enableOverlayOnChannel(unsigned int layerId, bool enabled,
66  DtChannel& channel) = 0;
67 
71  virtual bool handleMouseEvent(const DtMouseEvent& ev,
72  DtChannel& channel) = 0;
73 
75  virtual void destroyOverlayLayer(unsigned int layerId) = 0;
76 
78  virtual bool overlayLayerIsVisible(unsigned int layerId) const = 0;
79 
83  virtual void setOverlayLayerVisibility(unsigned int layerId,
84  bool visible) = 0;
85 
87  virtual void setPerformanceStatsOverlayEnabled(bool show) = 0;
88 
90  virtual bool performanceStatsOverlayEnabled() const = 0;
91 
92  };
93 
97  {
98  public:
99 
101  static DtOverlayManagerCreator& instance(DtDe&);
102 
104  static void registerInstance(DtDe& de,DtOverlayManagerCreator*);
105 
107  virtual DtOverlayManager* create(DtDe& de) = 0;
108  };
109 }


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)