SPModel: libSPModel/src/LinearInterpolator.h Source File
VPAC - Computational Software Development
Main | SPModel | StGermain FrameWork |
Main Page | Alphabetical List | Class List | Directories | File List | Class Members | File Members

LinearInterpolator.h

Go to the documentation of this file.
00001 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00002 **
00003 ** Copyright (C), 2004, Victorian Partnership for Advanced Computing (VPAC) Ltd, 110 Victoria Street, Melbourne, 3053, Australia.
00004 **
00005 ** Authors:
00006 **  Ogar R. Widjaja, Computational Scientist, VPAC.
00007 **  Raquibul Hassan, Software Engineer, VPAC. (raq@vpac.org)
00008 **  Keith Hsuan, Computational Scientist, VPAC (keith@vpac.org)
00009 **  William F. Appelbe, Director, VPAC. (bill@vpac.org)
00010 **  Stevan M. Quenette, Senior Software Engineer, VPAC. (steve@vpac.org)
00011 **  Patrick D. Sunter, Software Engineer, VPAC. (patrick@vpac.org)
00012 **
00013 ** This file may be distributed under the terms of the VPAC Public License
00014 ** as defined by VPAC of Australia and appearing in the file
00015 ** LICENSE.VPL included in the packaging of this file.
00016 **
00017 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00018 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00019 **
00020 */
00032 #ifndef __SPModel_LinearInterpolator_h__
00033 #define __SPModel_LinearInterpolator_h__
00034 
00035     #define __LinearInterpolator \
00036         __Interpolator \
00037         float   **meshWeights;
00038     struct LinearInterpolator{ __LinearInterpolator };
00039 
00040 LinearInterpolator *LinearInterpolator_DefaultNew( Name name );
00041 
00042 LinearInterpolator *LinearInterpolator_New( Name name, Dictionary *dictionary, SurfaceMesh *mesh, SurfaceRegularMesh *regularMesh );
00043 
00044 LinearInterpolator                  *_LinearInterpolator_New( SizeT                         _sizeOfSelf,
00045                                     Type                            type,
00046                                     Stg_Class_DeleteFunction*               _delete,
00047                                     Stg_Class_PrintFunction*                _print,
00048                                     Stg_Class_CopyFunction*             _copy, 
00049                                     Stg_Component_DefaultConstructorFunction*   _defaultConstructor,
00050                                     Stg_Component_ConstructFunction*            _construct,
00051                                     Stg_Component_BuildFunction*        _build,
00052                                     Stg_Component_InitialiseFunction*       _initialise,
00053                                     Stg_Component_ExecuteFunction*      _execute,
00054                                     Stg_Component_DestroyFunction*      _destroy,
00055                                     Name                            name,
00056                                     Bool                            initFlag,
00057                                     Dictionary                      *dictionary,
00058                                     SurfaceMesh                     *mesh,
00059                                     SurfaceRegularMesh              *regularMesh );
00060 
00061 void _LinearInterpolator_Init( LinearInterpolator *self );
00062 
00063 void _LinearInterpolator_Print( void *linearInterpolator, Stream *stream );
00064 
00065 void _LinearInterpolator_Delete( void *linearInterpolator );
00066 
00067 void _LinearInterpolator_Construct( void *linearInterpolator, Stg_ComponentFactory *cf );
00068 
00069 void _LinearInterpolator_Build( void *linearInterpolator, void *data );
00070 
00071 void _LinearInterpolator_Initialise( void *linearInterpolator, void *data );
00072 
00073 void _LinearInterpolator_Execute( void *linearInterpolator, void *data );
00074 
00075 void _LinearInterpolator_Destroy( void *linearInterpolator, void *data );
00076 
00077 
00078 /* public functions */
00079 
00080 void LinearInterpolator_InterpolateFromGridToMesh( _Interpolator *interpolator, float **gridDeflectionArray,
00081         float *meshDeflectionArray );
00082 
00083 #endif
00084