VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
31  virtual ~DtOverlayManager();
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,
52  UserStart
53  };
54 
56  virtual void render(DtChannel* channel, bool projectedGeocentricEffect,
57  float geocentricAlpha,
58  double* position, double* matrix,
59  double viewportSize[2]) = 0;
60 
62  virtual void releaseResources() = 0;
63 
65  static DefaultOverlays modelSetToOverlay(unsigned int modelSet);
66 
67  virtual void enableOverlayOnChannel(unsigned int layerId, bool enabled,
68  DtChannel& channel) = 0;
69 
73  virtual bool handleMouseEvent(const DtMouseEvent& ev,
74  DtChannel& channel) = 0;
75 
77  virtual void destroyOverlayLayer(unsigned int layerId) = 0;
78 
80  virtual bool overlayLayerIsVisible(unsigned int layerId) const = 0;
81 
85  virtual void setOverlayLayerVisibility(unsigned int layerId,
86  bool visible) = 0;
87 
88  };
89 
93  {
94  public:
95 
97  static DtOverlayManagerCreator& instance(DtDe&);
98 
100  static void registerInstance(DtDe& de,DtOverlayManagerCreator*);
101 
103  virtual DtOverlayManager* create(DtDe& de) = 0;
104  };
105 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)