/***************************************************************************** * * 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. */ #define IDM_PRINTCHART 100 #define IDM_EXIT 101 #define ID_CANCEL 120 #define IDM_DRAWMESH 201 #define IDM_DRAWSHADED 202 #define IDM_DRAWCONTOURS 203 #define IDM_DRAWZONES 204 #define IDM_DRAWSOLID 205 #define IDM_AUTOSCALE 206 #define DEFAULT_NUM_INTERPOLATE 20 #define MIN_INTERPOLATE 2 #define MAX_INTERPOLATE 64 typedef struct { int xpixel; int ypixel; double xcoord; double ycoord; double zvalue; double xmin; double ymin; double xmax; double ymax; } SelectedPoint; typedef struct { int min, max; int value; } Counter; extern HANDLE ghInst; extern HWND gMainHwnd; extern HXRT3D chart3d; extern HXRT2D chart2d; extern Xrt3dData* pData3d; extern double dHoleValue; extern HANDLE hStartX; extern HANDLE hStartY; extern HANDLE hEndX; extern HANDLE hEndY; extern HANDLE hInterpolate; extern SelectedPoint ptStart; extern SelectedPoint ptEnd; extern Counter ctInterpolate; extern int nChart3dVisible; extern int y3dOffset; extern char szErrorBuf[256]; extern void CreateProfileDialog(); extern void DrawProfileLine(HXRT3D h3d, BOOL bErase, BOOL bClip); extern void ReDrawProfileLine(LPRECT lpRectPainted); extern void StartDrag(HXRT3D h3d, int xPos, int yPos); extern void ApplyDrag(HXRT3D h3d, int xPos, int yPos); extern void EndDrag(HXRT3D h3d, int xPos, int yPos); extern void StartMoveLine(HXRT3D h3d, int xPos, int yPos); extern void ApplyMoveLine(HXRT3D h3d, int xPos, int yPos); extern void EndMoveLine(HXRT3D h3d, int xPos, int yPos); extern void ProcessInputData(Xrt3dData * pData3d); extern void ProcessEditValues(); extern int ProcessInterpolateValue(int nUpDown); extern int PrintCharts(HXRT2D h2d, HXRT3D h3d);