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 (const gchar *uri)
void gtk_chem3d_viewer_set_uri_with_mime_type (GtkChem3DViewer *viewer, const gchar *uri, const gchar *mime_type)
void gtk_chem3d_viewer_set_uri (GtkChem3DViewer *viewer, const gchar *uri)
void gtk_chem3d_viewer_set_data (GtkChem3DViewer *viewer, const gchar *data, const gchar *mime_type)
void gtk_chem3d_viewer_print (GtkChem3DViewer *viewer, GnomePrintContext *pc, gdouble width, gdouble height)


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 49 of file gtkchem3dviewer.h.


Function Documentation

GtkWidget* gtk_chem3d_viewer_new const 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_print GtkChem3DViewer viewer,
GnomePrintContext *  pc,
gdouble  width,
gdouble  height
 

Parameters:
viewer: a pointer to GtkChem3DViewer widget.
pc: a pointer to the GnomePrintContext.
width: the width of the rectangle.
height: the height of the rectangle.
Prints the scene to a GnomePrintContext using a 300 dpi resolution.

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 mime_type of the data. 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,
const gchar *  uri
 

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

void gtk_chem3d_viewer_set_uri_with_mime_type GtkChem3DViewer viewer,
const gchar *  uri,
const gchar *  mime_type
 

Parameters:
viewer: a pointer to GtkChem3DViewer widget.
uri: the URI of the file containing the molecular structure to display. Any file supported by
mime_type: the mime_type of the data. Any type 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 Wed Feb 8 09:59:43 2006 for The Gnome Chemistry Utils by  doxygen 1.4.1