OpenCOVER
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
28namespace osg
29{
30class Geode;
31class Geometry;
32class MatrixTransform;
33class StateSet;
34}
35
36namespace opencover
37{
38#define NUM_SAMPLES 200
39class COVEREXPORT coStatGraph
40{
41public:
42 coStatGraph(int col);
44 float maxValue;
46 void updateMinMax(double val);
47 osg::MatrixTransform *graph;
48 float max;
49 float sum;
50
51private:
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
62class COVEREXPORT coClusterStat
63{
64public:
70 float renderMax;
71 float sendMax;
72 float recvMax;
73 void show();
74 void hide();
75 void updateMinMax(double renderTime, double netSend, double netRecv);
77
78private:
79 osg::MatrixTransform *graph;
80 int ID;
81};
82}
83#endif
#define NUM_SAMPLES
Definition: coClusterStat.h:38
Definition: ARToolKit.h:33
unsigned short ushort
abbreviation for unsigned short
Definition: rel_mcast-old.h:76
Definition: coClusterStat.h:29
Definition: coClusterStat.h:40
void updateMinMax(double val)
osg::MatrixTransform * graph
Definition: coClusterStat.h:47
float max
Definition: coClusterStat.h:48
float sum
Definition: coClusterStat.h:49
float maxValue
Definition: coClusterStat.h:44
Definition: coClusterStat.h:63
coStatGraph * sendGraph
Definition: coClusterStat.h:68
coStatGraph * renderGraph
Definition: coClusterStat.h:67
coStatGraph * recvGraph
Definition: coClusterStat.h:69
void updateMinMax(double renderTime, double netSend, double netRecv)
float sendMax
Definition: coClusterStat.h:71
float renderMax
Definition: coClusterStat.h:70
float recvMax
Definition: coClusterStat.h:72