<!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::CrystalView 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 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 List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespacegcu.html">gcu</a>::<a class="el" href="classgcu_1_1CrystalView.html">CrystalView</a> </div> </div> <div class="contents"> <h1>gcu::CrystalView Class Reference</h1><!-- doxytag: class="gcu::CrystalView" --><!-- doxytag: inherits="gcu::GLView" --> <p><code>#include <<a class="el" href="crystalview_8h_source.html">gcu/crystalview.h</a>></code></p> <div class="dynheader"> Inheritance diagram for gcu::CrystalView:</div> <div class="dynsection"> <div class="center"> <img src="classgcu_1_1CrystalView.gif" usemap="#gcu::CrystalView_map" alt=""/> <map id="gcu::CrystalView_map" name="gcu::CrystalView_map"> <area href="classgcu_1_1GLView.html" alt="gcu::GLView" shape="rect" coords="0,112,113,136"/> <area href="classgcu_1_1Printable.html" alt="gcu::Printable" shape="rect" coords="0,56,113,80"/> <area href="classgcu_1_1DialogOwner.html" alt="gcu::DialogOwner" shape="rect" coords="0,0,113,24"/> </map> </div> </div> <p><a href="classgcu_1_1CrystalView-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1CrystalView.html#ae5efbabdd15e925e9826e75d53ab49c1">CrystalView</a> (<a class="el" href="classgcu_1_1CrystalDoc.html">CrystalDoc</a> *pDoc)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#ae5efbabdd15e925e9826e75d53ab49c1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1CrystalView.html#a895e93934dfbc1bd7d9456b93e132c60">~CrystalView</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a895e93934dfbc1bd7d9456b93e132c60"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1CrystalView.html#a133ba5ce7939ccd0bee2c53ecfd7268f">Load</a> (xmlNodePtr node)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual xmlNodePtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1CrystalView.html#afb48dce20d23e65e5eb348c2eaa6fc22">Save</a> (xmlDocPtr xml) const </td></tr> <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">gdouble </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1CrystalView.html#aecadf7b888e910a34ffe52eaffaad54b">m_height</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">gdouble </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1CrystalView.html#a302955354fbcfe7965fe17df040f1bd7">m_width</a></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>The class representing a view of the model. Each document might have several views. Most methods are automatically called by the framework and should not be explicitely used in programs. </p> <p>Definition at line <a class="el" href="crystalview_8h_source.html#l00045">45</a> of file <a class="el" href="crystalview_8h_source.html">crystalview.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ae5efbabdd15e925e9826e75d53ab49c1"></a><!-- doxytag: member="gcu::CrystalView::CrystalView" ref="ae5efbabdd15e925e9826e75d53ab49c1" args="(CrystalDoc *pDoc)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gcu::CrystalView::CrystalView </td> <td>(</td> <td class="paramtype"><a class="el" href="classgcu_1_1CrystalDoc.html">CrystalDoc</a> * </td> <td class="paramname"> <em>pDoc</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pDoc,:</em> </td><td>a pointer to the <a class="el" href="classgcu_1_1CrystalDoc.html">CrystalDoc</a> instance.</td></tr> </table> </dd> </dl> <p>Creates a new view for the document. </p> </div> </div> <a class="anchor" id="a895e93934dfbc1bd7d9456b93e132c60"></a><!-- doxytag: member="gcu::CrystalView::~CrystalView" ref="a895e93934dfbc1bd7d9456b93e132c60" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual gcu::CrystalView::~CrystalView </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> <p>The destructor of <a class="el" href="classgcu_1_1CrystalView.html">CrystalView</a>. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a133ba5ce7939ccd0bee2c53ecfd7268f"></a><!-- doxytag: member="gcu::CrystalView::Load" ref="a133ba5ce7939ccd0bee2c53ecfd7268f" args="(xmlNodePtr node)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool gcu::CrystalView::Load </td> <td>(</td> <td class="paramtype">xmlNodePtr </td> <td class="paramname"> <em>node</em></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>node,:</em> </td><td>a pointer to the xmlNode containing the serialized view.</td></tr> </table> </dd> </dl> <p>Loads the parameters of the view from an xmlNode. </p> </div> </div> <a class="anchor" id="afb48dce20d23e65e5eb348c2eaa6fc22"></a><!-- doxytag: member="gcu::CrystalView::Save" ref="afb48dce20d23e65e5eb348c2eaa6fc22" args="(xmlDocPtr xml) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual xmlNodePtr gcu::CrystalView::Save </td> <td>(</td> <td class="paramtype">xmlDocPtr </td> <td class="paramname"> <em>xml</em></td> <td> ) </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> </td><td>the xmlDoc used to save the document. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>a pointer to the xmlNode containig the view parameters or NULL if an error occured. </dd></dl> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="aecadf7b888e910a34ffe52eaffaad54b"></a><!-- doxytag: member="gcu::CrystalView::m_height" ref="aecadf7b888e910a34ffe52eaffaad54b" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gdouble <a class="el" href="classgcu_1_1CrystalView.html#aecadf7b888e910a34ffe52eaffaad54b">gcu::CrystalView::m_height</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>The height of the widget. </p> <p>Definition at line <a class="el" href="crystalview_8h_source.html#l00077">77</a> of file <a class="el" href="crystalview_8h_source.html">crystalview.h</a>.</p> </div> </div> <a class="anchor" id="a302955354fbcfe7965fe17df040f1bd7"></a><!-- doxytag: member="gcu::CrystalView::m_width" ref="a302955354fbcfe7965fe17df040f1bd7" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gdouble <a class="el" href="classgcu_1_1CrystalView.html#a302955354fbcfe7965fe17df040f1bd7">gcu::CrystalView::m_width</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>The width of the widget. </p> <p>Definition at line <a class="el" href="crystalview_8h_source.html#l00081">81</a> of file <a class="el" href="crystalview_8h_source.html">crystalview.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="crystalview_8h_source.html">crystalview.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 <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>