/***************************************************************************** * * Copyright (c) 1999, KL GROUP INC. All Rights Reserved. * http://www.klgroup.com * * This file is provided for demonstration and educational uses only. * Permission to use, copy, modify and distribute this file for * any purpose and without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all * copies, and that the name of KL Group not be used in advertising * or publicity pertaining to this material without the specific, * prior written permission of an authorized representative of * KL Group. * * KL GROUP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY * OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE, OR NON-INFRINGEMENT. KL GROUP SHALL NOT BE LIABLE FOR ANY * DAMAGES SUFFERED BY USERS AS A RESULT OF USING, MODIFYING OR * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. */ #ifndef STRICT #define STRICT #endif #include #include "malloc.h" #include "olch2d.h" #include "pointsty.h" /* We want to keep one pointstyle available for each pie. Since this simple * demo doesn't track the pie windows, we use a simple table to keep them * organized by chart handle. A simple linear search of the table will do * for our purposes here. */ TrackingEntry* TrackingArray = NULL; int TrackingEntryCount = 0; /* Local routine - find point style for this chart, if any */ XrtPointStyleHandle LookupPointStyle(HXRT2D hChart) { int i; if( TrackingArray != NULL) { for( i=0; i