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: bpabbott
Subject: Re: mouse rotation for fltk backend
Date: Tue, 20 Jul 2010 11:22:33 -0700 (PDT)

On 20 Jul, 2010,at 12:33 PM, Shai Ayal <address@hidden> wrote:

On Tue, Jul 20, 2010 at 12:32 AM, bpabbott <address@hidden> wrote:
> On 19 Jul, 2010,at 03:43 PM, Kai Habel <address@hidden> wrote:
>
> Am 19.07.2010 16:18, schrieb bpabbott:
>> On 19 Jul, 2010,at 09:05 AM, Kai Habel <address@hidden> wrote:
>>
>>> Am 19.07.2010 13:42, schrieb Ben Abbott:
>>>> On Jul 19, 2010, at 6:54 AM, Kai Habel wrote:
>>>>
>>>>
>>>>> Am 19.07.2010 03:58, schrieb Ben Abbott:
>>>>>
>>>>>> On Jul 18, 2010, at 2:49 PM, Kai Habel wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Dear all,
>>>>>>>
>>>>>>> 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.
>>>>>>>
>>>>>>> To make it fully usable I have removed the zooming and panning limits
>>>>>>> in
>>>>>>> axes::properties::zoom_about_point and
>>>>>>> axes::properties::translate_view.
>>>>>>> Was there a specific reason to introduce them?
>>>>>>>
>>>>>>> Kai
>>>>>>> <mouse_rot.diff>
>>>>>>>
>>>>>>>
>>>>>> I applied the patch, and am now able to pan (by default), but I don't
>>>>>> see the two buttons.
>>>>>>
>>>>>> Where should be buttons be located?
>>>>>>
>>>>>> Ben
>>>>>>
>>>>>> p.s. I'm running MacOS X 10.6.4 with fltk-aqua 1.1.10.
>>>>>>
>>>>>>
>>>>> The buttons should appear after the A|G buttons. The new layout should
>>>>> be A|G|P|R|? .
>>>>>
>>>>> Kai
>>>>>
>>>> I don't see any buttons. I ask where they are so that I try clicking in
>>>> that vicinity .... maybe they're not visible, but active?
>>>>
>>>> Ben
>>>>
>>> Ben,
>>>
>>> I have attached a figure using the fltk-backend to give you a visual
>>> impression of the layout. Hope that helps
>>>
>>> Kai
>>>
>>> <moz-screenshotpng>
>>
>> Thanks!
>>
>> When I plot I don't get the bar along the bottom of the plot, on which
>> the buttons are place. In FLTK lingo what is the bar called?
>>
>> Ben
>>
> I don't think the bar has a special name. It consists of five
> Fl_Button(s) and Fl_Output area. But I am not an expert in FLTK
> programming. Maybe the online doc can help.
>
> http://www.fltk.org/doc-1.3/classFl__Output.html
> http://www.fltk.org/doc-1.3/classFl__Button.html
>
> Kai
>
>
> I'd hoped to find an application on MacOS X with a similar bar, but no luck.
> I did find the example below on the FLTK website
>     http://geuz.org/gmsh/gallery/screenshot.png
> It appears the gmsh app is using the StatusBarGroup class, while Octave is
> doing something else to create its bar.
> Since my c/c++ skills are non-existent, I think I'm must spinning my wheels
> and wasting the time of anyone following, so its probably best I focus on
> something else.
> Ben

I got the gmsh sources, and I copied their graphics code to
fltk_backend (now we have tooltips!). I pushed the change. Please see
if it works on MacOS X. The changes are minimal and so I doubt they
will help.
Did you try to run gmsh to see if the current version's status bar is visible?

Shai
 
I haven't tried to build gmsh's most recent sources. But the Mac bundle for 2.4.2 runs and the status bar is visible.

I just pulled and built Octave. There's still no bar at the bottom, and no tooltips.

I should mention that I'm using fltk 1.1.10 for aqua, not x11. It may be that the x11 variant would work, but Fink's x11 version is only 1.1.7 so I can't try.

Ben


reply via email to

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