Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

gtkchem3dviewer.h File Reference

Go to the source code of this file.

Enumerations

enum  Display3DMode

Functions

GtkWidget * gtk_chem3d_viewer_new (gchar *uri)
void gtk_chem3d_viewer_set_uri (GtkChem3DViewer *viewer, gchar *uri)
void gtk_chem3d_viewer_set_data (GtkChem3DViewer *viewer, const gchar *data, const gchar *mime_type)


Detailed Description

Declaration of the GtkChem3DViewer widget.

Definition in file gtkchem3dviewer.h.


Enumeration Type Documentation

enum Display3DMode
 

3D display mode. Possible values are:

  • BALL_AND_STICK: use ball and stick representation; atoms are represented by spheres with a radius equal to 20% of their van der Waals radius and bonds are displayed as cylinders.
  • SPACEFILL: use space filling representation; atoms are represented by spheres with a radius equal their van der Waals radius; bonds are not displayed.

Definition at line 48 of file gtkchem3dviewer.h.


Function Documentation

GtkWidget* gtk_chem3d_viewer_new gchar *  uri  ) 
 

Parameters:
uri: the URI of the file containing the molecular structure to display. Any file supported by OpenBabel may be used.
Creates a GtkChem3DViewer widget and fills it with the data from uri. If uri is NULL, the widget will be empty.

void gtk_chem3d_viewer_set_data GtkChem3DViewer viewer,
const gchar *  data,
const gchar *  mime_type
 

Parameters:
viewer: a pointer to GtkChem3DViewer widget.
data: a pointer to the raw data representing a serialized version of molecule to display
mime_type: the URI of the representation of the molecular structure to display. Any type supported by OpenBabel may be used.
Changes the molecule displayed by the one described in the data. Nothing happens if data or mime-type is NULL.

void gtk_chem3d_viewer_set_uri GtkChem3DViewer viewer,
gchar *  uri
 

Parameters:
viewer: a pointer to GtkChem3DViewer widget.
uri: the URI of the file containing the molecular structure to display. Any file supported by OpenBabel may be used.
Changes the molecule displayed by the one described in the uri. Nothing happens if uri is NULL.


Generated on Mon Jan 2 13:13:15 2006 for The Gnome Chemistry Utils by  doxygen 1.4.1