VR-Forces 4.1.1 Class Documentation
DtOsgPerformanceStatsOverlay.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/ref_ptr>
15 
16 #include <string>
17 #include <vector>
18 
19 namespace osg
20 {
21  class FrameStamp;
22 }
23 
24 namespace makVrv
25 {
26  class DtOsgRenderer;
27  class DtWindowTextAgent;
28  class DtStatsSet;
29 
33  {
34  public:
35 
37  const static unsigned int overlayLayerId = 33;
38 
40  DtOsgPerformanceStatsOverlay(DtDe& de, DtOsgRenderer& renderer, const DtStatsSet& statsSet);
41 
43  void addLabel(const std::string& name, double left, double top);
44 
47 
49  virtual void updateCallback();
50 
51  protected:
52 
54  DtWindowTextAgent* makeLabel();
55 
56  private:
57 
60  const char* myTickFormatString;
61 
63  {
64  std::string name;
65  double value;
66  DtWindowTextAgent* label;
67  };
68 
69  int myFrame;
70 
71  std::vector<LabelParameters> myLabels;
72 
74  };
75 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)