[Fxplot-users] Re: Fxplot-users digest, Vol 1 #2 - 1 msg
Status: Beta
Brought to you by:
rpseng
|
From: Jean-Dominique B. <jea...@fr...> - 2006-01-30 22:40:56
|
Rafael,
got the right adress now...
I'm using FOX 1.5.13, not 1.4.x.
Following your advice, i replaced the old method with their=20
corresponding new version (FOX 1.5 and above) in the following two lines:
FXString ext=3DFXPath::extension(file); // old version for FOX 1.4.x:=
=20
FXFile::extension(file);
if(FXStat::exists(file)){ // old version for FOX 1.4.x:=20
if(FXFile::exists(file)){
Everything now compiles fine on VC7.0 with FOX1.5.13.
Moreover, i 've successfully compiled and run the curves.cpp sample file=20
you provide with FXPlot 0.2.0.
As this is a good example to start with using FXPlot, i should not have=20
much difficulties to use FXPlot in my application.
After having playing a bit with it, i've got few additional questions:
1) in the method given below:
long FXPlotBase::onSave(FXObject* obj,FXSelector sel,void* ptr){
FXString file("Exporting Plot to File");
FXFileDialog dlg(this,file);
dlg.setFilename(name + ".png");
why is the png type set by default?
It does not work on my system as i did not compile the png lib (i got=20
jpeg anf gif support, not png). As a result, when i want to save an=20
image, it opens a dialog box with the png extension, whereas this=20
extension is not proposed in the corresponding drop-down liston the dialo=
g.
2) the behaviour of the zoom tool is basically to apply a magnification=20
factor around the picked point. Is there another zoom tool based on the=20
direct mouse selection of the rectangular region to be magnified?
3) once you have zoomed, it may be useful to be able to apply some=20
translation or pan (xy shift) to the graph, instead of going back to the=20
original image and zooming again at another place.
Is it possible to do that?
4) Is it possible to have some interaction (e.g. mouse selection) of=20
objects that are drawn (such as points and/or lines)?
Best regards,
Jean-Do
fxp...@li... a =E9crit :
>Send Fxplot-users mailing list submissions to
> fxp...@li...
>
>To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/fxplot-users
>or, via email, send a message with subject or body 'help' to
> fxp...@li...
>
>You can reach the person managing the list at
> fxp...@li...
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Fxplot-users digest..."
>
>
>Today's Topics:
>
> 1. Re: Problem using FXPlot2D (Rafael de Pelegrini Soares)
>
>--__--__--
>
>Message: 1
>Date: Sun, 29 Jan 2006 21:25:30 -0200
>From: Rafael de Pelegrini Soares <ra...@rp...>
>To: Jean-Dominique Barnichon <jea...@fr...>,=20
> fxp...@li...
>Subject: [Fxplot-users] Re: Problem using FXPlot2D
>
>Hi Jean,
>
>Regargind the mail list, I think you sent the message for the wrong=20
>address, the correct is fxp...@li....
>
>About your questions, which version of FOX are you using?
>Currently only version 1.4.X is supported, appears that in new versions=20
>exists() and extension() have moved from the FXFile. I think the new=20
>version is FX::FXStat::exists() and FX::FXFileAssoc::extension().
>
>Some time ago I have compiled it with VC7 with no problem.
>Sory for the question, but have you included the FXPlot2D.h header in=20
>your file?
>Please take a look at the file curves.cpp and check if you could=20
>generate an executable for it.
>
>With the best wishes,
>Rafael.
>
>Jean-Dominique Barnichon escreveu:
>
> =20
>
>>I send it again as ther was a problem at the sf mailman
>>
>>Hello Rafael,
>>
>>Remember me..., we had some email exchange mid-december on the Fox=20
>>list. I was (and i still am) looking for a charting library to do=20
>>basic 2D plots.
>>
>>I now came to a point in my project where i do need 2D chart, so now=20
>>it's time for me to get hands on.
>>So, i 've downloaded file FXPlot-0.2.0.zip from sourceforge, and build=20
>>it as a static library.
>>I'm developing under VC++7.0 with Visual Studio, so i did not use what=20
>>you recommend on sf web site (i.e. using scons). Instead, i added a=20
>>project to Fox, added the .h and .cpp files contained in the zip file,=20
>>and compiled it as a static library.
>>Just to mention, the compiler complained at two points in the file=20
>>FXPlotBase.cpp :
>>Bug 1)
>>apparently, neither "extension" nor "exists" are method belonging to=20
>>class FXfile, so
>>at line 48, i replaced
>> FXString ext=3DFXFile::extension(file);
>>by
>> FXString ext=3D"jpg";
>>and i commented lines 106 to 109 (test on file existence):
>>/* if(FXFile::exists(file)){
>> =20
>>if(MBOX_CLICKED_NO=3D=3DFXMessageBox::question(this,MBOX_YES_NO,"Overwr=
ite=20
>>File","Overwrite existing file: %s?",file.text()))
>> return 1;
>> }*/
>>
>>Having done that, i obtained the lib file
>>
>>Now, i'm trying to use your lib in an example from Fox (obviously=20
>>after setting correct path for lib and include).
>>So, i try to create a pointer to FXPlot2D with the line :
>> FXPlot2D *2DChart;
>>This line leads to a compiler error syntax error : insufficient suffix=20
>>number
>>c:\Fox\FxPir3D\MyFile.h(150) : error C2059: syntax error : 'incorrect=20
>>suffix number '
>>c:\Fox\FxPir3D\MyFile.h(150) : error C2059: syntax error : 'constant'
>>c:\Fox\FxPir3D\MyFile.h(150) : error C2238: unexpected "jetons" before=20
>>';'
>>
>>Any idea?
>>Btw, have you already compiled FXPlot under VC7.0?
>>
>>Thanks for you help.
>>Jean-Do
>>
>> =20
>>
>
>
>
>
>--__--__--
>
>_______________________________________________
>Fxplot-users mailing list
>Fxp...@li...
>https://lists.sourceforge.net/lists/listinfo/fxplot-users
>
>
>End of Fxplot-users Digest
>
>
> =20
>
|