|
|
Home » Developing U++ » UppHub » Scatter Control
|
|
|
|
Re: Scatter-new version [message #9177 is a reply to message #9172] |
Thu, 19 April 2007 23:35 |
guido
Messages: 169 Registered: April 2006
|
Experienced Member |
|
|
ebojd wrote on Thu, 19 April 2007 22:12 | Thanks Andrei,
I get a number of errors starting with:
Scatter.cpp:546 WinMetaFileDraw not declared in scope... It looks like it includes the appropriate files. Any quick ideas on what to look into?
I'm currently running the final release of 2007.1 with gcc-4.1.1 on gentoo linux.
EBo --
ps: I would love to cut and paste the error messages from upp, but for some reason the text is not being coppied to the publicly accessible clipboard.
|
EMF is a win32 thing not yet supported elsewhere.
I have attached a version with WIN32 platform conditionals.
Except IsMetaFile() checks, which I just removed out of laziness.
Also gcc4 didn't like mixing enum with bool (BOTTOM, TOP), so I hacked it up with #define.
I investigated EMF support for Unixes. But it is tricky as already existing libs, like libwmf and libemf, make use of Wine headers, inheriting the LGPL license that way.
PS:
Forgot to explain: I allowed myself to change "BUTTOM" to "BOTTOM"
Guido
[Updated on: Thu, 19 April 2007 23:38] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Re: Scatter-new version [message #11734 is a reply to message #11681] |
Mon, 24 September 2007 06:01 |
andrei-catalin
Messages: 62 Registered: May 2006 Location: Romania
|
Member |
|
|
To simplify your task you must use the current version of Scatter.
Scatter v0.6 features:
4 new methods (tested in "Operations" tab):
void RemoveAllSeries();
void RemoveAllFSeries();
const Vector<String> & GetPLegend() const {return vLegend;}
const Vector<String> & GetFLegend() const {return vFLegend;}
Added PopUpInfo class to show the coordinates outside of plotting area
3 new tests: Dynamic, Log and Operations
Added conditional compilation directives for WinMetafile
Andrei
[Updated on: Tue, 25 September 2007 07:22] Report message to a moderator
|
|
|
Re: Scatter-new version [message #11739 is a reply to message #11734] |
Mon, 24 September 2007 16:14 |
|
forlano
Messages: 1202 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
andrei-catalin wrote on Mon, 24 September 2007 06:01 | To simplify your task you must use the current version of Scatter.
Scatter v0.6 features:
4 new methods (tested in "Operations" tab):
void RemoveAllSeries();
void RemoveAllFSeries();
const Vector<String> & GetPLegend() const {return vLegend;}
const Vector<String> & GetFLegend() const {return vFLegend;}
Added PopUpInfo class to show the coordinates outside of plotting area
3 new tests: Dynamic, Log and Operations
Added conditional compilation directives for WinMetafile
Andrei
|
Thanks Andrei, this control is becoming better and better.
I've compiled the example using mingw of latest dev version and got some error that I removed as reported:
1. in Scatter.cpp
popText.SetColor(::Color(200,220,255));
instead of:
popText.SetColor(class::Color(200,220,255));
2. in Pie.h
static void DrawPie(Draw& w, Point centre, int r, int start, int alpha, int width=0, class::Color fill=Null, class::Color outline=Black,uint64 pattern=0,class::Color background=White);
(just added 'static' to remove the mismatch of declaration)
3. in testScatter2.h
scatter7.PlotFunction(f1,String("funct")+AsString(topIndex));
...
scatter7.AddSeries(s,String("series")+AsString(topIndex),true);
instead of
scatter7.PlotFunction(f1,String("funct")<<topIndex);
...
scatter7.AddSeries(s,String("series")<<topIndex,true);
Luigi
[Updated on: Mon, 24 September 2007 16:16] Report message to a moderator
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 06:59:03 CEST 2024
Total time taken to generate the page: 0.03364 seconds
|
|
|