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

Functions to create the axis parameters edition window. More...

#include "global.h"
#include "interface.h"
#include "glview.h"
#include "glwindow.h"
+ Include dependency graph for w_axis.c:

Go to the source code of this file.

Macros

#define AXIS_STYLES   2
 
#define AXIS_TEMPLATES   5
 

Functions

G_MODULE_EXPORT void set_labels_render (GtkWidget *widg, gpointer data)
 
G_MODULE_EXPORT void set_labels_font (GtkFontButton *fontb, gpointer data)
 change label(s) font
 
G_MODULE_EXPORT void set_labels_scale (GtkToggleButton *but, gpointer data)
 change label(s) scale - toggle callback GTK3
 
G_MODULE_EXPORT void update_bond_parameter (GtkEntry *res, gpointer data)
 update bond parameter callback
 
void activate_pos_box (glwin *view, gboolean val)
 update axis position data
 
G_MODULE_EXPORT void set_axis_template (GtkComboBox *box, gpointer data)
 set axis position callback
 
G_MODULE_EXPORT void set_axis_combo_style (GtkComboBox *box, gpointer data)
 set axis style callback
 
G_MODULE_EXPORT void set_show_axis_toggle (GtkToggleButton *but, gpointer data)
 show / hide axis callback GTK3
 
G_MODULE_EXPORT void use_axis_default_positions (GtkToggleButton *but, gpointer data)
 use axis default colors callback GTK3
 
void init_axis_colors (glwin *view)
 initialize axis colors
 
G_MODULE_EXPORT void use_axis_default_colors (GtkToggleButton *but, gpointer data)
 use axis default color callback GTK3
 
G_MODULE_EXPORT void set_axis_color (GtkColorChooser *colob, gpointer data)
 change axis color
 
void axis_position_has_changed (gpointer data, double v)
 change axis position
 
G_MODULE_EXPORT gboolean scroll_set_axis_position (GtkRange *range, GtkScrollType scroll, gdouble value, gpointer data)
 change axis position - scroll callback
 
G_MODULE_EXPORT void set_axis_position (GtkRange *range, gpointer data)
 change axis position - range callback
 
G_MODULE_EXPORT void set_axis_labels (GtkToggleButton *but, gpointer data)
 set axis labels callback GTK3
 
G_MODULE_EXPORT void set_axis_title (GtkEntry *entry, gpointer data)
 set axis title callback
 
G_MODULE_EXPORT void axis_advanced (GtkWidget *widg, gpointer data)
 create the axis advanced parameters window callback GTK3
 

Variables

gchar * axis [3] = {"X", "Y", "Z"}
 
gchar * axis_style [AXIS_STYLES] = {"Wireframe", "Cylinders"}
 
gchar * al [3] = {"% of the window width", "% of the window height", "% of the window depth"}
 
gchar * axis_template [AXIS_TEMPLATES] = {"Top Right Corner *", "Top Left Corner *", "Bottom Right Corner *", "Bottom Left Corner *", "Center **"}
 
double axis_init_color [3][3] = {{0.0, 0.0, 1.0},{0.0, 1.0, 0.0},{1.0, 0.0, 0.0}}
 
double axis_range [3][2] = {{0.0,100.0}, {0.0, 100.0}, {0.0, 100.0}}
 
GtkWidget * axis_data = NULL
 
GtkWidget * axis_position_box
 
GtkWidget * templates
 
GtkWidget * styles = NULL
 
GtkWidget * width_box
 
GtkWidget * radius_box
 
GtkWidget * axis_color_title [3]
 
GtkWidget * ax_title [3]
 

Detailed Description

Functions to create the axis parameters 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 w_axis.c.

Macro Definition Documentation

◆ AXIS_STYLES

#define AXIS_STYLES   2

Definition at line 62 of file w_axis.c.

◆ AXIS_TEMPLATES

#define AXIS_TEMPLATES   5

Definition at line 63 of file w_axis.c.

Function Documentation

◆ activate_pos_box()

void activate_pos_box ( glwin * view,
gboolean val )

update axis position data

Parameters
viewthe target glwin
valtemplate widget sensitivy

Definition at line 99 of file w_axis.c.

◆ axis_advanced()

G_MODULE_EXPORT void axis_advanced ( GtkWidget * widg,
gpointer data )

create the axis advanced parameters window callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 497 of file w_axis.c.

◆ axis_position_has_changed()

void axis_position_has_changed ( gpointer data,
double v )

change axis position

Parameters
datathe associated data pointer
vthe new value

Definition at line 384 of file w_axis.c.

◆ init_axis_colors()

void init_axis_colors ( glwin * view)

initialize axis colors

Parameters
viewthe target glwin

Definition at line 296 of file w_axis.c.

◆ scroll_set_axis_position()

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

change axis position - scroll callback

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

Definition at line 403 of file w_axis.c.

◆ set_axis_color()

G_MODULE_EXPORT void set_axis_color ( GtkColorChooser * colob,
gpointer data )

change axis color

Parameters
colobthe GtkColorChooser sending the signal
datathe associated data pointer

Definition at line 367 of file w_axis.c.

◆ set_axis_combo_style()

G_MODULE_EXPORT void set_axis_combo_style ( GtkComboBox * box,
gpointer data )

set axis style callback

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 144 of file w_axis.c.

◆ set_axis_labels()

G_MODULE_EXPORT void set_axis_labels ( GtkToggleButton * but,
gpointer data )

set axis labels callback GTK3

Parameters
butthe GtkToggleButton sending the signal
datathe associated data pointer

Definition at line 441 of file w_axis.c.

◆ set_axis_position()

G_MODULE_EXPORT void set_axis_position ( GtkRange * range,
gpointer data )

change axis position - range callback

Parameters
rangethe GtkRange sending the signal
datathe associated data pointer

Definition at line 417 of file w_axis.c.

◆ set_axis_template()

G_MODULE_EXPORT void set_axis_template ( GtkComboBox * box,
gpointer data )

set axis position callback

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 122 of file w_axis.c.

◆ set_axis_title()

G_MODULE_EXPORT void set_axis_title ( GtkEntry * entry,
gpointer data )

set axis title callback

Parameters
entrythe GtkEntry sending the signal
datathe associated data pointer

Definition at line 466 of file w_axis.c.

◆ set_labels_font()

G_MODULE_EXPORT void set_labels_font ( GtkFontButton * fontb,
gpointer data )
extern

change label(s) font

Parameters
fontbthe GtkFontButton sending the signal
datathe associated data pointer

Definition at line 232 of file w_labels.c.

◆ set_labels_render()

G_MODULE_EXPORT void set_labels_render ( GtkWidget * widg,
gpointer data )
extern

◆ set_labels_scale()

G_MODULE_EXPORT void set_labels_scale ( GtkToggleButton * but,
gpointer data )
extern

change label(s) scale - toggle callback GTK3

Parameters
butthe GtkToggleButton sending the signal
datathe associated data pointer

Definition at line 356 of file w_labels.c.

◆ set_show_axis_toggle()

G_MODULE_EXPORT void set_show_axis_toggle ( GtkToggleButton * but,
gpointer data )

show / hide axis callback GTK3

Parameters
butthe GtkToggleButton sending the signal
datathe associated data pointer

Definition at line 193 of file w_axis.c.

◆ update_bond_parameter()

G_MODULE_EXPORT void update_bond_parameter ( GtkEntry * res,
gpointer data )
extern

update bond parameter callback

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 59 of file w_bonds.c.

◆ use_axis_default_colors()

G_MODULE_EXPORT void use_axis_default_colors ( GtkToggleButton * but,
gpointer data )

use axis default color callback GTK3

Parameters
butthe GtkToggleButton sending the signal
datathe associated data pointer

Definition at line 329 of file w_axis.c.

◆ use_axis_default_positions()

G_MODULE_EXPORT void use_axis_default_positions ( GtkToggleButton * but,
gpointer data )

use axis default colors callback GTK3

Parameters
butthe GtkToggleButton sending the signal
datathe associated data pointer

Definition at line 251 of file w_axis.c.

Variable Documentation

◆ al

gchar* al[3] = {"% of the window width", "% of the window height", "% of the window depth"}

Definition at line 67 of file w_axis.c.

◆ ax_title

GtkWidget* ax_title[3]

Definition at line 89 of file w_axis.c.

◆ axis

gchar* axis[3] = {"X", "Y", "Z"}

Definition at line 65 of file w_axis.c.

◆ axis_color_title

GtkWidget* axis_color_title[3]

Definition at line 88 of file w_axis.c.

◆ axis_data

GtkWidget* axis_data = NULL

Definition at line 82 of file w_axis.c.

◆ axis_init_color

double axis_init_color[3][3] = {{0.0, 0.0, 1.0},{0.0, 1.0, 0.0},{1.0, 0.0, 0.0}}

Definition at line 70 of file w_axis.c.

◆ axis_position_box

GtkWidget* axis_position_box

Definition at line 83 of file w_axis.c.

◆ axis_range

double axis_range[3][2] = {{0.0,100.0}, {0.0, 100.0}, {0.0, 100.0}}

Definition at line 71 of file w_axis.c.

◆ axis_style

gchar* axis_style[AXIS_STYLES] = {"Wireframe", "Cylinders"}

Definition at line 66 of file w_axis.c.

◆ axis_template

gchar* axis_template[AXIS_TEMPLATES] = {"Top Right Corner *", "Top Left Corner *", "Bottom Right Corner *", "Bottom Left Corner *", "Center **"}

Definition at line 68 of file w_axis.c.

◆ radius_box

GtkWidget* radius_box

Definition at line 87 of file w_axis.c.

◆ styles

GtkWidget* styles = NULL

Definition at line 85 of file w_axis.c.

◆ templates

GtkWidget* templates

Definition at line 84 of file w_axis.c.

◆ width_box

GtkWidget* width_box

Definition at line 86 of file w_axis.c.