[Fxplot-users] Re: Fxplot-users digest, Vol 1 #2 - 1 msg
Status: Beta
Brought to you by:
rpseng
|
From: Rafael de P. S. <ra...@rp...> - 2006-01-31 12:16:00
|
Hi Jean-Do,
Jean-Dominique Barnichon escreveu:
> 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
> corresponding new version (FOX 1.5 and above) in the following two lines:
> FXString ext=FXPath::extension(file); // old version for FOX 1.4.x:
> FXFile::extension(file);
> if(FXStat::exists(file)){ // old version for FOX 1.4.x:
> if(FXFile::exists(file)){
> Everything now compiles fine on VC7.0 with FOX1.5.13.
I'll add some #ifdef's for the 1.6 branch, then in the new release you
could just devine the directive FOX_1_6 and the things will work.
> Moreover, i 've successfully compiled and run the curves.cpp sample
> file you provide with FXPlot 0.2.0.
> As this is a good example to start with using FXPlot, i should not
> have 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
> jpeg anf gif support, not png). As a result, when i want to save an
> image, it opens a dialog box with the png extension, whereas this
> extension is not proposed in the corresponding drop-down liston the
> dialog.
Yes, it is a bug. I fixed that, will be in the next release. Thank you
for reporting.
>
> 2) the behaviour of the zoom tool is basically to apply a
> magnification factor around the picked point. Is there another zoom
> tool based on the direct mouse selection of the rectangular region to
> be magnified?
Currently there is no support for this feature, but it should be not
difficult to add. Unfortunatelly I have no time to do it right now. I
can help if you want to implement it.
>
> 3) once you have zoomed, it may be useful to be able to apply some
> translation or pan (xy shift) to the graph, instead of going back to
> the original image and zooming again at another place.
> Is it possible to do that?
Not yet, and I think that this is not so easy to implement in an
efficient way. I use double buffering to draw the plot, first the plot
is drawn into a memory image and then into the window.
>
> 4) Is it possible to have some interaction (e.g. mouse selection) of
> objects that are drawn (such as points and/or lines)?
No, but this is very desirable. Again if you want to contribute on this...
Cheers.
>
> Best regards,
> Jean-Do
>
> fxp...@li... a écrit :
>
>> 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...>,
>> fxp...@li...
>> Subject: [Fxplot-users] Re: Problem using FXPlot2D
>>
>> Hi Jean,
>>
>> Regargind the mail list, I think you sent the message for the wrong
>> 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 exists() and extension() have moved from the FXFile. I think
>> the new 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
>> your file?
>> Please take a look at the file curves.cpp and check if you could
>> generate an executable for it.
>>
>> With the best wishes,
>> Rafael.
>>
>> Jean-Dominique Barnichon escreveu:
>>
>>
>>
>>> 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
>>> list. I was (and i still am) looking for a charting library to do
>>> basic 2D plots.
>>>
>>> I now came to a point in my project where i do need 2D chart, so now
>>> it's time for me to get hands on.
>>> So, i 've downloaded file FXPlot-0.2.0.zip from sourceforge, and
>>> build it as a static library.
>>> I'm developing under VC++7.0 with Visual Studio, so i did not use
>>> what you recommend on sf web site (i.e. using scons). Instead, i
>>> added a project to Fox, added the .h and .cpp files contained in the
>>> zip file, and compiled it as a static library.
>>> Just to mention, the compiler complained at two points in the file
>>> FXPlotBase.cpp :
>>> Bug 1)
>>> apparently, neither "extension" nor "exists" are method belonging to
>>> class FXfile, so
>>> at line 48, i replaced
>>> FXString ext=FXFile::extension(file);
>>> by
>>> FXString ext="jpg";
>>> and i commented lines 106 to 109 (test on file existence):
>>> /* if(FXFile::exists(file)){
>>>
>>> if(MBOX_CLICKED_NO==FXMessageBox::question(this,MBOX_YES_NO,"Overwrite
>>> 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
>>> 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 number
>>> c:\Fox\FxPir3D\MyFile.h(150) : error C2059: syntax error :
>>> 'incorrect suffix number '
>>> c:\Fox\FxPir3D\MyFile.h(150) : error C2059: syntax error : 'constant'
>>> c:\Fox\FxPir3D\MyFile.h(150) : error C2238: unexpected "jetons"
>>> before ';'
>>>
>>> Any idea?
>>> Btw, have you already compiled FXPlot under VC7.0?
>>>
>>> Thanks for you help.
>>> Jean-Do
>>>
>>>
>>
>>
>>
>>
>>
>> --__--__--
>>
>> _______________________________________________
>> Fxplot-users mailing list
>> Fxp...@li...
>> https://lists.sourceforge.net/lists/listinfo/fxplot-users
>>
>>
>> End of Fxplot-users Digest
>>
>>
>>
>>
>
>
--
:: MSc(Eng) Rafael de Pelegrini Soares
:: ra...@rp... - www.rps.eng.br
|