<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>The Gnome Chemistry Utils: testgcuchem3dviewer.c File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">The Gnome Chemistry Utils  <span id="projectnumber">0.14.2</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1.2 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_59425e443f801f1f2fd8bbe4959a3ccf.html">tests</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">testgcuchem3dviewer.c File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include "config.h"</code><br/> <code>#include <<a class="el" href="chemistry_8h_source.html">gcu/chemistry.h</a>></code><br/> <code>#include <<a class="el" href="gcuchem3dviewer_8h_source.html">gcugtk/gcuchem3dviewer.h</a>></code><br/> <code>#include <glib.h></code><br/> <code>#include <gtk/gtk.h></code><br/> <code>#include <stdio.h></code><br/> </div> <p><a href="testgcuchem3dviewer_8c_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="testgcuchem3dviewer_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr> </table> <a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A simple sample of the use of the <a class="el" href="structGcuChem3DViewer.html">GcuChem3DViewer</a> widget. </p> <p>Definition in file <a class="el" href="testgcuchem3dviewer_8c_source.html">testgcuchem3dviewer.c</a>.</p> </div><h2>Function Documentation</h2> <a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int main </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>argc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"><em>argv</em>[] </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p><em>main</em> function of the test program. It fulfills the following operations, in order:</p> <ul> <li>initialize Gtk;</li> <li>loads atomic radii (the 3D viewer needs the van der Waals radii).</li> <li>build the window embedding the sample <a class="el" href="structGcuChem3DViewer.html">GcuChem3DViewer</a>.</li> <li>build the <a class="el" href="structGcuChem3DViewer.html">GcuChem3DViewer</a> with either a file from the command line or the default methane.xyz provided with the sources.</li> <li>shows everything and enter <em>gtk_main()</em>. </li> </ul> <p>Definition at line <a class="el" href="testgcuchem3dviewer_8c_source.html#l00043">43</a> of file <a class="el" href="testgcuchem3dviewer_8c_source.html">testgcuchem3dviewer.c</a>.</p> <p>References <a class="el" href="gcuchem3dviewer_8h.html#a0282bbb9c441888160613e66da28d273">gcu_chem3d_viewer_new()</a>, and <a class="el" href="chemistry_8h.html#aabec300016d5a3d7a3b5574ff3ce9a37">gcu_element_load_databases()</a>.</p> </div> </div> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Thu Mar 14 2013 17:34:29 for The Gnome Chemistry Utils by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1.2 </small></address> </body> </html>