Xref: utzoo comp.graphics:13096 comp.windows.x:26348 Path: utzoo!mnetor!frank From: frank@mnetor.UUCP (Frank Kolnick) Newsgroups: comp.graphics,comp.windows.x Subject: Re: Wanted: Algorithm for damage repair in 2.5D space. Message-ID: <5559@mnetor.UUCP> Date: 30 Aug 90 17:20:27 GMT References: <1990Aug29.132544.20549@abblund.se> Reply-To: frank@mnetor.UUCP (Frank Kolnick) Organization: Motorola Canada Ltd., Computer X division, Toronto, Ontario, Canada Lines: 32 In article <1990Aug29.132544.20549@abblund.se> erik@abblund.se (Erik Sparre) writes: )I'm looking for damage repair algorithms for 2D graphics. I want to maintain )a database/datastructure of 2D graphical objects (lines, polygons, circles). )Some of these may be visible on the screen depending on the viewing )transformation. They should have some sort of priority (i.e. ordered back to )front). ) )A change in the position, color or style of a graphical object should be )intelligently repaired by the algorithm. The goal is to minimize flicker )and graphics processing/rendering. )... The QNX Windows implementation of Open Look (which is not an X-based implementation, btw) does exactly that. It stores graphical 'objects' in the server and so can handle most event processing (mouse clicks, typed text, range-checking, etc.), as well as redraws due to changes in the objects, resizing or exposing a window, etc., locally, i.e., without involving the application task. (This is especially important in QNX, which is inherently networked, to minimize net traffic.) Many 'gadgets' (sliders, dials, scrolling lists, etc.) are also implemented as objects, and more complex objects can be constructed from the 'primitive' ones. Anyway, I'm trying to point out that what you're asking for is much more than an 'algorithm'. You have to design an appropriate data-base, resolve input operations on objects in the data-base, worry about clipping and intersection of objects, etc., etc. I'd be happy to discuss any aspect of QNX Windows (perhaps via e-mail). -- Frank Kolnick, Basis Computer Systems Inc. UUCP: {allegra, linus}!utzoo!mnetor!frank