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

Functions to create the 'shift cell center' tab for the cell edition window. More...

#include "cell_edit.h"
+ Include dependency graph for cell_shift.c:

Go to the source code of this file.

Functions

void modify_coordinates_in_lattice (project *this_proj, mat4_t *dlat, mat4_t *drec, int refresh, int density)
 modify atomic coordinates in lattice
 
void shift_it (vec3_t shift, int refresh, int proj)
 shift atomic coordinates
 
void adjust_it (int refresh, int proj)
 adjust atomic coordinates
 
void shift_has_changed (gpointer data, double val)
 shift atomic coordinates
 
G_MODULE_EXPORT void set_shift (GtkEntry *res, gpointer data)
 set atomic coordinates shift
 
G_MODULE_EXPORT gboolean scroll_shift_coord (GtkRange *range, GtkScrollType scroll, gdouble value, gpointer data)
 shift coordinates callback - scroll
 
G_MODULE_EXPORT void shift_coord (GtkRange *range, gpointer data)
 shift coordinates callback - range
 
GtkWidget * create_cell_entries (project *this_proj, int i)
 create the cell entry widgets
 
GtkWidget * create_shift_box (project *this_proj)
 create shift box widgets
 
void wrapping (glwin *view)
 wrapping atomic coordinates
 
G_MODULE_EXPORT void wrap_coord (GtkToggleButton *but, gpointer data)
 wrap atomic coordinates callback GTK3
 
GtkWidget * shift_center_tab (project *this_proj)
 create the shift cell center tab
 

Detailed Description

Functions to create the 'shift cell center' tab for the cell edition window.

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 cell_shift.c.

Function Documentation

◆ adjust_it()

void adjust_it ( int refresh,
int proj )

adjust atomic coordinates

Parameters
refreshrefresh rendering data
projthe project id

Definition at line 222 of file cell_shift.c.

◆ create_cell_entries()

GtkWidget * create_cell_entries ( project * this_proj,
int i )

create the cell entry widgets

Parameters
this_projthe target project
itarget parameter/action id (shift, cut, density)

Definition at line 402 of file cell_shift.c.

◆ create_shift_box()

GtkWidget * create_shift_box ( project * this_proj)

create shift box widgets

Parameters
this_projthe target project

Definition at line 479 of file cell_shift.c.

◆ modify_coordinates_in_lattice()

void modify_coordinates_in_lattice ( project * this_proj,
mat4_t * dlat,
mat4_t * drec,
int refresh,
int density )

modify atomic coordinates in lattice

Parameters
this_projthe target project
dlatlattice vectors matrix
drecreciprocal vectors matrix
refreshrefresh rendering data
density0= shift, 1 = density modification

Definition at line 65 of file cell_shift.c.

◆ scroll_shift_coord()

G_MODULE_EXPORT gboolean scroll_shift_coord ( GtkRange * range,
GtkScrollType scroll,
gdouble value,
gpointer data )

shift coordinates callback - scroll

Parameters
rangethe GtkRange sending the signal
scrollthe associated scroll type
valuethe range value
datathe associated data pointer

Definition at line 375 of file cell_shift.c.

◆ set_shift()

G_MODULE_EXPORT void set_shift ( GtkEntry * res,
gpointer data )

set atomic coordinates shift

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 358 of file cell_shift.c.

◆ shift_center_tab()

GtkWidget * shift_center_tab ( project * this_proj)

create the shift cell center tab

Parameters
this_projthe target project

Definition at line 560 of file cell_shift.c.

◆ shift_coord()

G_MODULE_EXPORT void shift_coord ( GtkRange * range,
gpointer data )

shift coordinates callback - range

Parameters
rangethe GtkRange sending the signal
datathe associated data pointer

Definition at line 389 of file cell_shift.c.

◆ shift_has_changed()

void shift_has_changed ( gpointer data,
double val )

shift atomic coordinates

Parameters
datathe associated data pointer
valthe shift value

Definition at line 259 of file cell_shift.c.

◆ shift_it()

void shift_it ( vec3_t shift,
int refresh,
int proj )

shift atomic coordinates

Parameters
shiftthe shift vector
refreshrefresh rendering data
projthe target project id

Definition at line 206 of file cell_shift.c.

◆ wrap_coord()

G_MODULE_EXPORT void wrap_coord ( GtkToggleButton * but,
gpointer data )

wrap atomic coordinates callback GTK3

Parameters
butthe GtkToggleButton sending the signal
datathe associated data pointer

Definition at line 545 of file cell_shift.c.

◆ wrapping()

void wrapping ( glwin * view)

wrapping atomic coordinates

Parameters
viewthe target glwin

Definition at line 498 of file cell_shift.c.