Fehlermeldung.Komme nicht weiter....
-
Hallo habe ne Fehlermeldung zu dem Code bekommen.Ich komme da selber aber irgendwie nicht weiter.
#include <iostream> using namespace std; #include <vector> double const constf = 0.00390625; double x = 256; double y = 256; double z = 256; double r = x * constf; double g = y * constf; double b = z * constf; class colormap{ public: colormap(int whichColormap, double min,double max); double minimum; double maximum; double value; double define_color(double val, double min, double max); std::vector<double> calcColorTempColormap(double min, double max, double val); ~colormap(); }; double colormap::define_color(double val, double min, double max) { double t = ((val-min)/(max-min)); return t; } std::vector<double> colormap::calcColorTempColormap(double min, double max, double val) { double t=define_color(val, min, max); std::vector<double> myColors; // glrot if((t<=(1.0/3.0))) myColors.push_back(3*t*r); else myColors.push_back(1*r); // glgruen if(t<=(1.0/3.0)) myColors.push_back(0); else if(t<=(2.0/3.0)&& t>(1.0/3.0)) myColors.push_back((g*3*t)-1); else myColors.push_back(1*g); // GLblau if(t<=(2.0/3.0)) myColors.push_back(0); else myColors.push_back((b*3*t)-2); return myColors; } colormap::colormap(int whichColormap,double min,double max) { minimum = min; maximum = max; } int main() { std::vector<double> myColors=calcColorTempColormap(0,0,0); std::vector<double>::iterator Iter; double temp; for (Iter=myColors.begin();Iter!=myColors.end();Iter++) temp=*Iter; //todo: checken, ob richtig }Fehlermeldung: colormap.cpp(61): error C3861: 'calcColorTempColormap': Bezeichner wurde auch mit einer argumentbezogenen Suche nicht gefunden
Wäre für Hilfe echt dankbar...
Danke
Gruß

-
Du brauchst ein Objekt vom Typ colormap, um eine Methode der Klasse colormap aufzurufen.