Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Scatter Control
Scatter Control [message #6350] Wed, 08 November 2006 09:29 Go to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
Hi!

Below you can see my first attempt to make a simple control for plotting data and functions. Certainly, many improvements are possible and any suggestion is welcome.

To test it unzip Scatter.zip in MyApps folder and open TestScatter package. I tested it in Windows, 610-dev3.

Andrei

[Updated on: Sat, 23 December 2006 19:45]

Report message to a moderator

Re: Scatter Control-Screenshot [message #6351 is a reply to message #6350] Wed, 08 November 2006 11:36 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
No Message Body

[Updated on: Sat, 23 December 2006 19:47]

Report message to a moderator

Re: Scatter Control-Screenshot [message #6352 is a reply to message #6351] Wed, 08 November 2006 12:03 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
Looks cool!
Re: Scatter Control-Screenshot [message #6353 is a reply to message #6351] Wed, 08 November 2006 12:34 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1202
Registered: March 2006
Location: Italy
Senior Contributor
Wonderfull!

I was looking for something similar in U++.
Thanks a lot.

Luigi

[Updated on: Wed, 08 November 2006 12:35]

Report message to a moderator

Re: Scatter Control-Screenshot [message #6467 is a reply to message #6353] Mon, 13 November 2006 17:14 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
A small bug: you should place w.End to "close" w.Offset at the end of Paint method, otherwise it kicks assertion...

Nice work. But _maybe_ it should have little bit finer modularization, decoupling painting from Ctrl?

Mirek
Re: Scatter Control-Screenshot [message #6488 is a reply to message #6467] Tue, 14 November 2006 06:56 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
I've already fixed the bug.(Current version has many impovements.)

Thank for suggestion. I intend to use DrawingDraw for painting to allow printing.
Scatter v0.2 [message #6527 is a reply to message #6488] Thu, 16 November 2006 14:01 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
Scatter v0.2 features:

-Unlimited number of data series or functions
-Performance improved using AddPick method
-Better appearance and interface in Layout Designer
-Added support for reporting and printing
-Labels for X-Y axis
-More options
-...

Andrei

[Updated on: Sat, 23 December 2006 19:46]

Report message to a moderator

Re: Scatter v0.2 [message #6543 is a reply to message #6527] Fri, 17 November 2006 01:27 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
It's nice,it looks .usc is very useful.
Scatter v0.3 [message #6845 is a reply to message #6350] Fri, 01 December 2006 11:05 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
New features:

-accepts parametric function
-smooth connection of points using cubic spline
-7 styles of customisable marks (CIRCLE, RECTANGLE, SQUARE, TRIANGLE, CROSS, X, RHOMB)
-Legend with auto-arrangement
-access to chart image for export as PNG,JPG, etc.
-improvements in scatter.usc

Andrei
Re: Scatter v0.3 [message #6846 is a reply to message #6845] Fri, 01 December 2006 11:16 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Where can we find it Wink?

Thanks
Matthias
Re: Scatter v0.3 [message #6847 is a reply to message #6845] Fri, 01 December 2006 11:18 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
No Message Body

[Updated on: Sat, 23 December 2006 19:48]

Report message to a moderator

Re: Scatter v0.3 [message #6848 is a reply to message #6847] Fri, 01 December 2006 12:29 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Looks great, thanks.

I had to change the following:

Konstruktor DrawExtension()
	DrawExtension()
	{
//		Draw::Draw();
	}

and changed function parameter 'XY & point' to 'XY point' in a few functions.

Tested on WinXP, 611-dev4.

Matthias
Re: Scatter v0.3 [message #6851 is a reply to message #6848] Fri, 01 December 2006 14:19 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
Hello, Matthias!

Thank you for testing Scatter Chart!

Have you made the modifications to elude compilation errors or for code optimisation?

Andrei
Re: Scatter v0.3 [message #6852 is a reply to message #6851] Fri, 01 December 2006 14:28 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
I got an error about calling protected constructor.
And I got errors on function calls with XY(a,b), complaining about having type XY instead of XY&.

My compiler is gcc-4.1.1.

Matthias
Re: Scatter v0.3 [message #6854 is a reply to message #6852] Fri, 01 December 2006 14:43 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
I tested Scatter only in MSC71.

Yours modifications are useful for GCC users.

Thanks.

Andrei
Re: Scatter v0.3 [message #6855 is a reply to message #6854] Fri, 01 December 2006 15:29 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
BTW, I had to also delete your library defintions for the Scatter package.
The required libraries should already be included by the used packages (CtrlCore etc.).

Matthias
Re: Scatter v0.3 [message #6874 is a reply to message #6855] Sat, 02 December 2006 17:42 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
masu wrote on Fri, 01 December 2006 09:29

BTW, I had to also delete your library defintions for the Scatter package.
The required libraries should already be included by the used packages (CtrlCore etc.).

Matthias


Very nice. I feel happy that number of capable U++ programmers seems to grow quickly now Wink

Comments:

Maybe instead of XY, I would use Pointf (in fact, even

typedef Pointf XY;

would work here Smile

Capitalisation of plotFunction and some of other methods seems inconsistent with both rest of class and U++...

Using Win32 API is generally OK, but causes cross-platform problems. I think it should be possible to implement DrawPie and DrawRoundRect using existing primitives (second one is primitive, DrawPie is somewhat harder, but hey, you are drawing cubic splines there, so you can do it Wink

Mirek
Re: Scatter v0.3 [message #6875 is a reply to message #6874] Sat, 02 December 2006 17:52 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
Also, Print preview is off, most likely wrongly placed (see the right edge).

Mirek
Re: Scatter v0.3 [message #6877 is a reply to message #6874] Sat, 02 December 2006 23:43 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
Quote:

Maybe instead of XY, I would use Pointf (in fact, even

typedef Pointf XY;

would work here


Shocked Definitely, I will use Pointf type.

Quote:

Capitalisation of plotFunction and some of other methods seems inconsistent with both rest of class and U++...


Necessary, but I don't read too well your hint. Could you give me a piece of advice?

Quote:

I think it should be possible to implement DrawPie and DrawRoundRect using existing primitives

I will try.

Quote:

Print preview is off, most likely wrongly placed (see the right edge)

Only on screen; on paper (or PDF) is OK.

Thank you very much!

Andrei

Re: Scatter v0.3 [message #6885 is a reply to message #6877] Sun, 03 December 2006 13:34 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
Quote:


Quote:

Capitalisation of plotFunction and some of other methods seems inconsistent with both rest of class and U++...


Necessary, but I don't read too well your hint. Could you give me a piece of advice?



If there is no special reason, I would use "PlotFunction"

Quote:


Quote:

Print preview is off, most likely wrongly placed (see the right edge)

Only on screen; on paper (or PDF) is OK.



Yes, but should be OK even on the screen.

Mirek

[Updated on: Sun, 03 December 2006 13:34]

Report message to a moderator

Previous Topic: Fresh TabBar proposals
Next Topic: usvn - SVN for dummies (and me)
Goto Forum:
  


Current Time: Fri Nov 01 00:32:44 CET 2024

Total time taken to generate the page: 0.02603 seconds