atomes 1.1.14
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
cbuild_info.c File Reference

Functions to create the space group information dialog. More...

#include "global.h"
#include "interface.h"
#include "glview.h"
#include "cbuild_edit.h"
+ Include dependency graph for cbuild_info.c:

Go to the source code of this file.

Functions

int get_crystal_id (int spg)
 get the bravais lattice id from space group id
 
int get_bravais_img_id (int spg)
 get bravais image from space group id
 
gchar * frac_string (gchar *init)
 get pango string for fraction string
 
gchar * get_num_string (gchar *str)
 get description string for entry string
 
gchar * get_so_string (space_group *spg, int id)
 get space group setting descrption string
 
GtkTreeModel * so_combo_tree (space_group *spg)
 create the space group setting combo box tree model
 
gchar * get_bravais (int spg)
 retrieve the space group bravais lattice
 
gchar * get_frac (float val)
 get string for value
 
void get_wyck_char (float val, int ax, int bx)
 convert wyckoff value to string
 
void get_extra_val (float val, int ax)
 convert wyckoff extra value to string
 
void get_wyck_names (space_group *spg, int i, int j)
 get the name of this wyckoff position
 
void set_wisible (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data)
 show / hide cell renderer, if visible then add or not pango markup
 
GtkWidget * create_wyckoff_tree (space_group *spg)
 create wyckoff position tree
 
GtkWidget * create_setting_info (space_group *spg, int sid)
 create setting information label
 
GtkWidget * create_wyck_pts_info (space_group *spg, int sid)
 create wyckoff label
 
G_MODULE_EXPORT void set_so_info (GtkComboBox *box, gpointer data)
 change space group origin
 
G_MODULE_EXPORT void show_sg_info (GtkWidget *but, gpointer data)
 show space group information dialog callback
 

Variables

gchar * tmp_pos
 
gchar * latt_info [7]
 
GtkWidget * info_hsbox
 
GtkWidget * info_vs
 
GtkWidget * wypts_vbox
 
GtkWidget * info_wyck_pts
 
GtkWidget * info_wyck_scroll
 
GtkWidget * info_wyck_tree
 
gchar * wnpos [3] = {NULL, NULL, NULL}
 

Detailed Description

Functions to create the space group information dialog.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file cbuild_info.c.

Function Documentation

◆ create_setting_info()

GtkWidget * create_setting_info ( space_group * spg,
int sid )

create setting information label

Parameters
spgthe target space group
sidthe setting id

Definition at line 396 of file cbuild_info.c.

◆ create_wyck_pts_info()

GtkWidget * create_wyck_pts_info ( space_group * spg,
int sid )

create wyckoff label

Parameters
spgthe target space group
sidthe setting id

Definition at line 421 of file cbuild_info.c.

◆ create_wyckoff_tree()

GtkWidget * create_wyckoff_tree ( space_group * spg)

create wyckoff position tree

Parameters
spgthe target space group

Definition at line 365 of file cbuild_info.c.

◆ frac_string()

gchar * frac_string ( gchar * init)
extern

get pango string for fraction string

Parameters
initthe target fraction string

Definition at line 259 of file cbuild_edit.c.

◆ get_bravais()

gchar * get_bravais ( int spg)

retrieve the space group bravais lattice

Parameters
spgthe target space group id

Definition at line 83 of file cbuild_info.c.

◆ get_bravais_img_id()

int get_bravais_img_id ( int spg)
extern

get bravais image from space group id

Parameters
spgthe target space group id

Definition at line 173 of file cbuild_edit.c.

◆ get_crystal_id()

int get_crystal_id ( int spg)
extern

get the bravais lattice id from space group id

Parameters
spgthe target space group id

Definition at line 127 of file cbuild_edit.c.

◆ get_extra_val()

void get_extra_val ( float val,
int ax )

convert wyckoff extra value to string

Parameters
valthe target value
axaxis id, x = 0, y = 1, z = 2

Definition at line 201 of file cbuild_info.c.

◆ get_frac()

gchar * get_frac ( float val)

get string for value

Parameters
valthe target value

Definition at line 118 of file cbuild_info.c.

◆ get_num_string()

gchar * get_num_string ( gchar * str)
extern

get description string for entry string

Parameters
strthe target string

Definition at line 282 of file cbuild_edit.c.

◆ get_so_string()

gchar * get_so_string ( space_group * spg,
int id )
extern

get space group setting descrption string

Parameters
spgthe target space group
idthe space grop setting

Definition at line 305 of file cbuild_edit.c.

◆ get_wyck_char()

void get_wyck_char ( float val,
int ax,
int bx )

convert wyckoff value to string

Parameters
valthe target value
axaxis id, x = 0, y = 1, z = 2
bxaxis label 0 = "x", 1 = "y", 2 = "z"

Definition at line 139 of file cbuild_info.c.

◆ get_wyck_names()

void get_wyck_names ( space_group * spg,
int i,
int j )

get the name of this wyckoff position

Parameters
spgthe target space group
ithe wyckoff position id
jthe multiplicity for this wyckoff position

Definition at line 234 of file cbuild_info.c.

◆ set_so_info()

G_MODULE_EXPORT void set_so_info ( GtkComboBox * box,
gpointer data )

change space group origin

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 462 of file cbuild_info.c.

◆ set_wisible()

void set_wisible ( GtkTreeViewColumn * col,
GtkCellRenderer * renderer,
GtkTreeModel * mod,
GtkTreeIter * iter,
gpointer data )

show / hide cell renderer, if visible then add or not pango markup

Parameters
colthe tree view column
rendererthe cell renderer
modthe tree model
iterthe tree iter
datathe associated data pointer

Definition at line 343 of file cbuild_info.c.

◆ show_sg_info()

G_MODULE_EXPORT void show_sg_info ( GtkWidget * but,
gpointer data )

show space group information dialog callback

Parameters
butthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 498 of file cbuild_info.c.

◆ so_combo_tree()

GtkTreeModel * so_combo_tree ( space_group * spg)
extern

create the space group setting combo box tree model

Parameters
spgthe target space group

Definition at line 324 of file cbuild_edit.c.

Variable Documentation

◆ info_hsbox

GtkWidget* info_hsbox

Definition at line 67 of file cbuild_info.c.

◆ info_vs

GtkWidget* info_vs

Definition at line 68 of file cbuild_info.c.

◆ info_wyck_pts

GtkWidget* info_wyck_pts

Definition at line 70 of file cbuild_info.c.

◆ info_wyck_scroll

GtkWidget* info_wyck_scroll

Definition at line 71 of file cbuild_info.c.

◆ info_wyck_tree

GtkWidget* info_wyck_tree

Definition at line 72 of file cbuild_info.c.

◆ latt_info

gchar* latt_info[7]
extern

Definition at line 110 of file cbuild_edit.c.

◆ tmp_pos

gchar* tmp_pos
extern

Definition at line 72 of file cbuild_action.c.

◆ wnpos

gchar* wnpos[3] = {NULL, NULL, NULL}

Definition at line 74 of file cbuild_info.c.

◆ wypts_vbox

GtkWidget* wypts_vbox

Definition at line 69 of file cbuild_info.c.