[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2855.0. "Is there such a thing a "drawable" clipping?" by STAR::KLEINSORGE (Fred Kleinsorge, VMS Development) Fri Jun 01 1990 13:54

    
    Is there any way to create a *temporary* clipping rectangle that applies
    to all drawing operations?  I can't find anything that does, and I'm
    trying to make sure I didn't miss something.
    
    - Regions must be applied to GC's (or that's what the documentation
      implies).
    
    - Clipping is GC based.
    
    - Creating a subwindow doesn't help because this must also work when
      drawing to a PIXMAP as well as a window.
    
    I'm looking to find a way to optimize the screen output from a display
    list edit operation.  The simplest way is to erase the bounding extents
    of the changed area, clip output to that area and redraw all objects
    that have extents which intersect the area...  but so far, it looks
    like each object to be drawn will need to have it's clipping region
    intersected with the area and this new area set as the clipping region
    and then reset after the drawing is completed... yuk.
    
    Any ideas?
    
T.RTitleUserPersonal
Name
DateLines
2855.1DECWIN::FISHERPrune Juice: A Warrior's Drink!Fri Jun 01 1990 16:035
How about if you (something like) got the big clip region and made a bitmap out
of it (with 1s inside).  Then set this as a stipple mask.  It would not work
with all operations (like tiles), but would it help?

Burns
2855.2STAR::KLEINSORGEFred Kleinsorge, VMS DevelopmentFri Jun 01 1990 17:388
    
    Not really.  It's for a library (UISX) which uses stipple fill quite
    extensively.  It would also make for even more special-case code.
    
    I was just suprised to find that there was no way to set a clip list
    for a drawable as opposed to a GC.
    
    _Fred