1 /***********************************************************************/
2 /* Open Visualization Data Explorer                                    */
3 /* (C) Copyright IBM Corp. 1989,1999                                   */
4 /* ALL RIGHTS RESERVED                                                 */
5 /* This code licensed under the                                        */
6 /*    "IBM PUBLIC LICENSE - Open Visualization Data Explorer"          */
7 /***********************************************************************/
8 
9 //
10 // $Header: /src/master/dx/src/exec/libdx/linesRI1DClass.X,v 1.3 2003/07/11 05:50:45 davidt Exp $
11 //
12 
13 
14 typedef struct linesri1dinterpolator *LinesRI1DInterpolator;
15 
16 INCLUDE      fieldinterpClass.X
17 SUBCLASS    LinesRI1DInterpolator OF FieldInterpolator
18 IMPLEMENTS  PrimitiveInterpolate Delete Copy LocalizeInterpolator
19 
20 LinesRI1DInterpolator _dxfNewLinesRI1DInterpolator(Field,
21 				enum interp_init, double, Matrix *);
22 int   _dxfRecognizeLinesRI1D(Field);
23 
24 typedef struct linearCoord	 	 LinearCoord;
25 
26 struct linearCoord
27 {
28     float p, q;
29 };
30 
31 struct linesri1dinterpolator
32 {
33     struct fieldinterpolator	fieldInterpolator;
34 
35     Array 		pointsArray;
36     ArrayHandle		pHandle;
37     int			nPoints;
38 
39     Array 		linesArray;
40     int			*lines;
41     int			nLines;
42 
43     Array 		dataArray;
44     ArrayHandle		dHandle;
45     int			nElements;
46 
47     int			hint;			/* last segment interpolated */
48     int			direction;
49 };
50 
51 LinesRI1DInterpolator _dxf_NewLinesRI1DInterpolator(Field,
52 			enum interp_init, float, Matrix *,
53 			struct linesri1dinterpolator_class *);
54 
55 LinesRI1DInterpolator _dxf_CopyLinesRI1DInterpolator(LinesRI1DInterpolator,
56 			LinesRI1DInterpolator, enum _dxd_copy);
57 
58