00001 00002 #ifndef HTML_CLUSTER_H 00003 #define HTML_CLUSTER_H 00004 00005 #include "Matrix.h" 00006 #include "Histogram_element.h" 00007 00008 class Html_cluster { 00009 00010 public: 00011 Html_cluster(); 00012 Html_cluster(int lines, double areaIN, int angle_divisionsIN); 00013 ~Html_cluster(); 00014 00016 void setHistogram(Histogram_element *h); 00017 00019 void setTotalLength(double len); 00020 00022 double getTotalLength(); 00023 00025 int getNumLines(); 00026 00028 double getArea(); 00029 00031 Histogram_element *getHistogram(); 00032 00034 int getNumHistogram(); 00035 00037 void setMaxLength(double len); 00038 00040 void setMinLength(double len); 00041 00043 void setMatrix(Matrix *matrixIN); 00044 00046 double **getMatrix(); 00047 00049 int getRows(); 00050 00052 int getCols(); 00053 00055 double getMaxLength(); 00056 00058 double getMinLength(); 00059 00060 private: 00061 int num_lines; 00062 int angle_divisions; 00063 double max_len, min_len; 00064 double total_len_lines; 00065 double area; 00066 00067 Matrix *matrix; 00068 00069 // this is an array of Histogram_element(s), size of which is NUM_DIVISIONS_HIST_ANGLES 00070 Histogram_element *h; 00071 }; 00072 00073 #endif