OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
coClusterStat.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef CO_CLUSTER_STAT_H
9 #define CO_CLUSTER_STAT_H
10 
24 #include <util/coTypes.h>
25 
26 #include <osg/Array>
27 
28 namespace osg
29 {
30 class Geode;
31 class Geometry;
32 class MatrixTransform;
33 class StateSet;
34 }
35 
36 namespace opencover
37 {
38 #define NUM_SAMPLES 200
39 class COVEREXPORT coStatGraph
40 {
41 public:
42  coStatGraph(int col);
43  ~coStatGraph();
44  float maxValue;
45  void updateValues();
46  void updateMinMax(double val);
47  osg::MatrixTransform *graph;
48  float max;
49  float sum;
50 
51 private:
52  float zCoords[NUM_SAMPLES];
53  osg::StateSet *myGeostate;
54  osg::Vec3Array *coord;
55  osg::Vec3Array *normal;
56  ushort *coordIndex;
57  osg::ShortArray *normalIndex;
58  osg::Geometry *geoset1;
59  osg::Geode *geode;
60 };
61 
62 class COVEREXPORT coClusterStat
63 {
64 public:
65  coClusterStat(int id);
66  ~coClusterStat();
70  float renderMax;
71  float sendMax;
72  float recvMax;
73  void show();
74  void hide();
75  void updateMinMax(double renderTime, double netSend, double netRecv);
76  void updateValues();
77 
78 private:
79  osg::MatrixTransform *graph;
80  int ID;
81 };
82 }
83 #endif
osg::MatrixTransform * graph
Definition: coClusterStat.h:47
Definition: coClusterStat.h:62
coStatGraph * sendGraph
Definition: coClusterStat.h:68
coStatGraph * recvGraph
Definition: coClusterStat.h:69
float sendMax
Definition: coClusterStat.h:71
float renderMax
Definition: coClusterStat.h:70
float max
Definition: coClusterStat.h:48
float recvMax
Definition: coClusterStat.h:72
Definition: coClusterStat.h:39
coStatGraph * renderGraph
Definition: coClusterStat.h:67
float maxValue
Definition: coClusterStat.h:44
float sum
Definition: coClusterStat.h:49
#define NUM_SAMPLES
Definition: coClusterStat.h:38
unsigned short ushort
abbreviation for unsigned short
Definition: rel_mcast-old.h:76