TraverseRegion

Traverses a region for all rectangles in definition.

Declaration

void NAPI GA_regionFuncs::TraverseRegion(
GA_region *rgn,
GA_regionCallback doRect,
void *parms)
typedef void (NAPIP GA_regionCallback)(const GA_rect *r,void *parms)

Prototype In

snap/graphics.h

Parameters

rgn | Region to traverse
doRect | Callback function to call for every rectangle processed
parms | Parameters to pass to callback function

Description

This function traverses the definition of the region, calling the supplied callback function once for every rectangle in union of rectangles that make up the complex region.

See Also

DiffRegion, UnionRegion, SectRegion

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com