graphicModuleLoad.c File Reference

#include "getHandleProperty/GetHashTable.h"
#include "getHandleProperty/SetHashTable.h"
#include "DestroyObjects.h"
#include "graphicModuleLoad.h"
#include "InitObjects.h"
#include "periScreen.h"

Include dependency graph for graphicModuleLoad.c:

Go to the source code of this file.

Functions

void loadGraphicModule (void)
void closeGraphicModule (void)

Variables

static BOOL isGraphicModuleLoaded = FALSE


Function Documentation

void closeGraphicModule ( void   ) 

Closing function freeing all memory used by the graphic module

Definition at line 30 of file graphicModuleLoad.c.

References AllGraphWinDelete(), deletePoints(), destroyDefaultObjects(), destroyScilabGetHashTable(), destroyScilabSetHashTable(), FALSE, and isGraphicModuleLoaded.

Referenced by TerminateGraphics().

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

void loadGraphicModule ( void   ) 

Routine creating all needed objetcs for the module

Definition at line 18 of file graphicModuleLoad.c.

References C2F, createScilabGetHashTable(), createScilabSetHashTable(), graphicsmodels(), isGraphicModuleLoaded, and TRUE.

Referenced by gw_graphics().

00019 {
00020   if ( isGraphicModuleLoaded ) { return ; }
00021   
00022   createScilabGetHashTable() ;
00023   createScilabSetHashTable() ;
00024 
00025   C2F(graphicsmodels)() ;
00026 
00027   isGraphicModuleLoaded = TRUE ;
00028 }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

BOOL isGraphicModuleLoaded = FALSE [static]

Definition at line 15 of file graphicModuleLoad.c.

Referenced by closeGraphicModule(), and loadGraphicModule().


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