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
Re: Scatter-new version [message #15153 is a reply to message #15147] Thu, 03 April 2008 06:51 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
Unfortunately not yet. But you can investigate the test package who contains many examples.

Andrei
Re: Scatter Control [message #15197 is a reply to message #6350] Tue, 08 April 2008 17:13 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Andrei, you should ask unodgs or Mirek for sourceforge SVN access (create user account on sourceforge firstly), than add Scatter control to bazaar directory at SVN, this way you will make it part of next ultimate++ release.
I think it's worth of it, just for the sake of nice little demo application which can be used to study how to do animated graphics output in window and how to draw pixels and images (which are total evergreen questions here at forum anyway Smile ).
Although the source did feel a bit dodgy to me (like way too many things going on directly in the header), it still did help me a lot and I like the control itself too.
Re: Scatter Control [message #15249 is a reply to message #15197] Fri, 11 April 2008 17:10 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
I've followed your advice so I've added Scatter into Bazaar directory.

Thanks,

Andrei

Re: Scatter Control [message #18797 is a reply to message #6350] Tue, 21 October 2008 22:26 Go to previous messageGo to next message
emomartin is currently offline  emomartin
Messages: 2
Registered: October 2008
Junior Member
Hi,
is the scatter control still actual? Are there new versions available? Or is there any other charting component available for U++?

Regards
emomartin

[Updated on: Tue, 21 October 2008 23:13]

Report message to a moderator

Re: Scatter Control [message #21619 is a reply to message #18797] Fri, 29 May 2009 23:41 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello all

I use daily Scatter control.
It works well and it has nice looking.

Is it going to be a new release?

A thing I would add is to scroll dragging the mouse and zoom rolling the middle mouse button.

Best regards
Koldo


Best regards
Iñaki

[Updated on: Fri, 29 May 2009 23:42]

Report message to a moderator

Re: Scatter Control [message #22473 is a reply to message #21619] Fri, 17 July 2009 22:29 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Andrei

Mirek has done some changes in Draw class so that now there is no IsDrawing and it is not possible to compile Scatter.

It is commented inside post http://www.ultimatepp.org/forum/index.php?t=msg&th=4523& amp;.

Please as soon as possible fix this in Bazaar.
Meanwhile I have done a copy of Scatter package changing w.IsDrawing() with (dynamic_cast<const DrawingDraw *>(&w)).

Best regards
Koldo


Best regards
Iñaki
Re: Scatter Control [message #22492 is a reply to message #22473] Sun, 19 July 2009 12:39 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member

I'll try to solve this problem. It may be significant changes needed.
Until then, would you like to post your working copy?

Thanks,

Andrei
Re: Scatter Control [message #22497 is a reply to message #22492] Sun, 19 July 2009 18:09 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
Fortunately have not been many changes.
I hope to upgrade it in svn soon.

Andrei

[Updated on: Sun, 19 July 2009 19:21]

Report message to a moderator

Re: Scatter Control [message #22502 is a reply to message #22497] Sun, 19 July 2009 21:50 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Yes, it is only a matter of changing w.IsDrawing() with (dynamic_cast<const DrawingDraw *>(&w)).

But if you want to add more features, they will be welcome! Smile

Best regards
Koldo


Best regards
Iñaki
Re: Scatter Control [message #22511 is a reply to message #22502] Mon, 20 July 2009 16:01 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
I made some small changes to the scatter control in order to eliminate compilation errors and other small problems.

I would be grateful if someone could update these files in svn. (I currently do not have svn access).

Andrei
  • Attachment: Scatter.zip
    (Size: 32.59KB, Downloaded 312 times)

[Updated on: Mon, 20 July 2009 16:18]

Report message to a moderator

Re: Scatter Control [message #22512 is a reply to message #22511] Mon, 20 July 2009 21:35 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

andrei-catalin wrote on Mon, 20 July 2009 17:01

I made some small changes to the scatter control in order to eliminate compilation errors and other small problems.

I would be grateful if someone could update these files in svn. (I currently do not have svn access).

Andrei



Committed!
Thanks!
Re: Scatter Control [message #22513 is a reply to message #22512] Mon, 20 July 2009 22:23 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello andrei-catalin

Both scatter and pie samples and an application where I use scatter work perfectly with no changes.

Best regards
Koldo


Best regards
Iñaki
Re: Scatter Control [message #22518 is a reply to message #22513] Tue, 21 July 2009 16:34 Go to previous messageGo to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
Nice! Thanks!

Andrei
Re: Scatter Control [message #24123 is a reply to message #22518] Sun, 27 December 2009 18:21 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

andrei-catalin wrote on Tue, 21 July 2009 17:34

Nice! Thanks!

Andrei

Hello Andrei,

Exist any updates to Scatter control?

With respect, Ion (tojocky)
Re: Scatter Control [message #26232 is a reply to message #6350] Fri, 16 April 2010 02:35 Go to previous messageGo to next message
ktj9 is currently offline  ktj9
Messages: 17
Registered: April 2010
Promising Member
Hello,
I tried to run TestScatter2, but it is stuck in infinite loops in Scatter::SetRange and Scatter::SetMajorUnits. Callers are scatter2.SetRange(12,60) and scatter2.SetMajorUnits(2,10) in Tab2::Tab2().

I am using UPP2232, MSC8, on XP.

I use magic numbers to solve the problem, but I bet there are better solutions, if I understand the meaning of those members.
After the hack, the example looks great! Thanks!

Scatter &Scatter::SetRange(double rx, double ry, double ry2)
{
	xRange=rx;
	yRange=ry;
	yRange2=ry2;
	xMajorUnit=xRange/10;
	int count=0;
	while (xMinUnit > xMajorUnit && count < 1000){
		xMinUnit -= xMajorUnit;	
		++count;
	}
	yMajorUnit=yRange/10;   
	count = 0;
	while (yMinUnit > yMajorUnit && count < 1000){
		yMinUnit -= yMajorUnit;
		++count;
	}
	yMajorUnit2=yRange2/10;   
	count = 0;
	while (yMinUnit2 > yMajorUnit2 && count < 1000) {
		yMinUnit2 -= yMajorUnit2;
		++count;
	}
	return *this;
}
Scatter &Scatter::SetMajorUnits(double ux, double uy) 
{
	//if (ux > xRange)	throw (Exc(t_("Invalid X major units!")));
	//if (uy > yRange)	throw (Exc(t_("Invalid Y major units!")));
	xMajorUnit=ux;
	yMajorUnit=uy;
	yMajorUnit2=yRange2*yMajorUnit/yRange;
	int count=0;
	while (xMinUnit > xMajorUnit && count < 1000){
		xMinUnit -= xMajorUnit;	
		++count;
	}
	count = 0;
	while (yMinUnit > yMajorUnit && count < 1000){
		yMinUnit -= yMajorUnit;
		++count;
	}
	count = 0;
	while (yMinUnit2 > yMajorUnit2 && count < 1000){
		yMinUnit2 -= yMajorUnit2;
		++count;
	}
	return *this;
}
Re: Scatter Control [message #26235 is a reply to message #26232] Fri, 16 April 2010 06:50 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
ktj9 wrote on Fri, 16 April 2010 02:35

Hello,
I tried to run TestScatter2, but it is stuck in infinite loops in Scatter::SetRange and Scatter::SetMajorUnits. Callers are scatter2.SetRange(12,60) and scatter2.SetMajorUnits(2,10) in Tab2::Tab2().

I am using UPP2232, MSC8, on XP.

I use magic numbers to solve the problem, but I bet there are better solutions, if I understand the meaning of those members.
After the hack, the example looks great! Thanks!

Scatter &Scatter::SetRange(double rx, double ry, double ry2)
{
	xRange=rx;
	yRange=ry;
	yRange2=ry2;
	xMajorUnit=xRange/10;
	int count=0;
	while (xMinUnit > xMajorUnit && count < 1000){
		xMinUnit -= xMajorUnit;	
		++count;
	}
	yMajorUnit=yRange/10;   
	count = 0;
	while (yMinUnit > yMajorUnit && count < 1000){
		yMinUnit -= yMajorUnit;
		++count;
	}
	yMajorUnit2=yRange2/10;   
	count = 0;
	while (yMinUnit2 > yMajorUnit2 && count < 1000) {
		yMinUnit2 -= yMajorUnit2;
		++count;
	}
	return *this;
}
Scatter &Scatter::SetMajorUnits(double ux, double uy) 
{
	//if (ux > xRange)	throw (Exc(t_("Invalid X major units!")));
	//if (uy > yRange)	throw (Exc(t_("Invalid Y major units!")));
	xMajorUnit=ux;
	yMajorUnit=uy;
	yMajorUnit2=yRange2*yMajorUnit/yRange;
	int count=0;
	while (xMinUnit > xMajorUnit && count < 1000){
		xMinUnit -= xMajorUnit;	
		++count;
	}
	count = 0;
	while (yMinUnit > yMajorUnit && count < 1000){
		yMinUnit -= yMajorUnit;
		++count;
	}
	count = 0;
	while (yMinUnit2 > yMajorUnit2 && count < 1000){
		yMinUnit2 -= yMajorUnit2;
		++count;
	}
	return *this;
}


Hello ktj9

I have run TestScatter2 in Bazaar and it works well for me. The code you have submitted seems not to be the last one.

The version I use is 2322.


Best regards
Iñaki
Re: Scatter Control [message #26247 is a reply to message #6350] Sat, 17 April 2010 03:26 Go to previous message
ktj9 is currently offline  ktj9
Messages: 17
Registered: April 2010
Promising Member
Thank you, koldo.
Now I sync to depot. The example runs smoothly.
Previous Topic: Fresh TabBar proposals
Next Topic: usvn - SVN for dummies (and me)
Goto Forum:
  


Current Time: Fri Mar 29 10:52:00 CET 2024

Total time taken to generate the page: 0.01638 seconds