That is an IupCanvas that implements everything from scratch.

Best,
Scuri


On Fri, Jan 23, 2015 at 8:04 PM, Joaquim Luis <[email protected]> wrote:

>
> - Can I select a line with a double-click instead of a Shift+Draw
> Rectangle? Note that the first case needs only one hand, while both of
> them are needed for later.
>
>   Select a sample. IupPlot only select samples, not lines. By default, no.
> You will have to do that manually inside a callback. But be aware that this
> is going to affect the pan operation when zoomed in.
>
>
> António, I don't to be too insistent on this story of being able to select
> a line but when I use the Ftool.exe I can draw and select lines with a
> click. Is it that IupPPlot could do it and IupPlot doesn't?
>
>
>
>
> - How do one do an edit of type click-n-drag to move a point? I added a
> DRAWSAMPLE_CB callback that is executed when I simulate a click-n-drag but
> again I've do that while holding down the Control key and it still draws a
> rectangle. Not practical.
>
>   That is something to be done using PLOTBUTTON_CB and PLOTMOTION_CB, for
> instance, to move all the selected samples.
>
>
> - What you mean that IupPlot is much less flexible than cdCanvas?
>    Ok, with cdCanvas I can't select elements with the mouse nor draw axes
> (severe limitations) but what are the important facilities that it
> provides with respect to IupPlot?
>
>   As Milind mentioned, IupPlot is a control implemented over IupCanvas.
> And since it has a very specific porpoise it has to define how it is going
> to handle data, how to draw it, and how to interact with it. And sometimes
> this definitions are not what one might expect, as you can see by the
> previous questions.
>
> Best,
> Scuri
>
>
> On Thu, Jan 22, 2015 at 9:37 PM, Joaquim Luis <[email protected]> wrote:
>
>> Thanks Milind,
>>
>> Do you know any further example codes that I could use for inspiration?
>> I would be specially interested in cases with, display an image + draw
>> polylines on top of it + point-n-click selection and edition of those
>> polylines/polygones.
>>
>>
>> Joaquim
>>
>>
>>
>> Antonio can correct me if I am wrong but from the documentation I gather
>> that IupPlot is based on iupCanvas. All the axis drawing and click select
>> facilities are implemented using the iupCanvas callbacks and coordinate
>> processing. IupCanvas is good and iupglcanvasbox is even more powerful you
>> can put in other iup controls in the iupglcanvasbox and so use their
>> features and the canvas features in a hybrid manner but as I learnt from my
>> previous discussions is not to get carried away by that and only use
>> controls which are necessary.
>>
>> Milind
>>
>>
>> On Thu, Jan 22, 2015 at 1:25 PM, Joaquim Luis <[email protected]> wrote:
>>
>>>
>>> OK, I ported the pplot.cpp to Julia but using IupPlot.
>>> Some questions:
>>>
>>> - Can I select a line with a double-click instead of a Shift+Draw
>>> Rectangle? Note that the first case needs only one hand, while both of
>>> them are needed for later.
>>>
>>> - How do one do an edit of type click-n-drag to move a point? I added a
>>> DRAWSAMPLE_CB callback that is executed when I simulate a click-n-drag
>>> but
>>> again I've do that while holding down the Control key and it still draws
>>> a
>>> rectangle. Not practical.
>>>
>>> - What you mean that IupPlot is much less flexible than cdCanvas?
>>>    Ok, with cdCanvas I can't select elements with the mouse nor draw axes
>>> (severe limitations) but what are the important facilities that it
>>> provides with respect to IupPlot?
>>>
>>>
>>> Thanks
>>>
>>> Joaquim
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
>>> GigeNET is offering a free month of service with a new server in Ashburn.
>>> Choose from 2 high performing configs, both with 100TB of bandwidth.
>>> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
>>> http://p.sf.net/sfu/gigenet
>>> _______________________________________________
>>> Iup-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
>> GigeNET is offering a free month of service with a new server in Ashburn.
>> Choose from 2 high performing configs, both with 100TB of bandwidth.
>> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
>> http://p.sf.net/sfu/gigenet
>> _______________________________________________
>> Iup-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>
>
>
>
>
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to