Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / model / Histogram.h
1 #ifndef HISTOGRAM_H_
2 #define HISTOGRAM_H_
3
4 #include "Polylines.h"
5
6 /*----------------------------------------------------------------------*\
7 |* Declaration *|
8 \*---------------------------------------------------------------------*/
9
10 /*--------------------------------------*\
11 |* Public *|
12 \*-------------------------------------*/
13
14 class CBI_GRAPH Histogram: public Polylines
15 {
16 public:
17 /**
18 * Create an histogram with nbrSep+1 bins
19 * @param nbrSep the number of separation.
20 */
21 Histogram(Title title, Apparance apparance, shared_array<float> tabvalues, int nbValue,Interval intervalX, int nbrSep);
22 virtual ~Histogram();
23
24 void setValue(shared_array<float> tabvalues, int nbValue);
25
26 static int computeNbPoint(int nbrSep);
27
28 void minMaxValues(Interval& minMax);
29 void setIntervalGraphX(Interval intervalX);
30
31 protected:
32 /**
33 * Compute the histogram
34 */
35 void computeHistogram();
36
37
38 /**
39 * Create the histogram with the points.
40 */
41 void computeFigure();
42
43 protected:
44 // Inputs
45 shared_array<float> tabvalues;
46 int nbValue;
47 int nbrSep;
48
49 // Tools
50 float* tabHistogram;
51 Interval intervalGraphX;
52 };
53
54 #endif
55
56 /*----------------------------------------------------------------------*\
57 |* End *|
58 \*---------------------------------------------------------------------*/