Top | ![]() |
![]() |
![]() |
![]() |
void | visu_basic_init () |
void | visu_basic_initConfigFiles () |
gboolean | visu_basic_parseConfigFiles () |
gboolean | visu_basic_showOptionHelp () |
int | visu_basic_mainExport () |
ToolUnits | visu_basic_getPreferedUnit () |
gboolean | visu_basic_setPreferedUnit () |
void | visu_basic_setExePath () |
const gchar * | visu_basic_getDataDir () |
const gchar * | visu_basic_getLegalDir () |
const gchar * | visu_basic_getPixmapsDir () |
const gchar * | visu_basic_getIconsDir () |
const gchar * | visu_basic_getLocalDir () |
const gchar * | visu_basic_getOldLocalDir () |
const gchar * | visu_basic_getPluginsDir () |
const gchar * | visu_basic_getLocaleDir () |
GMainContext * | visu_basic_getMainContext () |
void | visu_basic_freeAll () |
#define | VISU_VERSION |
#define | VISU_WEB_SITE |
#define | V_SIM_DATA_DIR |
#define | V_SIM_LEGAL_DIR |
#define | V_SIM_PIXMAPS_DIR |
#define | V_SIM_ICONS_DIR |
#define | V_SIM_LOCAL_CONF_DIR |
#define | V_SIM_OLD_LOCAL_CONF_DIR |
#define | V_SIM_PLUGINS_DIR |
#define | V_SIM_LOCALE_DIR |
There are here the main functions of V_Sim (except for graphical methods) such as open file.
void
visu_basic_init (void
);
A call to this method is done at startup after having probe the locale of the file system and having initialized the rendering window. It makes the following actions : create the visu object to store the signals, initialize the module part (parameters, and resources), initialize the dump part, the OpenGL part and its extensions, the storage of elements and the 'colorize with data' part.
gboolean
visu_basic_parseConfigFiles (GError **error
);
Parse the parameter and the resource file. Used once at startup.
gboolean
visu_basic_showOptionHelp (gboolean force
);
Display a small help for some options. The output is different from
the -h command line options, here some details about running time
options is displayed like the available file format for
exportation... If force
is TRUE, all possible values are output,
otherwise only those relevant to the user provided command line
options.
Since: 3.6
int
visu_basic_mainExport (void
);
This method is called when V_Sim is in export mode from the command line.
ToolUnits
visu_basic_getPreferedUnit (void
);
By setting the prefered unit, when a file is load, V_Sim tries to render it in this prefered unit.
Since: 3.5
gboolean
visu_basic_setPreferedUnit (ToolUnits unit
);
By setting the prefered unit, when a file is load, V_Sim tries to render it in this prefered unit.
Since: 3.5
void
visu_basic_setExePath (const gchar *exePath
);
This method is used to tell V_Sim where V_Sim is running (usually
reading from argv[0]. This makes it possible to relocate everything
on the fly. exePath
is copied.
Since: 3.6
const gchar *
visu_basic_getDataDir (void
);
Get the static string where V_Sim looks for its data files.
Since: 3.4
const gchar *
visu_basic_getLegalDir (void
);
Get the static string where V_Sim looks for its legal files.
Since: 3.4
const gchar *
visu_basic_getPixmapsDir (void
);
Get the static string where V_Sim looks for its pixmap files.
Since: 3.4
const gchar *
visu_basic_getIconsDir (void
);
Get the static string where V_Sim looks for its icon files.
Since: 3.4
const gchar *
visu_basic_getLocalDir (void
);
Get the static string where V_Sim looks for its user configuration files.
Since: 3.4
const gchar *
visu_basic_getOldLocalDir (void
);
Get the static string where V_Sim looks for its user configuration files (old location).
Since: 3.4
const gchar *
visu_basic_getPluginsDir (void
);
Get the static string where V_Sim looks for its plug-in files.
Since: 3.4
const gchar *
visu_basic_getLocaleDir (void
);
Get the static string where V_Sim looks for its localisation files.
Since: 3.4
GMainContext *
visu_basic_getMainContext (void
);
Even without GUI, V_Sim requires to run a main loop. This method is to get the main loop.
Since: 3.6
void
visu_basic_freeAll (void
);
This routine is called by V_Sim when quiting and it frees the memory used by visu_basic.
Since: 3.5
#define VISU_WEB_SITE "http://inac.cea.fr/L_Sim/V_Sim"
URL where to find info on V_Sim.
#define V_SIM_DATA_DIR visu_basic_getDataDir()
The directory where data files are stored.
#define V_SIM_LEGAL_DIR visu_basic_getLegalDir()
The directory where copyright and author files are stored.
#define V_SIM_PIXMAPS_DIR visu_basic_getPixmapsDir()
The directory where pixmap files are stored.
#define V_SIM_ICONS_DIR visu_basic_getIconsDir()
The directory where icon files are stored.
#define V_SIM_LOCAL_CONF_DIR visu_basic_getLocalDir()
The directory where user configuration files are stored.
#define V_SIM_OLD_LOCAL_CONF_DIR visu_basic_getOldLocalDir()
Old value of V_SIM_LOCAL_CONF_DIR.
#define V_SIM_PLUGINS_DIR visu_basic_getPluginsDir()
The directory where plugin files are stored.