The Gnome Chemistry Utils  0.14.0
Functions
testgcuchem3dviewer.c File Reference
#include "config.h"
#include <gcu/chemistry.h>
#include <gcugtk/gcuchem3dviewer.h>
#include <glib.h>
#include <gtk/gtk.h>
#include <stdio.h>

Go to the source code of this file.

Functions

int main (int argc, char *argv[])

Detailed Description

A simple sample of the use of the GcuChem3DViewer widget.

Definition in file testgcuchem3dviewer.c.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

main function of the test program. It fulfills the following operations, in order:

  • initialize Gtk;
  • loads atomic radii (the 3D viewer needs the van der Waals radii).
  • build the window embedding the sample GcuChem3DViewer.
  • build the GcuChem3DViewer with either a file from the command line or the default methane.xyz provided with the sources.
  • shows everything and enter gtk_main().

Definition at line 43 of file testgcuchem3dviewer.c.

References gcu_chem3d_viewer_new(), and gcu_element_load_databases().