COVISE Core
coDoAbstractStructuredGrid.h
Go to the documentation of this file.
1/* This file is part of COVISE.
2
3 You can use it under the terms of the GNU Lesser General Public License
4 version 2.1 or later, see lgpl-2.1.txt.
5
6 * License: LGPL 2+ */
7
8#ifndef CO_ABSTRACT_STRUCTURED_GRID_H
9#define CO_ABSTRACT_STRUCTURED_GRID_H
10
11#include "coDoGrid.h"
12
13/*
14 $Log: $
15 * Revision 1.2 1993/10/21 21:44:38 zrfg0125
16 * bugs in type fixed
17 *
18 * Revision 1.1 93/09/25 20:51:34 zrhk0125
19 * Initial revision
20 *
21*/
22
23/***********************************************************************\
24 ** **
25 ** Structured class Version: 1.1 **
26 ** **
27 ** **
28 ** Description : Classes for the handling of a structured grid **
29 ** and the data on it in a distributed manner. **
30 ** **
31 ** Classes : coDoGeometry, coDoStructuredGrid, **
32 ** DO_Scalar_3d_data, DO_Vector_3d_data, **
33 ** DO_Solution **
34 ** **
35 ** Copyright (C) 1993 by University of Stuttgart **
36 ** Computer Center (RUS) **
37 ** Allmandring 30 **
38 ** 7000 Stuttgart 80 **
39 ** **
40 ** **
41 ** Author : A. Wierse (RUS) **
42 ** **
43 ** History : **
44 ** 15.04.93 Ver 1.0 **
45 ** 26.05.93 Ver 1.1 new Shm-Datatypes introduced **
46 ** redesign of rebuildFromShm **
47 ** **
48 ** **
49\***********************************************************************/
50namespace covise
51{
52
54{
55public:
56 coDoAbstractStructuredGrid(const coObjInfo &info, const char *t)
57 : coDoGrid(info, t)
58 {
59 }
60 int getNumPoints() const
61 {
62 int x, y, z;
63 getGridSize(&x, &y, &z);
64 return x * y * z;
65 }
66 virtual void getGridSize(int *x, int *y, int *z) const = 0;
67 virtual void getPointCoordinates(int i, float *x_c, int j, float *y_c, int k, float *z_c) const = 0;
68 virtual int interpolateField(float *v_interp, const float *point,
69 int *cell, int no_arrays, int array_dim,
70 const float *const *velo) = 0;
71};
72}
73#endif
#define DOEXPORT
Definition: coExport.h:331
GLdouble GLdouble z
Definition: khronos-glext.h:6565
GLint GLint GLint GLint GLint GLint y
Definition: khronos-glext.h:6346
GLdouble GLdouble t
Definition: khronos-glext.h:6449
GLint GLint GLint GLint GLint x
Definition: khronos-glext.h:6346
list of all chemical elements
Definition: coConfig.h:27
Definition: coObjID.h:231
Definition: coDoAbstractStructuredGrid.h:54
virtual void getGridSize(int *x, int *y, int *z) const =0
coDoAbstractStructuredGrid(const coObjInfo &info, const char *t)
Definition: coDoAbstractStructuredGrid.h:56
virtual int interpolateField(float *v_interp, const float *point, int *cell, int no_arrays, int array_dim, const float *const *velo)=0
virtual void getPointCoordinates(int i, float *x_c, int j, float *y_c, int k, float *z_c) const =0
int getNumPoints() const
Definition: coDoAbstractStructuredGrid.h:60
Definition: coDoGrid.h:17