Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > f37f2c0b149d5391818dc5157943cda0 > files > 242

gnome-chemistry-utils-devel-0.10.8-3mdv2010.0.i586.rpm

<!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"/>
<title>The Gnome Chemistry Utils: gcu::Object Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespacegcu.html">gcu</a>::<a class="el" href="classgcu_1_1Object.html">Object</a>
  </div>
</div>
<div class="contents">
<h1>gcu::Object Class Reference</h1><!-- doxytag: class="gcu::Object" -->
<p><code>#include &lt;<a class="el" href="object_8h_source.html">gcu/object.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for gcu::Object:</div>
<div class="dynsection">
 <div class="center">
  <img src="classgcu_1_1Object.gif" usemap="#gcu::Object_map" alt=""/>
  <map id="gcu::Object_map" name="gcu::Object_map">
<area href="classgcp_1_1Arrow.html" alt="gcp::Arrow" shape="rect" coords="149,56,288,80"/>
<area href="classgcp_1_1DocPropDlg.html" alt="gcp::DocPropDlg" shape="rect" coords="149,112,288,136"/>
<area href="classgcp_1_1Electron.html" alt="gcp::Electron" shape="rect" coords="149,168,288,192"/>
<area href="classgcp_1_1Mesomer.html" alt="gcp::Mesomer" shape="rect" coords="149,224,288,248"/>
<area href="classgcp_1_1Mesomery.html" alt="gcp::Mesomery" shape="rect" coords="149,280,288,304"/>
<area href="classgcp_1_1NewFileDlg.html" alt="gcp::NewFileDlg" shape="rect" coords="149,336,288,360"/>
<area href="classgcp_1_1PrefsDlg.html" alt="gcp::PrefsDlg" shape="rect" coords="149,392,288,416"/>
<area href="classgcp_1_1Reactant.html" alt="gcp::Reactant" shape="rect" coords="149,448,288,472"/>
<area href="classgcp_1_1Reaction.html" alt="gcp::Reaction" shape="rect" coords="149,504,288,528"/>
<area href="classgcp_1_1ReactionOperator.html" alt="gcp::ReactionOperator" shape="rect" coords="149,560,288,584"/>
<area href="classgcp_1_1ReactionProp.html" alt="gcp::ReactionProp" shape="rect" coords="149,616,288,640"/>
<area href="classgcp_1_1ReactionStep.html" alt="gcp::ReactionStep" shape="rect" coords="149,672,288,696"/>
<area href="classgcp_1_1TextObject.html" alt="gcp::TextObject" shape="rect" coords="149,728,288,752"/>
<area href="classgcu_1_1Atom.html" alt="gcu::Atom" shape="rect" coords="149,784,288,808"/>
<area href="classgcu_1_1Bond.html" alt="gcu::Bond" shape="rect" coords="149,840,288,864"/>
<area href="classgcu_1_1Chain.html" alt="gcu::Chain" shape="rect" coords="149,896,288,920"/>
<area href="classgcu_1_1Document.html" alt="gcu::Document" shape="rect" coords="149,952,288,976"/>
<area href="classgcu_1_1Molecule.html" alt="gcu::Molecule" shape="rect" coords="149,1008,288,1032"/>
</map>
 </div>
</div>

<p><a href="classgcu_1_1Object-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a6f15e766fdfb066008bd4b0779574549">Object</a> (<a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> Id=OtherType)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a3e575300e517594b0c2c161d6e704352">~Object</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a9c900a7a382cad4a995edbb10b8f179d">GetType</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#ac45cdb13cf013066a3704054c9d06ed0">SetId</a> (gchar const *Id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">gchar const *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#aa5442c94fdeb2a71e0e3e1f2250f28dc">GetId</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#ad054f1ae4f0cd697765aa4d2007521b2">AddChild</a> (<a class="el" href="classgcu_1_1Object.html">Object</a> *object)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#adf610a8402000e9f9ae9ad0135c1d7da">GetMolecule</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#adaba7d20336b8036b6bfb7ef3884880a">GetReaction</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a841968632d00e5d879694ee84737225b">GetGroup</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Document.html">Document</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a274432165e22fa89a375eded192631db">GetDocument</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a158be0361aaadca1d03fdb5b5d3089b2">GetParentOfType</a> (<a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> Id) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a026b22b02b09f8f9f535197f2d936c07">GetChild</a> (const gchar *Id) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a5fe8cfbfe83645c292f8895aba4a91d0">GetFirstChild</a> (std::map&lt; std::string, <a class="el" href="classgcu_1_1Object.html">Object</a> * &gt;::iterator &amp;i)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a70ff8a33f72e424f3c39b3d0edbe9903">GetNextChild</a> (std::map&lt; std::string, <a class="el" href="classgcu_1_1Object.html">Object</a> * &gt;::iterator &amp;i)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a361a06781c6a927f6aaa1e4e575ae9dd">GetDescendant</a> (const gchar *Id) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#abacb2c2002726a3237ffbd0e50e3df52">GetParent</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a0ffe1f48151c92f167eeec303277e45c">SetParent</a> (<a class="el" href="classgcu_1_1Object.html">Object</a> *Parent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual xmlNodePtr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#aad462441e79fbd93e158f8294a198d11">Save</a> (xmlDocPtr xml) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#aa3ee33c25154d8e7bbe1e39de970c489">Load</a> (xmlNodePtr node)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#af5505430c421604ff7e26e4414197fbc">Move</a> (double x, double y, double z=0.)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a69ad6edf7d50950b036f09d9ff86f849">Transform2D</a> (<a class="el" href="classgcu_1_1Matrix2D.html">Matrix2D</a> &amp;m, double x, double y)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a07de41cb137a650b51920d6186fc82d7">SaveChildren</a> (xmlDocPtr xml, xmlNodePtr node) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a5f99b290d7e48c38738342dfc984865d">SaveId</a> (xmlNodePtr node) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">xmlNodePtr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#ad533d866f1478a972a1896499e5659a5">GetNodeByProp</a> (xmlNodePtr node, char const *Property, char const *Id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">xmlNodePtr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#aa19f11cca83189a955f0a7bf2919562b">GetNextNodeByProp</a> (xmlNodePtr node, char const *Property, char const *Id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">xmlNodePtr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a4e8712098d673c958fb0c72488058f80">GetNodeByName</a> (xmlNodePtr node, char const *Name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">xmlNodePtr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a2dc10bf48d3ebfe86853cace21e9abf2">GetNextNodeByName</a> (xmlNodePtr node, char const *Name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#afcd1e6f8bc15be563bd33429757d9d21">Add</a> (GtkWidget *w) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#af2fffc10644e8cb8a18da68c8e18e24c">Update</a> (GtkWidget *w) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a9a751a51b887de4a4035ff1927c2aede">SetSelected</a> (GtkWidget *w, int state)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a28f682a2891b17ae57c5f346c95d6f50">HasChildren</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a5e3d6fbdc8b10a9dbf43de2c052fff05">GetChildrenNumber</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#aa47c38061c6a2e51947d89c86fbae630">GetAtomAt</a> (double x, double y, double z=0.)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#ae43451845b5d92a6b6618b1a63cd2056">Build</a> (std::list&lt; <a class="el" href="classgcu_1_1Object.html">Object</a> * &gt; &amp;Children)  throw (std::invalid_argument)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#aedeec6e6b66e1a35e6d2f3ef75c94a09">GetYAlign</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a6970989309647db7986c1bb2bcee8600">BuildContextualMenu</a> (GtkUIManager *UIManager, <a class="el" href="classgcu_1_1Object.html">Object</a> *object, double x, double y)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#acf16b429a6875e5620fa8051446ef34c">EmitSignal</a> (<a class="el" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">SignalId</a> Signal)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a1ad183ecf7e5b5c42db100da03221e46">OnSignal</a> (<a class="el" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">SignalId</a> Signal, <a class="el" href="classgcu_1_1Object.html">Object</a> *Child)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a8b4da97be50a4ceea941ab8aa8ece825">Lock</a> (bool state=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a4094e3d8cf58a6f9de9cb6c6b6fed8c8">IsLocked</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a79e87eb91afb57ebf188fdc3753cba7d">GetFirstLink</a> (std::set&lt; <a class="el" href="classgcu_1_1Object.html">Object</a> * &gt;::iterator &amp;i)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a61b227220c2b831b7196d2bd61201bdc">GetNextLink</a> (std::set&lt; <a class="el" href="classgcu_1_1Object.html">Object</a> * &gt;::iterator &amp;i)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a606a257c41cd9cc177c98958fdf2ae3d">Unlink</a> (<a class="el" href="classgcu_1_1Object.html">Object</a> *object)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a786610ff1992e4aa1acff883b5479ec7">OnUnlink</a> (<a class="el" href="classgcu_1_1Object.html">Object</a> *object)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a97106b6ec695ac946d0a1d04293eef79">GetPossibleAncestorTypes</a> (std::set&lt; <a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> &gt; &amp;types) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a47862fe83b1c3739ee37b8af81550644">SetProperty</a> (unsigned property, char const *value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a9f612121600c791abbee16bb539975d7">GetProperty</a> (unsigned property) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#af972c30c9990923c34c54754654c3e72">OnLoaded</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a01ea0147ad675e139ddea7aaa2af503c">SetDirty</a> (bool dirty=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#adc268971d60003c8b03570b657ea22dd">GetDirty</a> (void)</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#aea6734ca6bde8ae3e0788db43928f42e">AddType</a> (std::string TypeName, <a class="el" href="classgcu_1_1Object.html">Object</a> *(*CreateFunc)(), <a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> id=OtherType)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a0d3837f66eccae5ce73573ca95930dbc">CreateObject</a> (const std::string &amp;TypeName, <a class="el" href="classgcu_1_1Object.html">Object</a> *parent=NULL)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a6038f7f7c0f58cd1aa12bd8237ac1024">GetTypeId</a> (const std::string &amp;Name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a9e57005d5129e341ce3dcd4d3c188eaf">GetTypeName</a> (<a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> Id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a47d2dd181c9934ab4671c526a251295f">AddMenuCallback</a> (<a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> Id, <a class="el" href="namespacegcu.html#a557c44b0c90f4543aae6f9b1a9b00616">BuildMenuCb</a> cb)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a3eb4fd4787f224f5e7e3e5f8d1fc2abb">AddRule</a> (<a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> type1, <a class="el" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a> rule, <a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> type2)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a13348c710f80100519c94d10dff3d0e0">AddRule</a> (const std::string &amp;type1, <a class="el" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a> rule, const std::string &amp;type2)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const std::set&lt; <a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a96a3ea77a33f4721399f00e6b341cde2">GetRules</a> (<a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> type, <a class="el" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a> rule)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const std::set&lt; <a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a44d44e134f05976140e8e4686b0cd936">GetRules</a> (const std::string &amp;type, <a class="el" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a> rule)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a8159c48a642f3410913e635e23d77f24">SetCreationLabel</a> (<a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> Id, std::string Label)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const std::string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a90c6d068fdbea8cffe8690f177b5c939">GetCreationLabel</a> (<a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> Id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const std::string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a591fb1674ad415be983b6810ef484326">GetCreationLabel</a> (const std::string &amp;TypeName)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">SignalId</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Object.html#a380275771a250b94785e43286525c74e">CreateNewSignalId</a> ()</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This is the base class for most other objects in the <a class="el" href="namespacegcu.html" title="The Gnome Chemistry Utils C++ classes.">gcu</a> namespace. </p>

<p>Definition at line <a class="el" href="object_8h_source.html#l00138">138</a> of file <a class="el" href="object_8h_source.html">object.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a6f15e766fdfb066008bd4b0779574549"></a><!-- doxytag: member="gcu::Object::Object" ref="a6f15e766fdfb066008bd4b0779574549" args="(TypeId Id=OtherType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcu::Object::Object </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td>
          <td class="paramname"> <em>Id</em> = <code>OtherType</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Used to create an object of type Id. Should only be called from the constructor of a derived class. </p>

</div>
</div>
<a class="anchor" id="a3e575300e517594b0c2c161d6e704352"></a><!-- doxytag: member="gcu::Object::~Object" ref="a3e575300e517594b0c2c161d6e704352" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual gcu::Object::~Object </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The standard destructor of <a class="el" href="classgcu_1_1Object.html">Object</a> instances. Automatically called when the object is destroyed. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="afcd1e6f8bc15be563bd33429757d9d21"></a><!-- doxytag: member="gcu::Object::Add" ref="afcd1e6f8bc15be563bd33429757d9d21" args="(GtkWidget *w) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcu::Object::Add </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>w</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>the GtkWidget inside which the <a class="el" href="classgcu_1_1Object.html">Object</a> will be displayed.</td></tr>
  </table>
  </dd>
</dl>
<p>Used to add a representation of the <a class="el" href="classgcu_1_1Object.html">Object</a> in the widget. This method might be overrided for displayable <a class="el" href="classgcu_1_1Object.html">Object</a> classes unless the application uses another mechanism. </p>

<p>Reimplemented in <a class="el" href="classgcp_1_1Atom.html#a2d89d6c843004252a85cec1b4e6f585d">gcp::Atom</a>, <a class="el" href="classgcp_1_1Bond.html#affe0ce78c9fd254ee109623ce36aeef6">gcp::Bond</a>, <a class="el" href="classgcp_1_1Electron.html#a8abea8ae90f3d5d5a36279852cc1bc00">gcp::Electron</a>, <a class="el" href="classgcp_1_1FragmentAtom.html#ad9bc7efd23f280d6f7e18ee3b4d3bb44">gcp::FragmentAtom</a>, <a class="el" href="classgcp_1_1Fragment.html#af7b788ef15fe5440f1dd3a36c0bd5f90">gcp::Fragment</a>, <a class="el" href="classgcp_1_1MesomeryArrow.html#a76eae9987144cef8301ff6a25f9bea8a">gcp::MesomeryArrow</a>, <a class="el" href="classgcp_1_1Molecule.html#a6bd28d9624ad747709e748b447dc1b23">gcp::Molecule</a>, <a class="el" href="classgcp_1_1ReactionArrow.html#af432b166b5de38b1352eb2fefb5120cf">gcp::ReactionArrow</a>, <a class="el" href="classgcp_1_1ReactionOperator.html#a0ec163cd7f398383df1ba2ecc7b0f4f9">gcp::ReactionOperator</a>, <a class="el" href="classgcp_1_1ReactionStep.html#ae8438608e7219d487447a95f38ad62be">gcp::ReactionStep</a>, and <a class="el" href="classgcp_1_1Text.html#a3bfe9c901a6b19872acce7f73f4c28b7">gcp::Text</a>.</p>

</div>
</div>
<a class="anchor" id="ad054f1ae4f0cd697765aa4d2007521b2"></a><!-- doxytag: member="gcu::Object::AddChild" ref="ad054f1ae4f0cd697765aa4d2007521b2" args="(Object *object)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcu::Object::AddChild </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td>
          <td class="paramname"> <em>object</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&nbsp;</td><td>the <a class="el" href="classgcu_1_1Object.html">Object</a> instance to add as a child.</td></tr>
  </table>
  </dd>
</dl>
<p>Each <a class="el" href="classgcu_1_1Object.html">Object</a> instance maintains a list of its children. If object has already a parent, it will be removed from its parent children list. The new parent <a class="el" href="classgcu_1_1Object.html">Object</a> must have a <a class="el" href="classgcu_1_1Document.html">Document</a> ancestor to ensure that Ids are unique. </p>

</div>
</div>
<a class="anchor" id="a47d2dd181c9934ab4671c526a251295f"></a><!-- doxytag: member="gcu::Object::AddMenuCallback" ref="a47d2dd181c9934ab4671c526a251295f" args="(TypeId Id, BuildMenuCb cb)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void gcu::Object::AddMenuCallback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td>
          <td class="paramname"> <em>Id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a557c44b0c90f4543aae6f9b1a9b00616">BuildMenuCb</a>&nbsp;</td>
          <td class="paramname"> <em>cb</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Id</em>&nbsp;</td><td>the TypeId of the <a class="el" href="classgcu_1_1Object.html">Object</a> derived class </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>cb</em>&nbsp;</td><td>the BuildMenuCb callback to call when building the menu.</td></tr>
  </table>
  </dd>
</dl>
<p>adds a callback for modifying the contextual menu of objects of type Id. </p>

</div>
</div>
<a class="anchor" id="a13348c710f80100519c94d10dff3d0e0"></a><!-- doxytag: member="gcu::Object::AddRule" ref="a13348c710f80100519c94d10dff3d0e0" args="(const std::string &amp;type1, RuleId rule, const std::string &amp;type2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void gcu::Object::AddRule </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>type1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a>&nbsp;</td>
          <td class="paramname"> <em>rule</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>type2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>type1</em>&nbsp;</td><td>the name of the first class in the rule </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>rule</em>&nbsp;</td><td>the new rule value </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>type2</em>&nbsp;</td><td>the name of the second class in the rule</td></tr>
  </table>
  </dd>
</dl>
<p>Adds a rule. </p>

</div>
</div>
<a class="anchor" id="a3eb4fd4787f224f5e7e3e5f8d1fc2abb"></a><!-- doxytag: member="gcu::Object::AddRule" ref="a3eb4fd4787f224f5e7e3e5f8d1fc2abb" args="(TypeId type1, RuleId rule, TypeId type2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void gcu::Object::AddRule </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td>
          <td class="paramname"> <em>type1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a>&nbsp;</td>
          <td class="paramname"> <em>rule</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td>
          <td class="paramname"> <em>type2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>type1</em>&nbsp;</td><td>the TypeId of the first class in the rule </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>rule</em>&nbsp;</td><td>the new rule value </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>type2</em>&nbsp;</td><td>the TypeId of the second class in the rule</td></tr>
  </table>
  </dd>
</dl>
<p>Adds a rule. </p>

</div>
</div>
<a class="anchor" id="aea6734ca6bde8ae3e0788db43928f42e"></a><!-- doxytag: member="gcu::Object::AddType" ref="aea6734ca6bde8ae3e0788db43928f42e" args="(std::string TypeName, Object *(*CreateFunc)(), TypeId id=OtherType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> gcu::Object::AddType </td>
          <td>(</td>
          <td class="paramtype">std::string&nbsp;</td>
          <td class="paramname"> <em>TypeName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">Object</a> *(*)()&nbsp;</td>
          <td class="paramname"> <em>CreateFunc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td>
          <td class="paramname"> <em>id</em> = <code>OtherType</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>TypeName</em>&nbsp;</td><td>the name of the new type. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>CreateFunc</em>&nbsp;</td><td>a pointer to a function returning a pointer to a new object of the new type. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>the Id of the type to create if a standard one or OtherType for a new type. In this last case, this parameter can be omitted.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is used to register a new type derived from <a class="el" href="classgcu_1_1Object.html">Object</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the Id of the new type. </dd></dl>

</div>
</div>
<a class="anchor" id="ae43451845b5d92a6b6618b1a63cd2056"></a><!-- doxytag: member="gcu::Object::Build" ref="ae43451845b5d92a6b6618b1a63cd2056" args="(std::list&lt; Object * &gt; &amp;Children)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcu::Object::Build </td>
          <td>(</td>
          <td class="paramtype">std::list&lt; <a class="el" href="classgcu_1_1Object.html">Object</a> * &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>Children</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td>  throw (std::invalid_argument)<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Children</em>&nbsp;</td><td>the list of objects used as children to build the object</td></tr>
  </table>
  </dd>
</dl>
<p>This method is called to build a parent object from its children. The object must already exist. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true in case of success and false if failed. </dd></dl>

</div>
</div>
<a class="anchor" id="a6970989309647db7986c1bb2bcee8600"></a><!-- doxytag: member="gcu::Object::BuildContextualMenu" ref="a6970989309647db7986c1bb2bcee8600" args="(GtkUIManager *UIManager, Object *object, double x, double y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcu::Object::BuildContextualMenu </td>
          <td>(</td>
          <td class="paramtype">GtkUIManager *&nbsp;</td>
          <td class="paramname"> <em>UIManager</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>UIManager</em>&nbsp;</td><td>the GtkUIManager to populate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>object</em>&nbsp;</td><td>the <a class="el" href="classgcu_1_1Object.html">Object</a> on which occured the mouse click. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>x coordinate of the mouse click. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>y coordinate of the mouse click.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is called to build a contextual menu for the object. It is called by Object::ShowContextualMenu, so it should not be necessary to call it directly. It should be overriden by derived classes when a contextual menu is needed. Typically, each class adds a submenu and calls the same method for its parent. Default implementation calls registered BuildMenuCb callbacks and the parent's method. Derived classes should call <a class="el" href="classgcu_1_1Object.html#a6970989309647db7986c1bb2bcee8600">Object::BuildContextualMenu</a> before returning. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if something is added to the UIManager, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a380275771a250b94785e43286525c74e"></a><!-- doxytag: member="gcu::Object::CreateNewSignalId" ref="a380275771a250b94785e43286525c74e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">SignalId</a> gcu::Object::CreateNewSignalId </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>a new SignalId. </dd></dl>

</div>
</div>
<a class="anchor" id="a0d3837f66eccae5ce73573ca95930dbc"></a><!-- doxytag: member="gcu::Object::CreateObject" ref="a0d3837f66eccae5ce73573ca95930dbc" args="(const std::string &amp;TypeName, Object *parent=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::CreateObject </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>TypeName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>TypeName</em>&nbsp;</td><td>the name of the new type. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>parent</em>&nbsp;</td><td>the parent of the newly created object or NULL. if NULL, the parameter can be omitted.</td></tr>
  </table>
  </dd>
</dl>
<p>Used to create an object of type name TypeName. The <a class="el" href="classgcu_1_1Object.html#aea6734ca6bde8ae3e0788db43928f42e">Object::AddType</a> method must have been called with the same TypeName parameter. if parent is given and not NULL, the new <a class="el" href="classgcu_1_1Object.html">Object</a> will be a child of parent. It will also be given a default Id.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a pointer to the newly created <a class="el" href="classgcu_1_1Object.html">Object</a> or NULL if the <a class="el" href="classgcu_1_1Object.html">Object</a> could not be created. </dd></dl>

</div>
</div>
<a class="anchor" id="acf16b429a6875e5620fa8051446ef34c"></a><!-- doxytag: member="gcu::Object::EmitSignal" ref="acf16b429a6875e5620fa8051446ef34c" args="(SignalId Signal)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcu::Object::EmitSignal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">SignalId</a>&nbsp;</td>
          <td class="paramname"> <em>Signal</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Signal</em>&nbsp;</td><td>the appropriate SignalId</td></tr>
  </table>
  </dd>
</dl>
<p>Sends a signal to the object parent. The signal may be propagated to the ancestors (see <a class="el" href="classgcu_1_1Object.html#a1ad183ecf7e5b5c42db100da03221e46">Object::OnSignal</a> ()). </p>

</div>
</div>
<a class="anchor" id="aa47c38061c6a2e51947d89c86fbae630"></a><!-- doxytag: member="gcu::Object::GetAtomAt" ref="aa47c38061c6a2e51947d89c86fbae630" args="(double x, double y, double z=0.)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::GetAtomAt </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>z</em> = <code>0.</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>the x coordinate </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>the y coordinate </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>z</em>&nbsp;</td><td>the z coordinate</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a pointer to a child of type Atomtype at or near position defined by the coordinates passed as parameters. Default implementation returns NULL. </dd></dl>

<p>Reimplemented in <a class="el" href="classgcp_1_1Bond.html#aeb666e701cc6b08929c4d37698062161">gcp::Bond</a>, <a class="el" href="classgcp_1_1Fragment.html#ab176efcc94b5a04a9c2984f9c6be5e29">gcp::Fragment</a>, and <a class="el" href="classgcp_1_1Molecule.html#a9ec4a58d5060d29791336f54d8954d72">gcp::Molecule</a>.</p>

</div>
</div>
<a class="anchor" id="a026b22b02b09f8f9f535197f2d936c07"></a><!-- doxytag: member="gcu::Object::GetChild" ref="a026b22b02b09f8f9f535197f2d936c07" args="(const gchar *Id) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::GetChild </td>
          <td>(</td>
          <td class="paramtype">const gchar *&nbsp;</td>
          <td class="paramname"> <em>Id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Id</em>&nbsp;</td><td>the Id of the child searched.</td></tr>
  </table>
  </dd>
</dl>
<p>To search the <a class="el" href="classgcu_1_1Object.html">Object</a> in lower shells of the tree, use the <a class="el" href="classgcu_1_1Object.html#a361a06781c6a927f6aaa1e4e575ae9dd">Object::GetDescendant</a> method. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the <a class="el" href="classgcu_1_1Object.html">Object</a> instance of type Id if found in the children list or NULL if not found. </dd></dl>

</div>
</div>
<a class="anchor" id="a5e3d6fbdc8b10a9dbf43de2c052fff05"></a><!-- doxytag: member="gcu::Object::GetChildrenNumber" ref="a5e3d6fbdc8b10a9dbf43de2c052fff05" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned gcu::Object::GetChildrenNumber </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the children number of the <a class="el" href="classgcu_1_1Object.html">Object</a>. </dd></dl>

<p>Definition at line <a class="el" href="object_8h_source.html#l00384">384</a> of file <a class="el" href="object_8h_source.html">object.h</a>.</p>

</div>
</div>
<a class="anchor" id="a591fb1674ad415be983b6810ef484326"></a><!-- doxytag: member="gcu::Object::GetCreationLabel" ref="a591fb1674ad415be983b6810ef484326" args="(const std::string &amp;TypeName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const std::string&amp; gcu::Object::GetCreationLabel </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>TypeName</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>TypeName</em>&nbsp;</td><td>the name of a class</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the string defined by SetCreationLabel. </dd></dl>

</div>
</div>
<a class="anchor" id="a90c6d068fdbea8cffe8690f177b5c939"></a><!-- doxytag: member="gcu::Object::GetCreationLabel" ref="a90c6d068fdbea8cffe8690f177b5c939" args="(TypeId Id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const std::string&amp; gcu::Object::GetCreationLabel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td>
          <td class="paramname"> <em>Id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Id</em>&nbsp;</td><td>the TypeId of a class</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the string defined by SetCreationLabel. </dd></dl>

</div>
</div>
<a class="anchor" id="a361a06781c6a927f6aaa1e4e575ae9dd"></a><!-- doxytag: member="gcu::Object::GetDescendant" ref="a361a06781c6a927f6aaa1e4e575ae9dd" args="(const gchar *Id) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::GetDescendant </td>
          <td>(</td>
          <td class="paramtype">const gchar *&nbsp;</td>
          <td class="paramname"> <em>Id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Id</em>&nbsp;</td><td>the Id of the descendant searched.</td></tr>
  </table>
  </dd>
</dl>
<p>This method searches the <a class="el" href="classgcu_1_1Object.html">Object</a> in its children and if not found calls the GetDescendant method for its children. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the <a class="el" href="classgcu_1_1Object.html">Object</a> instance of type Id if found in the decendants or NULL if not found. </dd></dl>

</div>
</div>
<a class="anchor" id="adc268971d60003c8b03570b657ea22dd"></a><!-- doxytag: member="gcu::Object::GetDirty" ref="adc268971d60003c8b03570b657ea22dd" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcu::Object::GetDirty </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the document has changed since it was opened or last saved, false otherwise. </dd></dl>

<p>Definition at line <a class="el" href="object_8h_source.html#l00658">658</a> of file <a class="el" href="object_8h_source.html">object.h</a>.</p>

</div>
</div>
<a class="anchor" id="a274432165e22fa89a375eded192631db"></a><!-- doxytag: member="gcu::Object::GetDocument" ref="a274432165e22fa89a375eded192631db" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Document.html">Document</a>* gcu::Object::GetDocument </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Used to get the <a class="el" href="classgcu_1_1Document.html">Document</a> in the <a class="el" href="classgcu_1_1Object.html">Object</a> instances ancestors.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the first <a class="el" href="classgcu_1_1Object.html">Object</a> of type DocumentType encountered when exploring the Objects tree (only one should be found) or NULL if none is found. </dd></dl>

</div>
</div>
<a class="anchor" id="a5fe8cfbfe83645c292f8895aba4a91d0"></a><!-- doxytag: member="gcu::Object::GetFirstChild" ref="a5fe8cfbfe83645c292f8895aba4a91d0" args="(std::map&lt; std::string, Object * &gt;::iterator &amp;i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::GetFirstChild </td>
          <td>(</td>
          <td class="paramtype">std::map&lt; std::string, <a class="el" href="classgcu_1_1Object.html">Object</a> * &gt;::iterator &amp;&nbsp;</td>
          <td class="paramname"> <em>i</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>i</em>&nbsp;</td><td>a C++ std::map iterator.</td></tr>
  </table>
  </dd>
</dl>
<p>Use this function to retrieve the first child of the object and initialize the iterator. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the first child of the object or NULL. </dd></dl>

</div>
</div>
<a class="anchor" id="a79e87eb91afb57ebf188fdc3753cba7d"></a><!-- doxytag: member="gcu::Object::GetFirstLink" ref="a79e87eb91afb57ebf188fdc3753cba7d" args="(std::set&lt; Object * &gt;::iterator &amp;i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::GetFirstLink </td>
          <td>(</td>
          <td class="paramtype">std::set&lt; <a class="el" href="classgcu_1_1Object.html">Object</a> * &gt;::iterator &amp;&nbsp;</td>
          <td class="paramname"> <em>i</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>i</em>&nbsp;</td><td>a C++ std::set&lt;Object*&gt; iterator.</td></tr>
  </table>
  </dd>
</dl>
<p>Use this function to retrieve the first object linked to the object and initialize the iterator. Links can be used when the relation between the objects is not a parent to child one. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the first object linked to the object or NULL. </dd></dl>

</div>
</div>
<a class="anchor" id="a841968632d00e5d879694ee84737225b"></a><!-- doxytag: member="gcu::Object::GetGroup" ref="a841968632d00e5d879694ee84737225b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::GetGroup </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Used to get the highest ancestor just before the document in the <a class="el" href="classgcu_1_1Object.html">Object</a> instances ancestors.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the last <a class="el" href="classgcu_1_1Object.html">Object</a> encountered before the document when exploring the Objects tree or NULL if the object's parent is the document itself. </dd></dl>

</div>
</div>
<a class="anchor" id="aa5442c94fdeb2a71e0e3e1f2250f28dc"></a><!-- doxytag: member="gcu::Object::GetId" ref="aa5442c94fdeb2a71e0e3e1f2250f28dc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gchar const* gcu::Object::GetId </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the Id of the <a class="el" href="classgcu_1_1Object.html">Object</a> instance. </dd></dl>

<p>Definition at line <a class="el" href="object_8h_source.html#l00164">164</a> of file <a class="el" href="object_8h_source.html">object.h</a>.</p>

<p>Referenced by <a class="el" href="gcp_2molecule_8h_source.html#l00183">gcp::Molecule::GetAlignmentId()</a>.</p>

</div>
</div>
<a class="anchor" id="adf610a8402000e9f9ae9ad0135c1d7da"></a><!-- doxytag: member="gcu::Object::GetMolecule" ref="adf610a8402000e9f9ae9ad0135c1d7da" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::GetMolecule </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Used to get the <a class="el" href="classgcu_1_1Molecule.html">Molecule</a> in the <a class="el" href="classgcu_1_1Object.html">Object</a> instances ancestors. Overloaded methods should call the base class <a class="el" href="classgcu_1_1Object.html#ad054f1ae4f0cd697765aa4d2007521b2">Object::AddChild</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the first <a class="el" href="classgcu_1_1Object.html">Object</a> of type MoleculeType encountered when exploring the Objects tree or NULL if none is found. </dd></dl>

</div>
</div>
<a class="anchor" id="a70ff8a33f72e424f3c39b3d0edbe9903"></a><!-- doxytag: member="gcu::Object::GetNextChild" ref="a70ff8a33f72e424f3c39b3d0edbe9903" args="(std::map&lt; std::string, Object * &gt;::iterator &amp;i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::GetNextChild </td>
          <td>(</td>
          <td class="paramtype">std::map&lt; std::string, <a class="el" href="classgcu_1_1Object.html">Object</a> * &gt;::iterator &amp;&nbsp;</td>
          <td class="paramname"> <em>i</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>i</em>&nbsp;</td><td>a C++ std::map iterator initialized by <a class="el" href="classgcu_1_1Object.html#a5fe8cfbfe83645c292f8895aba4a91d0">Object::GetFirstChild</a>.</td></tr>
  </table>
  </dd>
</dl>
<p>Use this method to iterate through the list of the <a class="el" href="classgcu_1_1Object.html">Object</a> children. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the next child of the object or NULL. </dd></dl>

</div>
</div>
<a class="anchor" id="a61b227220c2b831b7196d2bd61201bdc"></a><!-- doxytag: member="gcu::Object::GetNextLink" ref="a61b227220c2b831b7196d2bd61201bdc" args="(std::set&lt; Object * &gt;::iterator &amp;i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::GetNextLink </td>
          <td>(</td>
          <td class="paramtype">std::set&lt; <a class="el" href="classgcu_1_1Object.html">Object</a> * &gt;::iterator &amp;&nbsp;</td>
          <td class="paramname"> <em>i</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>i</em>&nbsp;</td><td>a C++ std::set&lt;Object*&gt; iterator initialized by <a class="el" href="classgcu_1_1Object.html#a79e87eb91afb57ebf188fdc3753cba7d">Object::GetFirstLink</a>.</td></tr>
  </table>
  </dd>
</dl>
<p>Use this method to iterate through the list of <a class="el" href="classgcu_1_1Object.html">Object</a> instances linked to the object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the next object linked to the object or NULL. </dd></dl>

</div>
</div>
<a class="anchor" id="a2dc10bf48d3ebfe86853cace21e9abf2"></a><!-- doxytag: member="gcu::Object::GetNextNodeByName" ref="a2dc10bf48d3ebfe86853cace21e9abf2" args="(xmlNodePtr node, char const *Name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">xmlNodePtr gcu::Object::GetNextNodeByName </td>
          <td>(</td>
          <td class="paramtype">xmlNodePtr&nbsp;</td>
          <td class="paramname"> <em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&nbsp;</td>
          <td class="paramname"> <em>Name</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>node</em>&nbsp;</td><td>the xmlNodePtr returned by <a class="el" href="classgcu_1_1Object.html#a4e8712098d673c958fb0c72488058f80">Object::GetNodeByName</a> or the last call to <a class="el" href="classgcu_1_1Object.html#a2dc10bf48d3ebfe86853cace21e9abf2">Object::GetNextNodeByName</a>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>Name</em>&nbsp;</td><td>the name of the xmlNode searched.</td></tr>
  </table>
  </dd>
</dl>
<p>Helper method used to iterate through a list of xmlNodePtr searching for nodes whose name is Name. Generally, the iteration is initialized by a call to <a class="el" href="classgcu_1_1Object.html#a4e8712098d673c958fb0c72488058f80">Object::GetNodeByName</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the next matching node. </dd></dl>

</div>
</div>
<a class="anchor" id="aa19f11cca83189a955f0a7bf2919562b"></a><!-- doxytag: member="gcu::Object::GetNextNodeByProp" ref="aa19f11cca83189a955f0a7bf2919562b" args="(xmlNodePtr node, char const *Property, char const *Id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">xmlNodePtr gcu::Object::GetNextNodeByProp </td>
          <td>(</td>
          <td class="paramtype">xmlNodePtr&nbsp;</td>
          <td class="paramname"> <em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&nbsp;</td>
          <td class="paramname"> <em>Property</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&nbsp;</td>
          <td class="paramname"> <em>Id</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>node</em>&nbsp;</td><td>the xmlNodePtr returned by <a class="el" href="classgcu_1_1Object.html#ad533d866f1478a972a1896499e5659a5">Object::GetNodeByProp</a> or the last call to <a class="el" href="classgcu_1_1Object.html#aa19f11cca83189a955f0a7bf2919562b">Object::GetNextNodeByProp</a>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>Property</em>&nbsp;</td><td>the name of the property used in the search. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>Id</em>&nbsp;</td><td>the value to match to the property.</td></tr>
  </table>
  </dd>
</dl>
<p>Helper method used to iterate through a list of xmlNodePtr searching for a special value of a property. Generally, the iteration is initialized by a call to <a class="el" href="classgcu_1_1Object.html#ad533d866f1478a972a1896499e5659a5">Object::GetNodeByProp</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the next matching node. </dd></dl>

</div>
</div>
<a class="anchor" id="a4e8712098d673c958fb0c72488058f80"></a><!-- doxytag: member="gcu::Object::GetNodeByName" ref="a4e8712098d673c958fb0c72488058f80" args="(xmlNodePtr node, char const *Name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">xmlNodePtr gcu::Object::GetNodeByName </td>
          <td>(</td>
          <td class="paramtype">xmlNodePtr&nbsp;</td>
          <td class="paramname"> <em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&nbsp;</td>
          <td class="paramname"> <em>Name</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>node</em>&nbsp;</td><td>the node where the search is to be done. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>Name</em>&nbsp;</td><td>the name of the xmlNode searched.</td></tr>
  </table>
  </dd>
</dl>
<p>Helper method used in conjunction with <a class="el" href="classgcu_1_1Object.html#aa19f11cca83189a955f0a7bf2919562b">Object::GetNextNodeByProp</a> to search xmlNode instances of name Name in the children of node.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the node corresponding to the first match. This value is to be passed to <a class="el" href="classgcu_1_1Object.html#a2dc10bf48d3ebfe86853cace21e9abf2">Object::GetNextNodeByName</a> to iterate in the list. </dd></dl>

</div>
</div>
<a class="anchor" id="ad533d866f1478a972a1896499e5659a5"></a><!-- doxytag: member="gcu::Object::GetNodeByProp" ref="ad533d866f1478a972a1896499e5659a5" args="(xmlNodePtr node, char const *Property, char const *Id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">xmlNodePtr gcu::Object::GetNodeByProp </td>
          <td>(</td>
          <td class="paramtype">xmlNodePtr&nbsp;</td>
          <td class="paramname"> <em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&nbsp;</td>
          <td class="paramname"> <em>Property</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&nbsp;</td>
          <td class="paramname"> <em>Id</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>node</em>&nbsp;</td><td>the node where the search is to be done. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>Property</em>&nbsp;</td><td>the name of the property used in the search. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>Id</em>&nbsp;</td><td>the value to match to the property.</td></tr>
  </table>
  </dd>
</dl>
<p>Helper method used in conjunction with <a class="el" href="classgcu_1_1Object.html#aa19f11cca83189a955f0a7bf2919562b">Object::GetNextNodeByProp</a> to search xmlNode instances having a property Property whose value is Id in the children of node.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the node corresponding to the first match. This value is to be passed to <a class="el" href="classgcu_1_1Object.html#aa19f11cca83189a955f0a7bf2919562b">Object::GetNextNodeByProp</a> to iterate in the list </dd></dl>

</div>
</div>
<a class="anchor" id="abacb2c2002726a3237ffbd0e50e3df52"></a><!-- doxytag: member="gcu::Object::GetParent" ref="abacb2c2002726a3237ffbd0e50e3df52" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::GetParent </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the parent of the <a class="el" href="classgcu_1_1Object.html">Object</a>. </dd></dl>

<p>Definition at line <a class="el" href="object_8h_source.html#l00245">245</a> of file <a class="el" href="object_8h_source.html">object.h</a>.</p>

</div>
</div>
<a class="anchor" id="a158be0361aaadca1d03fdb5b5d3089b2"></a><!-- doxytag: member="gcu::Object::GetParentOfType" ref="a158be0361aaadca1d03fdb5b5d3089b2" args="(TypeId Id) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::GetParentOfType </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td>
          <td class="paramname"> <em>Id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Id</em>&nbsp;</td><td>the type of the ancestor searched.</td></tr>
  </table>
  </dd>
</dl>
<p>Used to get the first ancestor of type Id in the <a class="el" href="classgcu_1_1Object.html">Object</a> instances ancestors. GetDocument, GetMolecule and GetReaction are special cases of this method.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the first <a class="el" href="classgcu_1_1Object.html">Object</a> of type Id encountered when exploring the Objects tree (only one should be found) or NULL if none is found. </dd></dl>

</div>
</div>
<a class="anchor" id="a97106b6ec695ac946d0a1d04293eef79"></a><!-- doxytag: member="gcu::Object::GetPossibleAncestorTypes" ref="a97106b6ec695ac946d0a1d04293eef79" args="(std::set&lt; TypeId &gt; &amp;types) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcu::Object::GetPossibleAncestorTypes </td>
          <td>(</td>
          <td class="paramtype">std::set&lt; <a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>types</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>types</em>&nbsp;</td><td>the list of TypeId values to fill</td></tr>
  </table>
  </dd>
</dl>
<p>Fills types with all valid ancestor types for the object as defined by rules created with AddRule </p>

</div>
</div>
<a class="anchor" id="a9f612121600c791abbee16bb539975d7"></a><!-- doxytag: member="gcu::Object::GetProperty" ref="a9f612121600c791abbee16bb539975d7" args="(unsigned property) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual std::string gcu::Object::GetProperty </td>
          <td>(</td>
          <td class="paramtype">unsigned&nbsp;</td>
          <td class="paramname"> <em>property</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>property</em>&nbsp;</td><td>the property id as defined in <a class="el" href="objprops_8h.html">objprops.h</a></td></tr>
  </table>
  </dd>
</dl>
<p>Used when saving to get properties from various objects. All classes supporting the mechanism must overload this method. </p>

<p>Reimplemented in <a class="el" href="classgcu_1_1Atom.html#a759e64fd28f939c73a5130c49e876618">gcu::Atom</a>, and <a class="el" href="classgcp_1_1TextObject.html#adc7941d78d0a92d77ff1e3e18bf11375">gcp::TextObject</a>.</p>

</div>
</div>
<a class="anchor" id="adaba7d20336b8036b6bfb7ef3884880a"></a><!-- doxytag: member="gcu::Object::GetReaction" ref="adaba7d20336b8036b6bfb7ef3884880a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">Object</a>* gcu::Object::GetReaction </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Used to get the Reaction in the <a class="el" href="classgcu_1_1Object.html">Object</a> instances ancestors.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the first <a class="el" href="classgcu_1_1Object.html">Object</a> of type ReactionType encountered when exploring the Objects tree or NULL if none is found. </dd></dl>

</div>
</div>
<a class="anchor" id="a44d44e134f05976140e8e4686b0cd936"></a><!-- doxytag: member="gcu::Object::GetRules" ref="a44d44e134f05976140e8e4686b0cd936" args="(const std::string &amp;type, RuleId rule)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const std::set&lt;<a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&gt;&amp; gcu::Object::GetRules </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a>&nbsp;</td>
          <td class="paramname"> <em>rule</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>the name of a class </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>rule</em>&nbsp;</td><td>a RuleId value</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the set of rules correponding to the RuleId value for this class. </dd></dl>

</div>
</div>
<a class="anchor" id="a96a3ea77a33f4721399f00e6b341cde2"></a><!-- doxytag: member="gcu::Object::GetRules" ref="a96a3ea77a33f4721399f00e6b341cde2" args="(TypeId type, RuleId rule)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const std::set&lt;<a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&gt;&amp; gcu::Object::GetRules </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a>&nbsp;</td>
          <td class="paramname"> <em>rule</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>the TypeId of a class </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>rule</em>&nbsp;</td><td>a RuleId value</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the set of rules correponding to the RuleId value for this class. </dd></dl>

</div>
</div>
<a class="anchor" id="a9c900a7a382cad4a995edbb10b8f179d"></a><!-- doxytag: member="gcu::Object::GetType" ref="a9c900a7a382cad4a995edbb10b8f179d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> gcu::Object::GetType </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the type of the object. If the type is at least equal to OtherType, it is a dynamically created type returned by the <a class="el" href="classgcu_1_1Object.html#aea6734ca6bde8ae3e0788db43928f42e">Object::AddType</a> method. </dd></dl>

<p>Reimplemented in <a class="el" href="classgcp_1_1Bond.html#ac8f185d40a67c904d91e2b49f4119138">gcp::Bond</a>.</p>

<p>Definition at line <a class="el" href="object_8h_source.html#l00154">154</a> of file <a class="el" href="object_8h_source.html">object.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6038f7f7c0f58cd1aa12bd8237ac1024"></a><!-- doxytag: member="gcu::Object::GetTypeId" ref="a6038f7f7c0f58cd1aa12bd8237ac1024" args="(const std::string &amp;Name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> gcu::Object::GetTypeId </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>Name</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Name</em>&nbsp;</td><td>the name of the <a class="el" href="classgcu_1_1Object.html">Object</a> derived class</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the TypeId corresponding to Name </dd></dl>

</div>
</div>
<a class="anchor" id="a9e57005d5129e341ce3dcd4d3c188eaf"></a><!-- doxytag: member="gcu::Object::GetTypeName" ref="a9e57005d5129e341ce3dcd4d3c188eaf" args="(TypeId Id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static std::string gcu::Object::GetTypeName </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td>
          <td class="paramname"> <em>Id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Id</em>&nbsp;</td><td>the TypeId of the <a class="el" href="classgcu_1_1Object.html">Object</a> derived class</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the name of the type. </dd></dl>

</div>
</div>
<a class="anchor" id="aedeec6e6b66e1a35e6d2f3ef75c94a09"></a><!-- doxytag: member="gcu::Object::GetYAlign" ref="aedeec6e6b66e1a35e6d2f3ef75c94a09" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual double gcu::Object::GetYAlign </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Used to retrieve the y coordinate for alignment. The default implementation returns 0.0 and every derived class for which alignment has a meaning should implement this method. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>y coordinate used for objects alignment. </dd></dl>

<p>Reimplemented in <a class="el" href="classgcp_1_1Arrow.html#afa8246468ac13b5019422c76dc6451be">gcp::Arrow</a>, <a class="el" href="classgcp_1_1Atom.html#ac06b20c09e7568191922a2801d307fed">gcp::Atom</a>, <a class="el" href="classgcp_1_1Bond.html#ab4481b07aa857a7f14947507b21b84a5">gcp::Bond</a>, <a class="el" href="classgcp_1_1Document.html#a6e6fafd96ac50858e8b0e0ad322b168a">gcp::Document</a>, <a class="el" href="classgcp_1_1Fragment.html#ab0eff95c852c2ac3aee2e17efff17c4a">gcp::Fragment</a>, <a class="el" href="classgcp_1_1Mesomer.html#a60e9c133c1d0faae9ff0061a1cff45f7">gcp::Mesomer</a>, <a class="el" href="classgcp_1_1Mesomery.html#a2776f2d3d5d2ba080423dc0a8fb25fca">gcp::Mesomery</a>, <a class="el" href="classgcp_1_1Molecule.html#a141ffeeff75f342eb90fb5aec87e4e81">gcp::Molecule</a>, <a class="el" href="classgcp_1_1Reactant.html#a42bf1c6f7e95ace9e608889880c979c4">gcp::Reactant</a>, <a class="el" href="classgcp_1_1ReactionOperator.html#a749b55a5fdaa4d86e63d7b3cb0afc7eb">gcp::ReactionOperator</a>, <a class="el" href="classgcp_1_1ReactionStep.html#aa04ee198904f393f01470a507406daaf">gcp::ReactionStep</a>, <a class="el" href="classgcp_1_1Reaction.html#a0cd5ada3960672705b6026c25606ff46">gcp::Reaction</a>, and <a class="el" href="classgcp_1_1Text.html#ab92903025c76d26f569c7aac04857555">gcp::Text</a>.</p>

</div>
</div>
<a class="anchor" id="a28f682a2891b17ae57c5f346c95d6f50"></a><!-- doxytag: member="gcu::Object::HasChildren" ref="a28f682a2891b17ae57c5f346c95d6f50" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcu::Object::HasChildren </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the <a class="el" href="classgcu_1_1Object.html">Object</a> has at least a child an false if it has none. </dd></dl>

<p>Definition at line <a class="el" href="object_8h_source.html#l00379">379</a> of file <a class="el" href="object_8h_source.html">object.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4094e3d8cf58a6f9de9cb6c6b6fed8c8"></a><!-- doxytag: member="gcu::Object::IsLocked" ref="a4094e3d8cf58a6f9de9cb6c6b6fed8c8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcu::Object::IsLocked </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>true if signals are locked, false otherwise</dd></dl>
<p>Since 0.4.2 </p>

<p>Reimplemented in <a class="el" href="classgcp_1_1TextObject.html#a69d4138e494f38c0da4ac7b97e182739">gcp::TextObject</a>.</p>

<p>Definition at line <a class="el" href="object_8h_source.html#l00460">460</a> of file <a class="el" href="object_8h_source.html">object.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa3ee33c25154d8e7bbe1e39de970c489"></a><!-- doxytag: member="gcu::Object::Load" ref="aa3ee33c25154d8e7bbe1e39de970c489" args="(xmlNodePtr node)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcu::Object::Load </td>
          <td>(</td>
          <td class="paramtype">xmlNodePtr&nbsp;</td>
          <td class="paramname"> <em>node</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>node</em>&nbsp;</td><td>a pointer to the xmlNode containing the serialized object.</td></tr>
  </table>
  </dd>
</dl>
<p>Used to load an <a class="el" href="classgcu_1_1Object.html">Object</a> in memory. The <a class="el" href="classgcu_1_1Object.html">Object</a> must already exist.</p>
<p>Example: </p>
<div class="fragment"><pre class="fragment">        std::string str = (<span class="keyword">const</span> <span class="keywordtype">char</span>*)node-&gt;name;
        <a class="code" href="classgcu_1_1Object.html#a6f15e766fdfb066008bd4b0779574549">Object</a>* pObject = <a class="code" href="classgcu_1_1Object.html#a0d3837f66eccae5ce73573ca95930dbc">Object::CreateObject</a>(str, <span class="keyword">this</span>);
        <span class="keywordflow">if</span> (pObject) {
                <span class="keywordflow">if</span> (!pObject-&gt;Load(node)) <span class="keyword">delete</span> <a class="code" href="classgcu_1_1Object.html#a6f15e766fdfb066008bd4b0779574549">Object</a>; 
        } <span class="keywordflow">else</span>
                cerr &lt;&lt; <span class="stringliteral">&quot;Warning: unknown object: &quot;</span> &lt;&lt; str &lt;&lt; endl;
</pre></div><dl class="return"><dt><b>Returns:</b></dt><dd>true on succes, false otherwise. </dd></dl>

<p>Reimplemented in <a class="el" href="classgcu_1_1Atom.html#a290a0a8c69ca6667d19e9d7f1d71d190">gcu::Atom</a>, <a class="el" href="classgcu_1_1Bond.html#ae1bcca3ea3e234e33987df3a75fd69fa">gcu::Bond</a>, <a class="el" href="classgcu_1_1CrystalBond.html#ad98acfca2deeac264b7fd1c48e680bbd">gcu::CrystalBond</a>, <a class="el" href="classgcp_1_1Arrow.html#a35982ed701601f54af6e6632229b2216">gcp::Arrow</a>, <a class="el" href="classgcp_1_1Atom.html#a8eed490ca4ecc446a4a1cdc8aeb46f98">gcp::Atom</a>, <a class="el" href="classgcp_1_1Document.html#a442540290608fdc05cb59283821eedfc">gcp::Document</a>, <a class="el" href="classgcp_1_1Electron.html#af160f10e0c3439f3f3213be160858b67">gcp::Electron</a>, <a class="el" href="classgcp_1_1FragmentAtom.html#aca577c2cb21b8fcb47fe0790cc41458a">gcp::FragmentAtom</a>, <a class="el" href="classgcp_1_1FragmentResidue.html#add2c5572e5eed7d7d88d30f44c76226a">gcp::FragmentResidue</a>, <a class="el" href="classgcp_1_1Fragment.html#a75cac2753415a1e754a24f25ca9e1c1a">gcp::Fragment</a>, <a class="el" href="classgcp_1_1Mesomer.html#af96bd8e8919f77945bb9f97b68652791">gcp::Mesomer</a>, <a class="el" href="classgcp_1_1MesomeryArrow.html#a286cd6ad058bb8622cd27dd2cd850e48">gcp::MesomeryArrow</a>, <a class="el" href="classgcp_1_1Mesomery.html#abb7624c8f02e73dc7d907b9e004bbe97">gcp::Mesomery</a>, <a class="el" href="classgcp_1_1Molecule.html#af3abe215c266c862151b4301ea30495f">gcp::Molecule</a>, <a class="el" href="classgcp_1_1Reactant.html#a969a9abef810735e9907197b20058e0a">gcp::Reactant</a>, <a class="el" href="classgcp_1_1ReactionArrow.html#a4074632f7c641dab5d685e828767ba92">gcp::ReactionArrow</a>, <a class="el" href="classgcp_1_1ReactionProp.html#a681f29f2f2849eff3620def09e31cc0b">gcp::ReactionProp</a>, <a class="el" href="classgcp_1_1ReactionStep.html#a62b948ca5659277a4e73d889aca787e6">gcp::ReactionStep</a>, <a class="el" href="classgcp_1_1Reaction.html#ab685cd350215b613741744e4153ff36a">gcp::Reaction</a>, <a class="el" href="classgcp_1_1TextObject.html#add97059392570701098cbff38acbf320">gcp::TextObject</a>, and <a class="el" href="classgcp_1_1Text.html#a78edca888b30e0044878b8fe3916cea4">gcp::Text</a>.</p>

</div>
</div>
<a class="anchor" id="a8b4da97be50a4ceea941ab8aa8ece825"></a><!-- doxytag: member="gcu::Object::Lock" ref="a8b4da97be50a4ceea941ab8aa8ece825" args="(bool state=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcu::Object::Lock </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>state</em> = <code>true</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>whether to block signals or not</td></tr>
  </table>
  </dd>
</dl>
<p>Blocks signals if State is true and unblocs if state is false.</p>
<p>Since 0.4.2 </p>

</div>
</div>
<a class="anchor" id="af5505430c421604ff7e26e4414197fbc"></a><!-- doxytag: member="gcu::Object::Move" ref="af5505430c421604ff7e26e4414197fbc" args="(double x, double y, double z=0.)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcu::Object::Move </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>z</em> = <code>0.</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>the x component of the transation vector. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>the y component of the transation vector. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>z</em>&nbsp;</td><td>the z component of the transation vector.</td></tr>
  </table>
  </dd>
</dl>
<p>Used to move an object. This virtual method should most often be overrided by <a class="el" href="classgcu_1_1Object.html">Object</a> derived classes for which it makes sense. The base <a class="el" href="classgcu_1_1Object.html">Object</a> class has no coordinates and the default method only loads its id and children. </p>

<p>Reimplemented in <a class="el" href="classgcu_1_1Atom.html#aab7ca2a758dc755d3da936cae82d1485">gcu::Atom</a>, <a class="el" href="classgcu_1_1Bond.html#a15d7c0d54ba3cb8e9d2886ff331bb1d1">gcu::Bond</a>, <a class="el" href="classgcu_1_1CrystalBond.html#acabc45bc7b9f554550c28a813e15ad57">gcu::CrystalBond</a>, <a class="el" href="classgcp_1_1Arrow.html#a5af4f736d76d54237efcf41c2e1ce3e7">gcp::Arrow</a>, <a class="el" href="classgcp_1_1Bond.html#afda351941282758411c86c72bf176e01">gcp::Bond</a>, <a class="el" href="classgcp_1_1Fragment.html#af2cda52423e1902939a18c04e6650c32">gcp::Fragment</a>, <a class="el" href="classgcp_1_1ReactionArrow.html#ab89ac83784668952df0bcf724bf4958f">gcp::ReactionArrow</a>, <a class="el" href="classgcp_1_1ReactionOperator.html#af62c746dcdf5f637515727fd93ab8d12">gcp::ReactionOperator</a>, and <a class="el" href="classgcp_1_1TextObject.html#ac16ac6e2b2274043a6fc989f0fd140c9">gcp::TextObject</a>.</p>

</div>
</div>
<a class="anchor" id="af972c30c9990923c34c54754654c3e72"></a><!-- doxytag: member="gcu::Object::OnLoaded" ref="af972c30c9990923c34c54754654c3e72" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcu::Object::OnLoaded </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This method should be called when an object has been fully loaded. The default method doesn't do anything. </p>

<p>Reimplemented in <a class="el" href="classgcp_1_1Molecule.html#a37c6ce6b2910d96e6afa5bcdf42c1de3">gcp::Molecule</a>.</p>

</div>
</div>
<a class="anchor" id="a1ad183ecf7e5b5c42db100da03221e46"></a><!-- doxytag: member="gcu::Object::OnSignal" ref="a1ad183ecf7e5b5c42db100da03221e46" args="(SignalId Signal, Object *Child)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcu::Object::OnSignal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">SignalId</a>&nbsp;</td>
          <td class="paramname"> <em>Signal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td>
          <td class="paramname"> <em>Child</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Signal</em>&nbsp;</td><td>the appropriate SignalId </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>Child</em>&nbsp;</td><td>the child which emitted the signal or NULL</td></tr>
  </table>
  </dd>
</dl>
<p>This function is called by the framework when a signal has been emitted for the object. It should not be called by a program; call <a class="el" href="classgcu_1_1Object.html#acf16b429a6875e5620fa8051446ef34c">Object::EmitSignal</a> instead.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the signal should be propagated to the parent, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a786610ff1992e4aa1acff883b5479ec7"></a><!-- doxytag: member="gcu::Object::OnUnlink" ref="a786610ff1992e4aa1acff883b5479ec7" args="(Object *object)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcu::Object::OnUnlink </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td>
          <td class="paramname"> <em>object</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&nbsp;</td><td>the object just unlinked by <a class="el" href="classgcu_1_1Object.html#a606a257c41cd9cc177c98958fdf2ae3d">Object::Unlink</a>.</td></tr>
  </table>
  </dd>
</dl>
<p>Virtual method called when an object hs been unlinked. Programs should not call it directly, but should call <a class="el" href="classgcu_1_1Object.html#a786610ff1992e4aa1acff883b5479ec7">Object::OnUnlink</a> instead. </p>

</div>
</div>
<a class="anchor" id="aad462441e79fbd93e158f8294a198d11"></a><!-- doxytag: member="gcu::Object::Save" ref="aad462441e79fbd93e158f8294a198d11" args="(xmlDocPtr xml) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual xmlNodePtr gcu::Object::Save </td>
          <td>(</td>
          <td class="paramtype">xmlDocPtr&nbsp;</td>
          <td class="paramname"> <em>xml</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>xml</em>&nbsp;</td><td>the xmlDoc used to save the document.</td></tr>
  </table>
  </dd>
</dl>
<p>Used to save the <a class="el" href="classgcu_1_1Object.html">Object</a> to the xmlDoc. Each serializable <a class="el" href="classgcu_1_1Object.html">Object</a> should implement this virtual method. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the xmlNode containing the serialized object. The name of the node should be the name of the corresponding type used as first parameter to the <a class="el" href="classgcu_1_1Object.html#aea6734ca6bde8ae3e0788db43928f42e">Object::AddType</a> method. The default method just saves the id and children. </dd></dl>

<p>Reimplemented in <a class="el" href="classgcu_1_1Atom.html#a4d8e69e2c01645367c6c76c2d92c2433">gcu::Atom</a>, <a class="el" href="classgcu_1_1Bond.html#a32ea64a60ece754c6b23ebea562bcc7f">gcu::Bond</a>, <a class="el" href="classgcp_1_1Atom.html#a67db585c20bdd33ac5ac071794b67dd5">gcp::Atom</a>, <a class="el" href="classgcp_1_1Electron.html#ae6b591a8fb2c119a48b359ea3e01e4cf">gcp::Electron</a>, <a class="el" href="classgcp_1_1FragmentAtom.html#a143e33f55d77547cc9be39f2c5e248d0">gcp::FragmentAtom</a>, <a class="el" href="classgcp_1_1FragmentResidue.html#aa9860847b53b41355982dc5d1d6c058a">gcp::FragmentResidue</a>, <a class="el" href="classgcp_1_1Fragment.html#affe875b4f4d8710b8c5e6b159ee0fd44">gcp::Fragment</a>, <a class="el" href="classgcp_1_1MesomeryArrow.html#ad823b1b976d6c12c6e6854096cafd228">gcp::MesomeryArrow</a>, <a class="el" href="classgcp_1_1Molecule.html#ad4bb194b40610a85a7d5a894647dbae0">gcp::Molecule</a>, <a class="el" href="classgcp_1_1Reactant.html#a0cc5bb9cfb7982e50af7ffc65ab1136c">gcp::Reactant</a>, <a class="el" href="classgcp_1_1ReactionArrow.html#a4557c694405c01413e716193eed7d479">gcp::ReactionArrow</a>, <a class="el" href="classgcp_1_1ReactionStep.html#abbf26ce1420f167113e9646d8148c108">gcp::ReactionStep</a>, and <a class="el" href="classgcp_1_1Text.html#a7ce14e0f0ea6ccaeac985c87e54625f5">gcp::Text</a>.</p>

</div>
</div>
<a class="anchor" id="a07de41cb137a650b51920d6186fc82d7"></a><!-- doxytag: member="gcu::Object::SaveChildren" ref="a07de41cb137a650b51920d6186fc82d7" args="(xmlDocPtr xml, xmlNodePtr node) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcu::Object::SaveChildren </td>
          <td>(</td>
          <td class="paramtype">xmlDocPtr&nbsp;</td>
          <td class="paramname"> <em>xml</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xmlNodePtr&nbsp;</td>
          <td class="paramname"> <em>node</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>xml</em>&nbsp;</td><td>the xmlDoc used to save the document. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>node</em>&nbsp;</td><td>the node representing the <a class="el" href="classgcu_1_1Object.html">Object</a>.</td></tr>
  </table>
  </dd>
</dl>
<p>This method calls <a class="el" href="classgcu_1_1Object.html#aad462441e79fbd93e158f8294a198d11">Object::Save</a> fo each child of the <a class="el" href="classgcu_1_1Object.html">Object</a> instance and add the xmlNode returned to the children of node. It might be called from the Save method of objects having serializable children. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true on succes, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a5f99b290d7e48c38738342dfc984865d"></a><!-- doxytag: member="gcu::Object::SaveId" ref="a5f99b290d7e48c38738342dfc984865d" args="(xmlNodePtr node) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcu::Object::SaveId </td>
          <td>(</td>
          <td class="paramtype">xmlNodePtr&nbsp;</td>
          <td class="paramname"> <em>node</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>node</em>&nbsp;</td><td>the node representing the <a class="el" href="classgcu_1_1Object.html">Object</a>.</td></tr>
  </table>
  </dd>
</dl>
<p>This helper method saves the Id of the node as a property of the xmlNode. </p>

</div>
</div>
<a class="anchor" id="a8159c48a642f3410913e635e23d77f24"></a><!-- doxytag: member="gcu::Object::SetCreationLabel" ref="a8159c48a642f3410913e635e23d77f24" args="(TypeId Id, std::string Label)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void gcu::Object::SetCreationLabel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>&nbsp;</td>
          <td class="paramname"> <em>Id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&nbsp;</td>
          <td class="paramname"> <em>Label</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Id</em>&nbsp;</td><td>the TypeId of a class </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>Label</em>&nbsp;</td><td>the string to display in a contextual menu</td></tr>
  </table>
  </dd>
</dl>
<p>Used to give a label for contextual menus used when the creation of an instance of the class seems possible. </p>

</div>
</div>
<a class="anchor" id="a01ea0147ad675e139ddea7aaa2af503c"></a><!-- doxytag: member="gcu::Object::SetDirty" ref="a01ea0147ad675e139ddea7aaa2af503c" args="(bool dirty=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcu::Object::SetDirty </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>dirty</em> = <code>true</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dirty</em>&nbsp;</td><td>should be true if the object needs some update, false otherwise. For a document, it means that the document has been changed. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="classgcp_1_1Document.html#adfe420492ebbe9fa9908508aebdca467">gcp::Document</a>.</p>

</div>
</div>
<a class="anchor" id="ac45cdb13cf013066a3704054c9d06ed0"></a><!-- doxytag: member="gcu::Object::SetId" ref="ac45cdb13cf013066a3704054c9d06ed0" args="(gchar const *Id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcu::Object::SetId </td>
          <td>(</td>
          <td class="paramtype">gchar const *&nbsp;</td>
          <td class="paramname"> <em>Id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Id</em>&nbsp;</td><td>the id of the <a class="el" href="classgcu_1_1Object.html">Object</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<p>Every object must have an Id, since searches in the document tree uses it. </p>

</div>
</div>
<a class="anchor" id="a0ffe1f48151c92f167eeec303277e45c"></a><!-- doxytag: member="gcu::Object::SetParent" ref="a0ffe1f48151c92f167eeec303277e45c" args="(Object *Parent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcu::Object::SetParent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td>
          <td class="paramname"> <em>Parent</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Parent</em>&nbsp;</td><td>the new parent of the <a class="el" href="classgcu_1_1Object.html">Object</a> or NULL.</td></tr>
  </table>
  </dd>
</dl>
<p>When Parent is not NULL, this is equivalent to </p>
<div class="fragment"><pre class="fragment"> Parent-&gt;AddChild(<span class="keyword">this</span>);
</pre></div><p> Otherwise, it removes the <a class="el" href="classgcu_1_1Object.html">Object</a> from the <a class="el" href="classgcu_1_1Document.html">Document</a> tree. </p>

</div>
</div>
<a class="anchor" id="a47862fe83b1c3739ee37b8af81550644"></a><!-- doxytag: member="gcu::Object::SetProperty" ref="a47862fe83b1c3739ee37b8af81550644" args="(unsigned property, char const *value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcu::Object::SetProperty </td>
          <td>(</td>
          <td class="paramtype">unsigned&nbsp;</td>
          <td class="paramname"> <em>property</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>property</em>&nbsp;</td><td>the property id as defined in <a class="el" href="objprops_8h.html">objprops.h</a> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>the property value as a string</td></tr>
  </table>
  </dd>
</dl>
<p>Used when loading to set properties to various objects. If the method returns false, the property should be set again later. This might happen if an atom does not exists when one of its bonds is loaded. All classes supporting the mechanism must overload this method. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the property could be set, or if the property is not relevant, false otherwise. </dd></dl>

<p>Reimplemented in <a class="el" href="classgcu_1_1Atom.html#ac9d2135007a4010d1e4ffffb9aec3227">gcu::Atom</a>, <a class="el" href="classgcu_1_1Bond.html#a37bf95b6f996cd4201c3c8e2566a717a">gcu::Bond</a>, <a class="el" href="classgcp_1_1Arrow.html#a3ffe17fc0cfc7be493749c67d07c2302">gcp::Arrow</a>, <a class="el" href="classgcp_1_1Bond.html#a42351189a42ff109ba72cffb68741431">gcp::Bond</a>, <a class="el" href="classgcp_1_1Document.html#a102304483ed40e4accae364a3c5e6388">gcp::Document</a>, <a class="el" href="classgcp_1_1Fragment.html#a5e0ae1d8b4771ea1fbe02fdc2041cf6b">gcp::Fragment</a>, <a class="el" href="classgcp_1_1ReactionArrow.html#a08270f1482a01bd597d5c0ee9f10d12a">gcp::ReactionArrow</a>, and <a class="el" href="classgcp_1_1Text.html#a86b0e65e6760ed69f720f827ef2bfd38">gcp::Text</a>.</p>

</div>
</div>
<a class="anchor" id="a9a751a51b887de4a4035ff1927c2aede"></a><!-- doxytag: member="gcu::Object::SetSelected" ref="a9a751a51b887de4a4035ff1927c2aede" args="(GtkWidget *w, int state)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcu::Object::SetSelected </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>state</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>the GtkWidget inside which the <a class="el" href="classgcu_1_1Object.html">Object</a> is displayed. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>the selection state of the <a class="el" href="classgcu_1_1Object.html">Object</a>.</td></tr>
  </table>
  </dd>
</dl>
<p>Used to set the selection state of the <a class="el" href="classgcu_1_1Object.html">Object</a> inside the widget. The values of state are application dependant and have no default value. </p>

<p>Reimplemented in <a class="el" href="classgcp_1_1Arrow.html#acb5e782f942a5d5f318cbf2d0d2acfea">gcp::Arrow</a>, <a class="el" href="classgcp_1_1Atom.html#aecbb80ded1850f8b7c73ee22e6777fed">gcp::Atom</a>, <a class="el" href="classgcp_1_1Bond.html#a77121d6a8790f8afa4a4921f7c9b64da">gcp::Bond</a>, <a class="el" href="classgcp_1_1Electron.html#a0a56660d261d451ae55993b6ce32bc5f">gcp::Electron</a>, <a class="el" href="classgcp_1_1FragmentAtom.html#a4e6f8c633b698e96d2710ac16fcf3656">gcp::FragmentAtom</a>, <a class="el" href="classgcp_1_1Fragment.html#a01f3c368ef462df5bb5f841d79f1a330">gcp::Fragment</a>, <a class="el" href="classgcp_1_1ReactionArrow.html#a8ba555ed6266526c58770ef820894e2d">gcp::ReactionArrow</a>, <a class="el" href="classgcp_1_1ReactionOperator.html#ad039fbf0ebf1b3898d37cc2a42efc388">gcp::ReactionOperator</a>, and <a class="el" href="classgcp_1_1Text.html#a5bdeb24fe0d9ae6ea8ee8c7d57a0f738">gcp::Text</a>.</p>

</div>
</div>
<a class="anchor" id="a69ad6edf7d50950b036f09d9ff86f849"></a><!-- doxytag: member="gcu::Object::Transform2D" ref="a69ad6edf7d50950b036f09d9ff86f849" args="(Matrix2D &amp;m, double x, double y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcu::Object::Transform2D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Matrix2D.html">Matrix2D</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>m</em>&nbsp;</td><td>the <a class="el" href="classgcu_1_1Matrix2D.html">Matrix2D</a> of the transformation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>the x component of the center of the transformation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>the y component of the center of the transformation.</td></tr>
  </table>
  </dd>
</dl>
<p>Used to move and/or transform an object. This virtual method must be overrided by <a class="el" href="classgcu_1_1Object.html">Object</a> derived classes for which it makes sense. The base <a class="el" href="classgcu_1_1Object.html">Object</a> class has no coordinates and the default method calls the corresponding method for every child. </p>

<p>Reimplemented in <a class="el" href="classgcu_1_1Atom.html#a2ff6b67af11f6414fe8e972507e37f62">gcu::Atom</a>, <a class="el" href="classgcu_1_1Bond.html#a2d60a39d5316071e2f49a220348885cf">gcu::Bond</a>, <a class="el" href="classgcp_1_1Arrow.html#abf372b03cedd5966e5119837b3de22f4">gcp::Arrow</a>, <a class="el" href="classgcp_1_1Atom.html#a2636a34f79bd72b0abb7c2e42fd016e0">gcp::Atom</a>, <a class="el" href="classgcp_1_1Bond.html#abe79a5330eb9a97a9a7425a69cc241f3">gcp::Bond</a>, <a class="el" href="classgcp_1_1Electron.html#a64fbe86c9cb5f72ade35fa703055b5d7">gcp::Electron</a>, <a class="el" href="classgcp_1_1Fragment.html#ab2dbc649fd1d9b1b3cc38e3cdfe07aea">gcp::Fragment</a>, <a class="el" href="classgcp_1_1Mesomery.html#ab11a15c03b70b199234ca152d02026c5">gcp::Mesomery</a>, <a class="el" href="classgcp_1_1Molecule.html#a7f6eb1535a5b6ae36d8d5a7bfe1ecce5">gcp::Molecule</a>, <a class="el" href="classgcp_1_1Reaction.html#a9de3b3a8e6b0c09e390ea35bc90143fc">gcp::Reaction</a>, and <a class="el" href="classgcp_1_1Text.html#a581a5d0cb39f2a26b35608d019e83cb3">gcp::Text</a>.</p>

</div>
</div>
<a class="anchor" id="a606a257c41cd9cc177c98958fdf2ae3d"></a><!-- doxytag: member="gcu::Object::Unlink" ref="a606a257c41cd9cc177c98958fdf2ae3d" args="(Object *object)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcu::Object::Unlink </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">Object</a> *&nbsp;</td>
          <td class="paramname"> <em>object</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&nbsp;</td><td>the object to unlink.</td></tr>
  </table>
  </dd>
</dl>
<p>Unlinks object and calls <a class="el" href="classgcu_1_1Object.html#a786610ff1992e4aa1acff883b5479ec7">Object::OnUnlink</a>. </p>

</div>
</div>
<a class="anchor" id="af2fffc10644e8cb8a18da68c8e18e24c"></a><!-- doxytag: member="gcu::Object::Update" ref="af2fffc10644e8cb8a18da68c8e18e24c" args="(GtkWidget *w) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcu::Object::Update </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>w</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>the GtkWidget inside which the <a class="el" href="classgcu_1_1Object.html">Object</a> is displayed.</td></tr>
  </table>
  </dd>
</dl>
<p>Used to update the representation of the <a class="el" href="classgcu_1_1Object.html">Object</a> in the widget. This method might be overrided for displayable <a class="el" href="classgcu_1_1Object.html">Object</a> classes unless the application uses another mechanism. </p>

<p>Reimplemented in <a class="el" href="classgcp_1_1Atom.html#a793c282d0db167ab92a88c37bf32adee">gcp::Atom</a>, <a class="el" href="classgcp_1_1Bond.html#a997bcbb9d07e7bda482adb6742416ceb">gcp::Bond</a>, <a class="el" href="classgcp_1_1Electron.html#a68d2e1968b4746710501c1c53add4f80">gcp::Electron</a>, <a class="el" href="classgcp_1_1FragmentAtom.html#a57b91204844ebab1ad33c54cda61d4c0">gcp::FragmentAtom</a>, <a class="el" href="classgcp_1_1Fragment.html#ad395521ca9c43a82afc0e86e61b44b67">gcp::Fragment</a>, <a class="el" href="classgcp_1_1MesomeryArrow.html#a619640b46d2f1425dd52dc137e053e64">gcp::MesomeryArrow</a>, <a class="el" href="classgcp_1_1ReactionArrow.html#a75893f66876f4134dace2885a735659d">gcp::ReactionArrow</a>, <a class="el" href="classgcp_1_1ReactionOperator.html#a0d346a7b3be3b2dacbe02a18e1d54432">gcp::ReactionOperator</a>, and <a class="el" href="classgcp_1_1Text.html#abe2736cface1fd00fee418af9711bf90">gcp::Text</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="object_8h_source.html">object.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 6 18:33:55 2009 for The Gnome Chemistry Utils by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>