00001 #include "common.h" 00002 #include "color.h" 00003 #include <math.h> 00004 00005 class DensityPoint { 00006 00007 private: 00008 float density; //x value of mouse position in histogram 00009 00010 00011 public: 00012 Color *color; 00013 DensityPoint (); 00014 DensityPoint (float d, Color* c); 00015 Color* getColor(); 00016 void setColor(Color* c); 00017 float getDensity(); 00018 void setDensity(float d); 00019 };