octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mouse rotation for fltk backend


From: Kai Habel
Subject: Re: mouse rotation for fltk backend
Date: Mon, 19 Jul 2010 12:51:52 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.10) Gecko/20100520 SUSE/3.0.5 Thunderbird/3.0.5

Am 19.07.2010 01:01, schrieb Jordi Gutiérrez Hermoso:
> On 18 July 2010 13:49, Kai Habel <address@hidden> wrote:
>   
>> I have prepared a changeset which enables rotation of 3D(2D)-plots for
>> the fltk backend. To switch between pan and rotation respectively I have
>> added two buttons (P and R). It works very similar to the analog matlab
>> function.
>>     
> Wow, thanks. I've been wanting this for a long time.
>
> Hm, the default seems to be panning, not rotating. Is this the Matlab
> behaviour? If so, can we break compatibility here? This isn't
> something that needs to be compatible. Also, there seems to be some
> weirdness when rotating towards the z axis (top or bottom). I'll see
> if I can figure out why...
>   
As Ben said, matlab's default is to not react on mouse movements.
Regarding the default behavior (panning vs. rotating) - we need a common
setting for 2D and 3D plot here. I think it would be somewhat confusing
for a 2D plot if rotating would be default, therefore I have set the
initial mode to panning.
Of course you can keep a local patch, which set the initial mode to
rotating. Just change in DLD_functions/fltk_backend.cc the gui_mode from
1 to 2 (around line 305).
The weirdness you see is when the elevation crosses the +/-90degree
level. Since matlab behaves the same, I have not investigated this further.

Kai


reply via email to

[Prev in Thread] Current Thread [Next in Thread]