VR-Forces 4.3 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,
51  UserStart
52  };
53 
55  virtual void render(DtChannel* channel, bool projectedGeocentricEffect,
56  float geocentricAlpha,
57  double* position, double* matrix,
58  double viewportSize[2]) = 0;
59 
61  virtual void releaseResources() = 0;
62 
64  static DefaultOverlays modelSetToOverlay(unsigned int modelSet);
65 
66  virtual void enableOverlayOnChannel(unsigned int layerId, bool enabled,
67  DtChannel& channel) = 0;
68 
72  virtual bool handleMouseEvent(const DtMouseEvent& ev,
73  DtChannel& channel) = 0;
74 
76  virtual void destroyOverlayLayer(unsigned int layerId) = 0;
77 
79  virtual bool overlayLayerIsVisible(unsigned int layerId) const = 0;
80 
84  virtual void setOverlayLayerVisibility(unsigned int layerId,
85  bool visible) = 0;
86 
87  };
88 
92  {
93  public:
94 
96  static DtOverlayManagerCreator& instance(DtDe&);
97 
99  static void registerInstance(DtDe& de,DtOverlayManagerCreator*);
100 
102  virtual DtOverlayManager* create(DtDe& de) = 0;
103  };
104 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)