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

functions to handle the visualization events when creating a classical force field More...

#include "dlp_field.h"
#include "project.h"
#include "glwindow.h"
#include "glview.h"
+ Include dependency graph for dlp_viz.c:

Go to the source code of this file.

Functions

void update_selection_list (atom_selection *at_list, atom *at, gboolean add)
 update the selection list adding or removing an atom
 
void init_default_shaders (glwin *view)
 re-initialize the default OpenGL shaders
 
void field_selection (int i, int viz, int lab, int aid)
 select / unselect atom
 
void viz_fragment (field_molecule *fmol, int id, int viz)
 show / hide fragment
 
void field_unselect_all ()
 unselect all atoms
 
gboolean in_bond (int at, int bd[2])
 is atom at in bond bd
 
void visualize_bonds (int viz, int bid, field_atom *at, field_atom *bt)
 show / hide bond / bond restraint
 
void visualize_angles (int viz, int aid, field_atom *at, field_atom *bt, field_atom *ct)
 show / hide angle / angle restraint
 
void visualize_dihedrals (int viz, int did, field_atom *at, field_atom *bt, field_atom *ct, field_atom *dt)
 show / hide dihedral / dihedral restraint
 
void visualize_imp_inv (int viz, int dih, int iid, field_atom *at, field_atom *bt, field_atom *ct, field_atom *dt)
 show / hide improper or inversion
 
void visualize_body (int viz, int bd, field_nth_body *body)
 show / hide non bonded interaction
 
int get_field_objects (int id, int jd)
 get the number of this type of field object
 
void select_object (int id, int jd, int kd)
 select structural element
 
void visualize_single_struct (int id, int jd, int kd, int *ids)
 visualize single structural element
 
void visualize_object (int id, int jd, int kd)
 visualize object and update OpenGL rendering
 
void check_to_visualize_properties_for_this_field_mol (int pid, int mol)
 check if rendering is required for object in molecule
 
void check_to_visualize_properties (int pid)
 check if it is requried to update rendering
 
void update_mol_tree (int a, int b)
 update the field molecule tree model
 
G_MODULE_EXPORT void on_toggle_visualize_or_select_object (GtkCellRendererToggle *cell_renderer, gchar *string_path, gpointer data)
 on visualize force field object toggle callback
 
gboolean show_field_object (int id, int jd, int kd)
 is the field object visible ?
 
G_MODULE_EXPORT void visualize_or_select_all_elements (GtkTreeViewColumn *col, gpointer data)
 select all element(s) in the column for visualization
 

Variables

tint toviz
 
int is_special [MAXDATA][11]
 

Detailed Description

functions to handle the visualization events when creating a classical force field

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

Function Documentation

◆ check_to_visualize_properties()

void check_to_visualize_properties ( int pid)

check if it is requried to update rendering

Parameters
pidthe page number in the assistant

Definition at line 768 of file dlp_viz.c.

◆ check_to_visualize_properties_for_this_field_mol()

void check_to_visualize_properties_for_this_field_mol ( int pid,
int mol )

check if rendering is required for object in molecule

Parameters
pidthe type of field object
molthe target field molecule

Definition at line 737 of file dlp_viz.c.

◆ field_selection()

void field_selection ( int i,
int viz,
int lab,
int aid )

select / unselect atom

Parameters
ithe atom id in the model
vizvisualization status (0= hide, 1 = show)
labthe value to display for the label
aidthe value to use for the color

Definition at line 91 of file dlp_viz.c.

◆ field_unselect_all()

void field_unselect_all ( )

unselect all atoms

Definition at line 130 of file dlp_viz.c.

◆ get_field_objects()

int get_field_objects ( int id,
int jd )

get the number of this type of field object

Parameters
idthe tyoe of field object
jdthe field molecule id

Definition at line 367 of file dlp_viz.c.

◆ in_bond()

gboolean in_bond ( int at,
int bd[2] )
extern

is atom at in bond bd

Parameters
atthe target atom id
bdthe bond atoms id

Definition at line 892 of file dlp_init.c.

◆ init_default_shaders()

void init_default_shaders ( glwin * view)
extern

re-initialize the default OpenGL shaders

Parameters
viewthe target glwin

Definition at line 729 of file ogl_shading.c.

◆ on_toggle_visualize_or_select_object()

G_MODULE_EXPORT void on_toggle_visualize_or_select_object ( GtkCellRendererToggle * cell_renderer,
gchar * string_path,
gpointer data )

on visualize force field object toggle callback

Parameters
cell_rendererthe GtkCellRendererToggle sending the signal
string_paththe path in the tree store
datathe associated data pointer

Definition at line 830 of file dlp_viz.c.

◆ select_object()

void select_object ( int id,
int jd,
int kd )

select structural element

Parameters
idthe type of structural element
jdthe object id, if any
kdthe field molecule id

Definition at line 425 of file dlp_viz.c.

◆ show_field_object()

gboolean show_field_object ( int id,
int jd,
int kd )

is the field object visible ?

Parameters
idthe type of object
jdthe object id, if any
kdthe field molecule id, if any

Definition at line 973 of file dlp_viz.c.

◆ update_mol_tree()

void update_mol_tree ( int a,
int b )

update the field molecule tree model

Parameters
a0 = show molecule id, 1 = show atom id in fragment
bthe target field molecule id

Definition at line 787 of file dlp_viz.c.

◆ update_selection_list()

void update_selection_list ( atom_selection * at_list,
atom * at,
gboolean add )
extern

update the selection list adding or removing an atom

Parameters
at_listtarget atom selection
atatom
addadd or remove (1/0)

Definition at line 445 of file selection.c.

◆ visualize_angles()

void visualize_angles ( int viz,
int aid,
field_atom * at,
field_atom * bt,
field_atom * ct )

show / hide angle / angle restraint

Parameters
vizvisualization status (0 = hide, 1 = show)
aidthe id of the structural element
at1st field atom
bt2nd field atom
ct3rd field atom

Definition at line 185 of file dlp_viz.c.

◆ visualize_body()

void visualize_body ( int viz,
int bd,
field_nth_body * body )

show / hide non bonded interaction

Parameters
vizvisualization status (0 = hide, 1 = show)
bdthe type of non bonded interaction
bodythe target non bonded interaction

Definition at line 341 of file dlp_viz.c.

◆ visualize_bonds()

void visualize_bonds ( int viz,
int aid,
field_atom * at,
field_atom * bt )

show / hide bond / bond restraint

Parameters
vizvisualization status (0 = hide, 1 = show)
aidthe id of the structural element
at1st field atom
bt2nd field atom

Definition at line 151 of file dlp_viz.c.

◆ visualize_dihedrals()

void visualize_dihedrals ( int viz,
int did,
field_atom * at,
field_atom * bt,
field_atom * ct,
field_atom * dt )

show / hide dihedral / dihedral restraint

Parameters
vizvisualization status (0 = hide, 1 = show)
didthe id of the structural element
at1st field atom
bt2nd field atom
ct3rd field atom
dt4th field atom

Definition at line 230 of file dlp_viz.c.

◆ visualize_imp_inv()

void visualize_imp_inv ( int viz,
int dih,
int iid,
field_atom * at,
field_atom * bt,
field_atom * ct,
field_atom * dt )

show / hide improper or inversion

Parameters
vizvisualization status (0 = hide, 1 = show)
dih6 = improper, 7 = inversion
iidthe id of the structural element
at1st field atom
bt2nd field atom
ct3rd field atom
dt4th field atom

Definition at line 285 of file dlp_viz.c.

◆ visualize_object()

void visualize_object ( int id,
int jd,
int kd )

visualize object and update OpenGL rendering

Parameters
idthe type of object
jdthe molecule id, if any
kdthe object id, if any

Definition at line 552 of file dlp_viz.c.

◆ visualize_or_select_all_elements()

G_MODULE_EXPORT void visualize_or_select_all_elements ( GtkTreeViewColumn * col,
gpointer data )

select all element(s) in the column for visualization

Parameters
colthe target GtkTreeViewColumn
datathe associated data pointer

Definition at line 1024 of file dlp_viz.c.

◆ visualize_single_struct()

void visualize_single_struct ( int id,
int jd,
int kd,
int * ids )

visualize single structural element

Parameters
idthe type of structural element
jdthe object id, if any
kdthe field molecule id
idsthe list of atom id in the fragment

Definition at line 488 of file dlp_viz.c.

◆ viz_fragment()

void viz_fragment ( field_molecule * fmol,
int id,
int viz )

show / hide fragment

Parameters
fmolthe target field molecule
idthe fragment id
vizvisualization status (0 = hide, 1 = show)

Definition at line 115 of file dlp_viz.c.

Variable Documentation

◆ is_special

int is_special[MAXDATA][11]
extern

Definition at line 883 of file dlp_field.c.

◆ toviz

tint toviz

Definition at line 75 of file dlp_viz.c.