--- /dev/null
+#ifndef HISTOGRAMTODENSITY_H_\r
+#define HISTOGRAMTODENSITY_H_\r
+\r
+#include "Histogram.h"\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* Declaration *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |* Public *|\r
+ \*-------------------------------------*/\r
+\r
+class CBI_GRAPH HistogramToDensity: public Histogram\r
+ {\r
+ public:\r
+ HistogramToDensity(Title title, Apparance apparance, shared_array<float> tabvalues, int nbValue,Interval intervalX, int nbrSep, float maxDensityAnalytiqueY);\r
+ virtual ~HistogramToDensity();\r
+\r
+ void setMaxDensityAnalytiqueY(float maxDensityAnalytiqueY);\r
+ float getMaxDensityAnalytiqueY() const;\r
+\r
+ /*--------------------------------------*\\r
+ |* Surcharge *|\r
+ \*-------------------------------------*/\r
+\r
+ void setValue(shared_array<float> tabvalues, int nbValue);\r
+ virtual Domaine computeDomaine(const Domaine& graphDomaine) const;\r
+\r
+ private:\r
+ float computeFactor();\r
+ void correctionDensity();\r
+ private:\r
+ float factor;\r
+ float maxDensityAnalytiqueY;\r
+ float maxHistogram;\r
+ };\r
+\r
+#endif \r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* End *|\r
+ \*---------------------------------------------------------------------*/\r