Home » Developing U++ » UppHub » Scatter: FEATURE IDEAS (1 already done)
Re: Scatter based on Callbacks [message #30280 is a reply to message #30276] |
Tue, 21 December 2010 17:56 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
are you sure you have opened the right archive?
this is inside the above bazaar.rar
//old syntax
double ofunct1(double x){return (0.5*x*x-5);}
double ofunct2(double x){return (-0.5*x*x-5);}
double ofunct3(double x){return 3;}
//new additional syntax
void funct1(double& y, double x){y = (x*x);}
void funct2(double& y, double x){y = (-x*x);}
void funct3(double& y, double x){y = 0;}
void funct1p(double& y, double x, double a, double c){y = a*(x*x)+c;}
void funct3p(double& y, double x, double m){y = m*x;}
class Tab2 : public WithTab2<ParentCtrl> {
public:
typedef Tab2 CLASSNAME;
Tab2();
};
Tab2::Tab2()
{
CtrlLayout(*this);
HSizePos().VSizePos();
scatter2.SetRange(12,60);
scatter2.SetXYMin(-6,-30);
scatter2.SetMajorUnits(2,10);
scatter2.PlotFunction(&ofunct3,"X Axis",Cyan,18);
scatter2.PlotFunction(&ofunct1,"x^2", Color(28,85,255),6);
scatter2.PlotFunction(&ofunct2,"-X^2",Cyan);
scatter2.PlotFunction(STDBACK(funct3),"X Axis",Green,18);
scatter2.PlotFunction(STDBACK(funct1),"x^2", Color(28,85,255),6);
scatter2.PlotFunction(STDBACK(funct2),"-X^2",LtRed);
scatter2.PlotFunction(STDBACK1(funct3p, 3.0),"X Axis",Green,18);
for(int i = 0; i < 5; i++)
scatter2.PlotFunction(STDBACK2(funct1p, 2.0*double(i)/10.0, -10.0+double(i)),"a*x^2+c", Color(28,85,255),6);
}
|
|
|
|
|
Scatter: FEATURE IDEAS (1 already done)
By: kohait00 on Sun, 07 March 2010 12:31
|
|
|
Re: Scatter: FEATURE IDEAS (1 already done)
By: koldo on Wed, 17 March 2010 22:43
|
|
|
Re: Scatter: FEATURE IDEAS (1 already done)
|
|
|
Re: Scatter: FEATURE IDEAS (1 already done)
By: tojocky on Fri, 19 March 2010 09:17
|
|
|
Re: Scatter: FEATURE IDEAS (1 already done)
By: koldo on Mon, 12 April 2010 18:57
|
|
|
easying the API
|
|
|
capsulated Scatter Vectors
|
|
|
Re: capsulated Scatter Vectors
By: koldo on Tue, 11 May 2010 16:12
|
|
|
Re: capsulated Scatter Vectors
|
|
|
Re: capsulated Scatter Vectors
By: koldo on Tue, 11 May 2010 16:53
|
|
|
Re: capsulated Scatter Vectors
|
|
|
Re: capsulated Scatter Vectors
|
|
|
Re: capsulated Scatter Vectors
By: koldo on Wed, 12 May 2010 22:29
|
|
|
Re: capsulated Scatter Vectors
|
|
|
Re: capsulated Scatter Vectors
By: koldo on Thu, 13 May 2010 09:06
|
|
|
Re: capsulated Scatter Vectors
|
|
|
Re: capsulated Scatter Vectors
|
|
|
Re: capsulated Scatter Vectors
|
|
|
Re: capsulated Scatter Vectors
|
|
|
Re: capsulated Scatter Vectors
|
|
|
My current Diagram
|
|
|
Re: My current Diagram
|
|
|
Re: My current Diagram
|
|
|
Re: My current Diagram
|
|
|
Scatter based on Callbacks
By: kohait00 on Wed, 15 December 2010 16:19
|
|
|
Re: Scatter based on Callbacks
By: koldo on Wed, 15 December 2010 21:56
|
|
|
Re: Scatter based on Callbacks
By: kohait00 on Thu, 16 December 2010 06:58
|
|
|
Re: Scatter based on Callbacks
By: kohait00 on Thu, 16 December 2010 07:51
|
|
|
Re: Scatter based on Callbacks
By: koldo on Thu, 16 December 2010 14:41
|
|
|
Re: Scatter based on Callbacks
By: koldo on Thu, 16 December 2010 14:41
|
|
|
Re: Scatter based on Callbacks
By: kohait00 on Thu, 16 December 2010 15:55
|
|
|
Re: Scatter based on Callbacks
By: koldo on Thu, 16 December 2010 17:15
|
|
|
Re: Scatter based on Callbacks
By: kohait00 on Fri, 17 December 2010 11:30
|
|
|
Re: Scatter based on Callbacks
By: kohait00 on Fri, 17 December 2010 13:28
|
|
|
Re: Scatter based on Callbacks
By: koldo on Sun, 19 December 2010 21:10
|
|
|
Re: Scatter based on Callbacks
By: koldo on Mon, 20 December 2010 13:35
|
|
|
Re: Scatter based on Callbacks
By: kohait00 on Mon, 20 December 2010 13:44
|
|
|
Re: Scatter based on Callbacks
By: koldo on Tue, 21 December 2010 17:19
|
|
|
Re: Scatter based on Callbacks
By: kohait00 on Tue, 21 December 2010 17:56
|
|
|
Re: Scatter based on Callbacks
By: koldo on Thu, 23 December 2010 16:19
|
|
|
Re: Scatter based on Callbacks
By: kohait00 on Thu, 23 December 2010 17:05
|
|
|
Re: Scatter based on Callbacks
By: kohait00 on Sun, 26 December 2010 10:32
|
|
|
Re: Scatter based on Callbacks
|
|
|
Re: Scatter based on Callbacks
By: koldo on Wed, 22 June 2011 23:28
|
|
|
Re: Scatter based on Callbacks
|
|
|
Re: Scatter based on Callbacks
By: koldo on Thu, 23 June 2011 16:05
|
|
|
Re: easying the API
By: koldo on Tue, 11 May 2010 15:50
|
Goto Forum:
Current Time: Sun May 19 13:10:39 CEST 2024
Total time taken to generate the page: 0.01118 seconds
|