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

SurfaceMeshLoader.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 */
00031 #ifndef __SPModel_SurfaceMeshLoader_h__
00032 #define __SPModel_SurfaceMeshLoader_h__
00033 
00034     #define __SurfaceMeshLoader\
00035         struct{ __Stg_Component }; \
00036         int                         nx; \
00037         int                         ny; \
00038         char                        *inputType; \
00039         char                        *inputDirectory; \
00040         char                        *inputFile; \
00041         Dictionary                  *dictionary;
00042     struct SurfaceMeshLoader{ __SurfaceMeshLoader };
00043 
00044 SurfaceMeshLoader *SurfaceMeshLoader_DefaultNew( Name name );
00045 
00046 SurfaceMeshLoader *SurfaceMeshLoader_New( Name name, Dictionary *dictionary );
00047 
00048 SurfaceMeshLoader                   *_SurfaceMeshLoader_New( SizeT                          _sizeOfSelf,
00049                                     Type                            type,
00050                                     Stg_Class_DeleteFunction*               _delete,
00051                                     Stg_Class_PrintFunction*                _print,
00052                                     Stg_Class_CopyFunction*             _copy, 
00053                                     Stg_Component_DefaultConstructorFunction*   _defaultConstructor,
00054                                     Stg_Component_ConstructFunction*            _construct,
00055                                     Stg_Component_BuildFunction*        _build,
00056                                     Stg_Component_InitialiseFunction*       _initialise,
00057                                     Stg_Component_ExecuteFunction*      _execute,
00058                                     Stg_Component_DestroyFunction*      _destroy,
00059                                     Name                            name,
00060                                     Bool                            initFlag,
00061                                     Dictionary                      *dictionary );
00062 
00063 void _SurfaceMeshLoader_Init( SurfaceMeshLoader *self );
00064 
00065 void _SurfaceMeshLoader_Print( void *surfaceMeshLoader, Stream *stream );
00066 
00067 void _SurfaceMeshLoader_Delete( void *surfaceMeshLoader );
00068 
00069 void _SurfaceMeshLoader_Construct( void *surfaceMeshLoader, Stg_ComponentFactory *cf );
00070 
00071 void _SurfaceMeshLoader_Build( void *surfaceMeshLoader, void *data );
00072 
00073 void _SurfaceMeshLoader_Initialise( void *surfaceMeshLoader, void *data );
00074 
00075 void _SurfaceMeshLoader_Execute( void *surfaceMeshLoader, void *data );
00076 
00077 void _SurfaceMeshLoader_Destroy( void *surfaceMeshLoader, void *data );
00078 
00079 /* public functions */
00080 void SurfaceMeshLoader_LoadMesh( SurfaceMeshLoader *surfaceMeshLoader, SurfaceMesh *mesh );
00081 
00082 void SurfaceMeshLoader_ScanMesh( SurfaceMeshLoader *surfaceMeshLoader,  SurfaceMesh *mesh );
00083 
00084 #endif
00085