Home » Developing U++ » UppHub » Scatter: FEATURE IDEAS (1 already done)
Scatter based on Callbacks [message #30206 is a reply to message #27257] |
Wed, 15 December 2010 16:19 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
hey all,
just came up with the idea of further parametrizing plot function, but this leads to usage of callbacks, instead of function pointers. what about that?
current case:
XY para4(double t) {return XY(0,-0.25+0.5*t);}
scatter3.PlotParaFunction(para4,"VLine",LtRed,6,2);
this lets you calculate x and y separated, but what if one wants to specify some parameters, constants etc..?
here Callbacks can be a great deal.
example for a THISBACK, but also thinkable with general static fcuntions with arbitrary signature. as long as Callback1<float> for t is yielded, it alright.
the additional parameters would be stored in CallbackAction anyway.
XY para4(double t, int a, float b) {return XY(a,-0.25*b+0.5*t);}
scatter3.PlotParaFunction(THISBACK2(¶4, 12, 34.2) ),"VLine",LtRed,6,2);
i think Callbacks are much more powerfull here than simple function pointers, though the latter are faster, a neglactible bit..
|
|
|
|
|
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: Tue May 07 19:46:15 CEST 2024
Total time taken to generate the page: 0.02288 seconds
|