00001 #include "common.h" 00002 #include "DensityPoint.h" 00003 #include "Color.h" 00004 #include <math.h> 00005 #include <vector> 00006 00007 class Transfer 00008 { 00009 private: 00010 std::vector<int> hist; 00011 bool changed; 00012 int numP; 00013 00014 public: 00015 Transfer (std::vector<int> DensityArray, int num); 00016 std::vector<DensityPoint*> points; 00017 std::vector<Color*> newColors; 00018 float* colorf; 00019 void addPoint(DensityPoint* p); 00020 void sortPoints(); 00021 void removePoints(); 00022 void removePoint(int pos); 00023 float* getColorf(); 00024 std::vector<Color*> getColors(); 00025 float* clearData(); 00026 float* colorInterpolation(); 00027 };