<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Fehlermeldung.Komme nicht weiter....]]></title><description><![CDATA[<p>Hallo habe ne Fehlermeldung zu dem Code bekommen.Ich komme da selber aber irgendwie nicht weiter.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;
#include &lt;vector&gt;

	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&lt;double&gt; 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&lt;double&gt; colormap::calcColorTempColormap(double min, double max, double val)
		{
		double t=define_color(val, min, max);
		std::vector&lt;double&gt; myColors;
		// glrot
		if((t&lt;=(1.0/3.0)))
		myColors.push_back(3*t*r);
		else
		myColors.push_back(1*r);
		// glgruen
		if(t&lt;=(1.0/3.0))
		myColors.push_back(0);
		else if(t&lt;=(2.0/3.0)&amp;&amp; t&gt;(1.0/3.0))
		myColors.push_back((g*3*t)-1);
		else
		myColors.push_back(1*g);
		// GLblau
		if(t&lt;=(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&lt;double&gt; myColors=calcColorTempColormap(0,0,0);
		std::vector&lt;double&gt;::iterator Iter;
		double temp;
		for (Iter=myColors.begin();Iter!=myColors.end();Iter++)
			temp=*Iter;  //todo: checken, ob richtig
	}
</code></pre>
<p>Fehlermeldung: colormap.cpp(61): error C3861: 'calcColorTempColormap': Bezeichner wurde auch mit einer argumentbezogenen Suche nicht gefunden</p>
<p>Wäre für Hilfe echt dankbar...</p>
<p>Danke</p>
<p>Gruß<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/208409/fehlermeldung-komme-nicht-weiter</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 19:37:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/208409.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Mar 2008 09:47:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehlermeldung.Komme nicht weiter.... on Tue, 18 Mar 2008 09:47:08 GMT]]></title><description><![CDATA[<p>Hallo habe ne Fehlermeldung zu dem Code bekommen.Ich komme da selber aber irgendwie nicht weiter.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;
#include &lt;vector&gt;

	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&lt;double&gt; 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&lt;double&gt; colormap::calcColorTempColormap(double min, double max, double val)
		{
		double t=define_color(val, min, max);
		std::vector&lt;double&gt; myColors;
		// glrot
		if((t&lt;=(1.0/3.0)))
		myColors.push_back(3*t*r);
		else
		myColors.push_back(1*r);
		// glgruen
		if(t&lt;=(1.0/3.0))
		myColors.push_back(0);
		else if(t&lt;=(2.0/3.0)&amp;&amp; t&gt;(1.0/3.0))
		myColors.push_back((g*3*t)-1);
		else
		myColors.push_back(1*g);
		// GLblau
		if(t&lt;=(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&lt;double&gt; myColors=calcColorTempColormap(0,0,0);
		std::vector&lt;double&gt;::iterator Iter;
		double temp;
		for (Iter=myColors.begin();Iter!=myColors.end();Iter++)
			temp=*Iter;  //todo: checken, ob richtig
	}
</code></pre>
<p>Fehlermeldung: colormap.cpp(61): error C3861: 'calcColorTempColormap': Bezeichner wurde auch mit einer argumentbezogenen Suche nicht gefunden</p>
<p>Wäre für Hilfe echt dankbar...</p>
<p>Danke</p>
<p>Gruß<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1476371</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1476371</guid><dc:creator><![CDATA[Sportsfreund]]></dc:creator><pubDate>Tue, 18 Mar 2008 09:47:08 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung.Komme nicht weiter.... on Tue, 18 Mar 2008 09:51:10 GMT]]></title><description><![CDATA[<p>Du brauchst ein Objekt vom Typ colormap, um eine Methode der Klasse colormap aufzurufen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1476374</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1476374</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Tue, 18 Mar 2008 09:51:10 GMT</pubDate></item></channel></rss>