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/cubesRRClass.X,v 1.3 2003/07/11 05:50:41 davidt Exp $
11 //
12 
13 
14 typedef struct cubesrrinterpolator	*CubesRRInterpolator;
15 
16 INCLUDE 		fieldinterpClass.X
17 SUBCLASS    	CubesRRInterpolator OF FieldInterpolator
18 IMPLEMENTS  	PrimitiveInterpolate Delete Copy LocalizeInterpolator
19 
20 CubesRRInterpolator _dxfNewCubesRRInterpolator(Field,
21 					enum interp_init, double, Matrix *);
22 int   RecognizeCubesRR(Field);
23 
24 struct cubesrrinterpolator
25 {
26     struct fieldinterpolator	fieldInterpolator;
27 
28     int	    size[3];	/* sizeof subarray size for indexing */
29     int	    counts[3];	/* regular array counts for bounds check */
30     int	    eltStrides[3]; /* strides in element space */
31 
32     Array   pointsArray;
33     Array   dataArray;
34     int	    nElements;
35 
36     ArrayHandle data;
37 
38     float   fuzz;
39     int     meshOffsets[3];
40 };
41 
42 CubesRRInterpolator _dxf_NewCubesRRInterpolator(Field,
43 			enum interp_init, float, Matrix *,
44 			struct cubesrrinterpolator_class *);
45 
46 CubesRRInterpolator _dxf_CopyCubesRRInterpolator(CubesRRInterpolator,
47 			CubesRRInterpolator, enum _dxd_copy);
48