atomes 1.2.1
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 "preferences.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_axis_parameter (GtkEntry *res, gpointer data)
 update axis parameter callback
 
G_MODULE_EXPORT void update_axis_length (GtkEntry *res, gpointer data)
 update axis length 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 (ColRGBA axcol[3], axis_edition *axis_win)
 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 gboolean on_axis_delete (GtkWidget *widg, GdkEvent *event, gpointer data)
 axis window delete event - GTK3
 
G_MODULE_EXPORT void axis_advanced (GtkWidget *widg, gpointer data)
 create the axis advanced parameters window
 

Variables

gchar * axis_symbols [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"}
 
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}}
 
gboolean from_box_or_axis
 

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 68 of file w_axis.c.

◆ AXIS_TEMPLATES

#define AXIS_TEMPLATES   5

Definition at line 69 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 sensitivity

Definition at line 211 of file w_axis.c.

◆ axis_advanced()

G_MODULE_EXPORT void axis_advanced ( GtkWidget * widg,
gpointer data )

create the axis advanced parameters window

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 786 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 624 of file w_axis.c.

◆ init_axis_colors()

void init_axis_colors ( ColRGBA axcol[3],
axis_edition * axis_win )

initialize axis colors

Parameters
axcolthe target axis colors
viewthe target axis_edition data structure

Definition at line 500 of file w_axis.c.

◆ on_axis_delete()

G_MODULE_EXPORT gboolean on_axis_delete ( GtkWidget * widg,
GdkEvent * event,
gpointer data )

axis window delete event - GTK3

Parameters
widgthe GtkWidget sending the signal
eventthe GdkEvent triggering the signal
datathe associated data pointer

Definition at line 768 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 653 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 600 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 270 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 691 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 667 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 234 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 728 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 250 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 403 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 346 of file w_axis.c.

◆ update_axis_length()

G_MODULE_EXPORT void update_axis_length ( GtkEntry * res,
gpointer data )

update axis length callback

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 166 of file w_axis.c.

◆ update_axis_parameter()

G_MODULE_EXPORT void update_axis_parameter ( GtkEntry * res,
gpointer data )

update axis parameter callback

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 95 of file w_axis.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 533 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 437 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 73 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 75 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 76 of file w_axis.c.

◆ axis_style

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

Definition at line 72 of file w_axis.c.

◆ axis_symbols

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

Definition at line 71 of file w_axis.c.

◆ from_box_or_axis

gboolean from_box_or_axis
extern

Definition at line 52 of file w_box.c.