graphicModuleLoad.c

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------*/
00002 /* file: graphicModuleClose.c                                             */
00003 /* Copyright INRIA 2006                                                   */
00004 /* Authors : Jean-Baptiste Silvy                                          */
00005 /* desc : function to be called each time the graphic module is unloaded  */
00006 /*------------------------------------------------------------------------*/
00007 
00008 #include "getHandleProperty/GetHashTable.h"
00009 #include "getHandleProperty/SetHashTable.h"
00010 #include "DestroyObjects.h"
00011 #include "graphicModuleLoad.h"
00012 #include "InitObjects.h"
00013 #include "periScreen.h"
00014 
00015 static BOOL isGraphicModuleLoaded = FALSE ;
00016 
00017 /*------------------------------------------------------------------------*/
00018 void loadGraphicModule( void )
00019 {
00020   if ( isGraphicModuleLoaded ) { return ; }
00021   
00022   createScilabGetHashTable() ;
00023   createScilabSetHashTable() ;
00024 
00025   C2F(graphicsmodels)() ;
00026 
00027   isGraphicModuleLoaded = TRUE ;
00028 }
00029 /*------------------------------------------------------------------------*/
00030 void closeGraphicModule( void )
00031 {
00032   if ( !isGraphicModuleLoaded ) { return ; }
00033 
00034   /* destroy hashtables */
00035   destroyScilabGetHashTable() ;
00036   destroyScilabSetHashTable() ;
00037 
00038 
00039   /* destroy all graphic windows */
00040   AllGraphWinDelete() ;
00041 
00042   /* destroy default objects */
00043   destroyDefaultObjects() ;
00044 
00045   /* deleteTemporary points points in peri***.c */
00046   deletePoints() ;
00047 
00048   isGraphicModuleLoaded = FALSE ;
00049 
00050 }
00051 /*------------------------------------------------------------------------*/

Generated on Sun Mar 4 15:03:51 2007 for Scilab [trunk] by  doxygen 1.5.1