From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b57d9d41ce0be476 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!news.osn.de!diablo2.news.osn.de!news.belwue.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: [ANN] Ada bindimgs to gtkdatabox Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1d52hzowcb8uo.xpd1v79543av$.dlg@40tude.net> Date: Tue, 7 Dec 2010 23:17:29 +0100 Message-ID: <1vr3rm8heornd$.zbizw6utop6u.dlg@40tude.net> NNTP-Posting-Date: 07 Dec 2010 23:17:29 CET NNTP-Posting-Host: bb2242be.newsspool2.arcor-online.net X-Trace: DXC=CZ_Mbaemk;I[kmHKHnaEnMA9EHlD;3YcB4Fo<]lROoRA8kF On Tue, 07 Dec 2010 22:14:47 +0100, Per Sandberg wrote: > On 12/07/2010 09:54 PM, Dmitry A. Kazakov wrote: >> On Tue, 07 Dec 2010 21:33:52 +0100, Per Sandberg wrote: >> >>> Ther is now a binding to gtkdatabox located on: >>> https://github.com/persan/A-gtkdatabox >> >> Does it use time stamps on the X axis (i.e. oscilloscope), or is it just a >> XY plot? > Its basicly an XY plot with float values. I considered porting a C++ library that does the oscilloscope to Cairo Ada, but I am not so sure now. >> Is it based on cairo? > Have not thought about it, i was looking a widget that made it possible > to build a simple UI for a pc-oscilloscope. Cairo looks a good choice. There are excellent Cairo Ada bindings by Damien Carbonne. Considering oscilloscope implementation there is a problem. I don't know how to get a BitBlt under Gdk or Cairo, which would be essential for good performance of scrolling. >> How does it handle the case when several data points must be rendered in >> one-pixel horizontal width? > Have not looked deeper into the scaling effects when several X-values > should be rendered one pixel wide, but it seems like a mean value is drawn. I see, not a min-to-max vertical bar (the correct behavior). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de