|
atomes 1.3.1
atomes: an atomic scale modeling tool box
|
Initialization of the atomes program
Functions required to read data from the command line.
More...
#include <getopt.h>#include <ctype.h>#include "version.h"#include "global.h"#include "bind.h"#include "callbacks.h"#include "preferences.h"#include "interface.h"#include "project.h"#include "workspace.h"#include "glview.h"#include "movie.h"#include <pwd.h>Go to the source code of this file.
Data Structures | |
| struct | file_list |
Macros | |
| #define | APP_EXTENSION |
Functions | |
| GtkWidget * | create_main_window (GApplication *app) |
| create the main application window | |
| void | print_help () |
| print basic help | |
| void | print_version () |
| print version information | |
| int | test_this_ext (int len, gchar *arg) |
| test extension of an argument from the command line | |
| int | test_this_arg (gchar *arg) |
| test an argument from the command line | |
| gboolean | is_string_in_string_list (gchar *string, gchar **list) |
| check if a string is in a list of strings | |
| int | get_style_from_string (gchar *style_string) |
| retrieve style from command line string | |
| int | get_rep_from_string (gchar *rep_string) |
| retrieve representation style from command line string | |
| int | get_box_axis_from_string (gchar *box_axis_string) |
| retrieve box or axis style from command line string | |
| int | get_color_map_from_string (gchar *col_string) |
| retrieve color map from command line string | |
| ColRGBA * | get_color_from_hexa_string (gchar *color_string) |
| convert Hexadecimal string to ColRGBA | |
| int | get_gradient_from_string (gchar *grad_string) |
| retrieve background gradient from command line string | |
| int | check_for_atomes_file_options (int start, int end, char *argv[]) |
| retrieve the list of files to read from the command line leave out all other options | |
| int | parse_command_line (int argc, char *argv[]) |
| test command line arguments | |
| gboolean | destroy_func (gpointer user_data) |
| destroy splash screen | |
| GtkWidget * | create_splash_window () |
| create splash screen window | |
| void | read_this_file (int file_type, gchar *this_file) |
| read file from the command line | |
| void | open_this_data_file (int file_type, gchar *file_name) |
| open data file from the command line | |
| G_MODULE_EXPORT void | run_program (GApplication *app, gpointer data) |
| run the program | |
| int | check_opengl_rendering () |
| check the initialization parameters for an OpenGL context | |
| int | main (int argc, char *argv[]) |
| initialization of the atomes program | |
Variables | |
| const gchar * | dfi [2] |
| struct file_list * | flist = NULL |
| struct file_list * | ftmp = NULL |
| gboolean | with_workspace = FALSE |
| gchar * | bs_styles [] |
| gchar * | wi_styles [] = {"wireframe", "wireframes", "wires", "wire", "wi", "w", NULL} |
| gchar * | co_styles [] = {"covalent_radius", "covalent", "cov_rad", "cov", "co", "cr", NULL} |
| gchar * | io_styles [] = {"ionic_radius", "ionic_rad", "ionic", "ion", "ir", NULL} |
| gchar * | vw_styles [] = {"vdw_radius", "van_der_waals_radius", "van_der_waals", "vdw_radius", "vdw_rad", "vdw", "vr", NULL} |
| gchar * | cr_styles [] = {"crystal", "crystal_radius", "in_crystal", "in_crystal_radius", "cryst", "crystal_rad", "cr", NULL} |
| gchar * | sp_styles [] = {"sphere", "spheres", "sph", "sp", "S", NULL} |
| gchar * | cy_styles [] = {"cylinder", "cylinders", "cyl", "cy", "c", NULL} |
| gchar * | do_styles [] = {"dot", "dots", "d", NULL} |
Initialization of the atomes program
Functions required to read data from the command line.
Definition in file main.c.
| int check_for_atomes_file_options | ( | int | start, |
| int | end, | ||
| char * | argv[] ) |
| int check_opengl_rendering | ( | ) |
|
extern |
| GtkWidget * create_splash_window | ( | ) |
| gboolean destroy_func | ( | gpointer | user_data | ) |
| int get_box_axis_from_string | ( | gchar * | box_axis_string | ) |
| ColRGBA * get_color_from_hexa_string | ( | gchar * | color_string | ) |
| int get_color_map_from_string | ( | gchar * | col_string | ) |
| int get_gradient_from_string | ( | gchar * | grad_string | ) |
| int get_rep_from_string | ( | gchar * | rep_string | ) |
| int get_style_from_string | ( | gchar * | style_string | ) |
| gboolean is_string_in_string_list | ( | gchar * | string, |
| gchar ** | list ) |
| int main | ( | int | argc, |
| char * | argv[] ) |
| void open_this_data_file | ( | int | file_type, |
| gchar * | file_name ) |
| int parse_command_line | ( | int | argc, |
| char * | argv[] ) |
| void read_this_file | ( | int | file_type, |
| gchar * | this_file ) |
| G_MODULE_EXPORT void run_program | ( | GApplication * | app, |
| gpointer | data ) |
| int test_this_arg | ( | gchar * | arg | ) |
| int test_this_ext | ( | int | len, |
| gchar * | arg ) |
| gchar* bs_styles[] |
| gchar* co_styles[] = {"covalent_radius", "covalent", "cov_rad", "cov", "co", "cr", NULL} |
| gchar* cr_styles[] = {"crystal", "crystal_radius", "in_crystal", "in_crystal_radius", "cryst", "crystal_rad", "cr", NULL} |
| gchar* cy_styles[] = {"cylinder", "cylinders", "cyl", "cy", "c", NULL} |
| gchar* io_styles[] = {"ionic_radius", "ionic_rad", "ionic", "ion", "ir", NULL} |
| gchar* sp_styles[] = {"sphere", "spheres", "sph", "sp", "S", NULL} |
| gchar* vw_styles[] = {"vdw_radius", "van_der_waals_radius", "van_der_waals", "vdw_radius", "vdw_rad", "vdw", "vr", NULL} |
| gchar* wi_styles[] = {"wireframe", "wireframes", "wires", "wire", "wi", "w", NULL} |