<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>OpenVRML: openvrml::node_type Class Reference</title> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <link rel="icon" href="../vrml-16"> <link rel="start" href="http://openvrml.org/index" title="OpenVRML Home"> <link rel="prev" href="http://openvrml.org/discussion" title="Discussion"> <link rel="contents" href="index" title="Documentation Main Page"> <link rel="index" href="functions" title="OpenVRML Compound Members"> <link rel="appendix" href="conformance" title="Conformance Test Results"> <style type="text/css"> @import url("tabs.css"); @import url("http://openvrml.org/openvrml.css"); table { width: 100%; } h2 { border-bottom-style: solid; border-bottom-width: 1px; } /* * Doxygen as of 1.5.4-20071217 uses the class "navpath" instead of "nav". * For now, we'll do both. */ div.nav, div.navpath { background-color: transparent; text-align: left; margin-top: 1em; margin-bottom: 1em; border-color: black; border-left: none; border-right: none; padding-top: 0.5em; padding-bottom: 0.5em; } div.nav :link, div.nav :visited, div.navpath :link, div.navpath :visited { border-width: 1px; border-style: solid; border-color: silver; padding: 2px; } div.nav :link:hover, div.nav :visited:hover, div.navpath :link:hover, div.navpath :visited:hover { border-style: outset; border-color: gray; } div.nav :active, div.navpath :active { border-style: inset; border-color: gray; } .body td { background-color: transparent; } .el { text-decoration: inherit; font-weight: inherit } .elRef { font-weight: inherit } .code:link, .code:visited { text-decoration: inherit; font-weight: inherit; color: inherit; } .codeRef:link { font-weight: normal; color: inherit; } :visited { color: silver; } :link:hover { color: inherit; text-decoration: inherit; background-color: transparent; } h1 { line-height: 1.2em; } td.memItemLeft, td.memItemRight, td.memTemplParams, td.memTemplItemLeft, td.memTemplItemRight, .memtemplate, .memname td { font-family: Consolas, "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Lucida Console", LucidaTypewriter, monospace; } td.memItemLeft, td.memItemRight, td.mdescLeft, td.mdescRight { background-color: rgb(95%, 95%, 95%); border-color: rgb(65%, 65%, 65%); border-width: 1px; font-size: smaller; } .memItemLeft { margin-top: 0.5em; border-top-style: solid; } .mdescLeft { border-bottom-style: solid; } .memItemRight { border-top-style: solid; margin-top: 0.5em; } .mdescRight { border-bottom-style: solid; } .mdescRight { font-style: italic; } .mdTable { background-color: rgb(95%, 95%, 95%); } .memproto td code { font-family: inherit; font-style: italic; } td.pass { background-color: rgb(50%, 100%, 50%); } td.fail { background-color: rgb(100%, 50%, 50%); } td.invalid { background-color: rgb(75%, 75%, 75%); } .memitem { padding: 0; } .memitem table { width: auto; } .memproto, .memdoc { border-width: 1px; border-color: rgb(65%, 65%, 65%); } .memproto { background-color: rgb(90%, 90%, 90%); font-weight: inherit; font-size: smaller; border-top-style: solid; border-left-style: solid; border-right-style: solid; -webkit-border-top-left-radius: 0.6em; -webkit-border-top-right-radius: 0.6em; -moz-border-radius-topleft: 0.6em; -moz-border-radius-topright: 0.6em; } .memdoc { background-color: rgb(95%, 95%, 95%); padding: 2px 5px; border-style: solid; -webkit-border-bottom-left-radius: 0.6em; -webkit-border-bottom-right-radius: 0.6em; -moz-border-radius-bottomleft: 0.6em; -moz-border-radius-bottomright: 0.6em; } .memname { font-weight: inherit; } div.tabs { background-image: url("tab_b-openvrml.png"); } div.tabs span { background-image: url("tab_l-openvrml.png"); } div.tabs a { background-image: url("tab_r-openvrml.png"); border-bottom: 1px solid #a5a5a5; } div.tabs a:link, div.tabs a:visited, div.tabs a:active, div.tabs a:hover { color: black; } table { border-collapse: collapse; border-spacing: 0; } .note { border: 1px solid rgb(65%, 65%, 65%); background-color: rgb(95%, 95%, 95%); margin-left: 10%; margin-right: 10%; } </style> </head> <body> <table class="sitenav"> <tr> <th><a href="http://openvrml.org/index" title="Home">Home</a></th> <th><a href="http://openvrml.org/download" title="Download">Download</a></th> <th><a href="http://openvrml.org/screenshots/index" title="Screen shots">Screen shots</a></th> <th><a href="http://openvrml.org/discussion" title="Mailing lists and IRC">Discussion</a></th> <th>Documentation</th> </tr> </table> <div class="body"> <!-- Generated by Doxygen 1.5.8 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</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="examples.html"><span>Examples</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</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="namespaceopenvrml.html">openvrml</a>::<a class="el" href="classopenvrml_1_1node__type.html">node_type</a> </div> </div> <div class="contents"> <h1>openvrml::node_type Class Reference</h1><!-- doxytag: class="openvrml::node_type" -->Type information object for <code><a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a>s</code>. <a href="#_details">More...</a> <p> <code>#include <openvrml/node.h></code> <p> <div class="dynheader"> Inheritance diagram for openvrml::node_type:</div> <div class="dynsection"> <p><center><img src="classopenvrml_1_1node__type__inherit__graph.png" border="0" usemap="#openvrml_1_1node__type__inherit__map" alt="Inheritance graph"></center> <map name="openvrml_1_1node__type__inherit__map"> <area shape="rect" href="classopenvrml_1_1node__impl__util_1_1abstract__node__type.html" title="Abstract base for openvrml::node_type subclasses." alt="" coords="227,5,520,35"><area shape="rect" href="classopenvrml_1_1null__node__type.html" title="A placeholder node_type." alt="" coords="287,59,460,88"><area shape="rect" href="classopenvrml_1_1script__node_1_1script__node__type.html" title="Type objects for script_nodes." alt="" coords="204,112,543,141"><area shape="rect" href="classopenvrml_1_1node__impl__util_1_1node__type__impl.html" title="A template for concrete node_types." alt="" coords="592,5,920,35"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="classopenvrml_1_1node__type-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__type.html#fe6452426be6fa06120a2c297eeba018">~node_type</a> ()=0 throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#fe6452426be6fa06120a2c297eeba018"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classopenvrml_1_1node__metatype.html">node_metatype</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__type.html#eb706c30aaef97d80d695d0dc0bef1b0">metatype</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The class object associated with the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <a href="#eb706c30aaef97d80d695d0dc0bef1b0"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__type.html#0b0374710976a192aa8079e48dcf7c8a">id</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The name of the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <a href="#0b0374710976a192aa8079e48dcf7c8a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="namespaceopenvrml.html#4c88b862d45625d0cbeb839d4c4e9ec8">node_interface_set</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__type.html#1223aa80c0000ca30c013b399475a5af">interfaces</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the set of interfaces for the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <a href="#1223aa80c0000ca30c013b399475a5af"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const boost::intrusive_ptr< <a class="el" href="classopenvrml_1_1node.html">node</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__type.html#5a20ae182bc5eddacea19c06acdca2d0">create_node</a> (const boost::shared_ptr< <a class="el" href="classopenvrml_1_1scope.html">scope</a> > &<a class="el" href="classopenvrml_1_1scope.html">scope</a>, const <a class="el" href="namespaceopenvrml.html#d650f8bae74971c2e692a7fdff2bd57d">initial_value_map</a> &initial_values=<a class="el" href="namespaceopenvrml.html#d650f8bae74971c2e692a7fdff2bd57d">initial_value_map</a>()) const throw ( unsupported_interface , std::bad_cast , std::bad_alloc )</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new <a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a> with this <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <a href="#5a20ae182bc5eddacea19c06acdca2d0"></a><br></td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__type.html#79a06912c9a144639f1e7be4389d9cd6">node_type</a> (const <a class="el" href="classopenvrml_1_1node__metatype.html">node_metatype</a> &c, const std::string &id) throw ( std::bad_alloc )</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#79a06912c9a144639f1e7be4389d9cd6"></a><br></td></tr> <tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <a class="el" href="namespaceopenvrml.html#4c88b862d45625d0cbeb839d4c4e9ec8">node_interface_set</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__type.html#a0d0f688df779416b838dd80cf2ed3af">do_interfaces</a> () const =0 throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the set of interfaces for the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <a href="#a0d0f688df779416b838dd80cf2ed3af"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <br class="typebreak"> boost::intrusive_ptr< <a class="el" href="classopenvrml_1_1node.html">node</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__type.html#ebadc5da7f12c94e4ef6fbe720933c0d">do_create_node</a> (const boost::shared_ptr< <a class="el" href="classopenvrml_1_1scope.html">scope</a> > &<a class="el" href="classopenvrml_1_1scope.html">scope</a>, const <a class="el" href="namespaceopenvrml.html#d650f8bae74971c2e692a7fdff2bd57d">initial_value_map</a> &initial_values) const =0 throw ( unsupported_interface , std::bad_cast , std::bad_alloc )</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new <a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a> with this <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <a href="#ebadc5da7f12c94e4ef6fbe720933c0d"></a><br></td></tr> <tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classopenvrml_1_1node__metatype.html">node_metatype</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__type.html#bf0612010a05f9babcc1df9e8983ca12">metatype_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The class object associated with the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <a href="#bf0612010a05f9babcc1df9e8983ca12"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__type.html#28269c43edfb22336499df84547b4482">id_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The name of the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <a href="#28269c43edfb22336499df84547b4482"></a><br></td></tr> <tr><td colspan="2"><br><h2>Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__type.html#98a9a6db14bb019e97e21d59a6112963">operator!=</a> (const <a class="el" href="classopenvrml_1_1node__type.html">node_type</a> &lhs, const <a class="el" href="classopenvrml_1_1node__type.html">node_type</a> &rhs) throw()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Compare for inequality. <a href="#98a9a6db14bb019e97e21d59a6112963"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Type information object for <code><a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a>s</code>. <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="fe6452426be6fa06120a2c297eeba018"></a><!-- doxytag: member="openvrml::node_type::~node_type" ref="fe6452426be6fa06120a2c297eeba018" args="()=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">openvrml::node_type::~node_type </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> throw ()<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor. <p> </div> </div><p> <a class="anchor" name="79a06912c9a144639f1e7be4389d9cd6"></a><!-- doxytag: member="openvrml::node_type::node_type" ref="79a06912c9a144639f1e7be4389d9cd6" args="(const node_metatype &c, const std::string &id)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">openvrml::node_type::node_type </td> <td>(</td> <td class="paramtype">const <a class="el" href="classopenvrml_1_1node__metatype.html">node_metatype</a> & </td> <td class="paramname"> <em>c</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>id</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ( std::bad_alloc )<code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>c</em> </td><td>the class object associated with the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. </td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>id</em> </td><td>the name for the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>.</td></tr> </table> </dl> <dl compact><dt><b>Exceptions:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>std::bad_alloc</em> </td><td>if memory allocation fails. </td></tr> </table> </dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="eb706c30aaef97d80d695d0dc0bef1b0"></a><!-- doxytag: member="openvrml::node_type::metatype" ref="eb706c30aaef97d80d695d0dc0bef1b0" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classopenvrml_1_1node__metatype.html">openvrml::node_metatype</a> & openvrml::node_type::metatype </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> The class object associated with the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the class object associated with the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. </dd></dl> </div> </div><p> <a class="anchor" name="0b0374710976a192aa8079e48dcf7c8a"></a><!-- doxytag: member="openvrml::node_type::id" ref="0b0374710976a192aa8079e48dcf7c8a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const std::string & openvrml::node_type::id </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> The name of the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the name of the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. </dd></dl> </div> </div><p> <a class="anchor" name="1223aa80c0000ca30c013b399475a5af"></a><!-- doxytag: member="openvrml::node_type::interfaces" ref="1223aa80c0000ca30c013b399475a5af" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="namespaceopenvrml.html#4c88b862d45625d0cbeb839d4c4e9ec8">openvrml::node_interface_set</a> & openvrml::node_type::interfaces </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Get the set of interfaces for the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <p> This function delegates to <code><a class="el" href="classopenvrml_1_1node__type.html#a0d0f688df779416b838dd80cf2ed3af" title="Get the set of interfaces for the node_type.">do_interfaces</a></code>.<p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the set of interfaces. </dd></dl> </div> </div><p> <a class="anchor" name="5a20ae182bc5eddacea19c06acdca2d0"></a><!-- doxytag: member="openvrml::node_type::create_node" ref="5a20ae182bc5eddacea19c06acdca2d0" args="(const boost::shared_ptr< scope > &scope, const initial_value_map &initial_values=initial_value_map()) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const boost::intrusive_ptr< <a class="el" href="classopenvrml_1_1node.html">openvrml::node</a> > openvrml::node_type::create_node </td> <td>(</td> <td class="paramtype">const boost::shared_ptr< <a class="el" href="classopenvrml_1_1scope.html">scope</a> > & </td> <td class="paramname"> <em>scope</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespaceopenvrml.html#d650f8bae74971c2e692a7fdff2bd57d">initial_value_map</a> & </td> <td class="paramname"> <em>initial_values</em> = <code><a class="el" href="namespaceopenvrml.html#d650f8bae74971c2e692a7fdff2bd57d">initial_value_map</a>()</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const throw ( <a class="el" href="classopenvrml_1_1unsupported__interface.html">unsupported_interface</a> , std::bad_cast , std::bad_alloc )</td> </tr> </table> </div> <div class="memdoc"> <p> Create a new <a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a> with this <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em><a class="el" href="classopenvrml_1_1scope.html" title="The scope class keeps track of defined nodes and prototypes.">scope</a></em> </td><td>the <code><a class="el" href="classopenvrml_1_1scope.html" title="The scope class keeps track of defined nodes and prototypes.">scope</a></code> to which the new <code><a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a></code> should belong. </td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>initial_values</em> </td><td>a map of initial values for the <code><a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a></code>'s fields and <code>exposedFields</code>.</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>a <code>boost::intrusive_ptr</code> to a new <a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a>.</dd></dl> <dl compact><dt><b>Exceptions:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classopenvrml_1_1unsupported__interface.html" title="Exception to indicate that a node interface is not supported.">unsupported_interface</a></em> </td><td>if <code>initial_values</code> specifies a field name that is not supported by the <a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a> type. </td></tr> <tr><td valign="top"></td><td valign="top"><em>std::bad_cast</em> </td><td>if a value in <code>initial_values</code> is the wrong type. </td></tr> <tr><td valign="top"></td><td valign="top"><em>std::bad_alloc</em> </td><td>if memory allocation fails.</td></tr> </table> </dl> <dl class="see" compact><dt><b>See also:</b></dt><dd><a href="http://boost.org/libs/smart_ptr/intrusive_ptr.html">http://boost.org/libs/smart_ptr/intrusive_ptr.html</a> </dd></dl> </div> </div><p> <a class="anchor" name="a0d0f688df779416b838dd80cf2ed3af"></a><!-- doxytag: member="openvrml::node_type::do_interfaces" ref="a0d0f688df779416b838dd80cf2ed3af" args="() const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="namespaceopenvrml.html#4c88b862d45625d0cbeb839d4c4e9ec8">openvrml::node_interface_set</a> & openvrml::node_type::do_interfaces </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [private, pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the set of interfaces for the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <p> Subclasses must implement this function.<p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the set of interfaces. </dd></dl> <p>Implemented in <a class="el" href="classopenvrml_1_1null__node__type.html#85cd2009c35bb5544af2750b3bf3071a">openvrml::null_node_type</a>, <a class="el" href="classopenvrml_1_1node__impl__util_1_1node__type__impl.html#7d0ce0b8b750e52b582b32bbc8d77dd3">openvrml::node_impl_util::node_type_impl< Node ></a>, and <a class="el" href="classopenvrml_1_1script__node_1_1script__node__type.html#f4a62b455a71765ff643fbe4cf3ba0cc">openvrml::script_node::script_node::script_node_type</a>.</p> </div> </div><p> <a class="anchor" name="ebadc5da7f12c94e4ef6fbe720933c0d"></a><!-- doxytag: member="openvrml::node_type::do_create_node" ref="ebadc5da7f12c94e4ef6fbe720933c0d" args="(const boost::shared_ptr< scope > &scope, const initial_value_map &initial_values) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const boost::intrusive_ptr< <a class="el" href="classopenvrml_1_1node.html">openvrml::node</a> > openvrml::node_type::do_create_node </td> <td>(</td> <td class="paramtype">const boost::shared_ptr< <a class="el" href="classopenvrml_1_1scope.html">scope</a> > & </td> <td class="paramname"> <em>scope</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespaceopenvrml.html#d650f8bae74971c2e692a7fdff2bd57d">initial_value_map</a> & </td> <td class="paramname"> <em>initial_values</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const throw ( <a class="el" href="classopenvrml_1_1unsupported__interface.html">unsupported_interface</a> , std::bad_cast , std::bad_alloc )<code> [private, pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Create a new <a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a> with this <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <p> Subclasses must implement this function.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em><a class="el" href="classopenvrml_1_1scope.html" title="The scope class keeps track of defined nodes and prototypes.">scope</a></em> </td><td>the <code><a class="el" href="classopenvrml_1_1scope.html" title="The scope class keeps track of defined nodes and prototypes.">scope</a></code> to which the new <code><a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a></code> should belong. </td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>initial_values</em> </td><td>a map of initial values for the <code><a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a></code>'s fields and <code>exposedFields</code>.</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>a <code>boost::intrusive_ptr</code> to a new <a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a>.</dd></dl> <dl compact><dt><b>Exceptions:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classopenvrml_1_1unsupported__interface.html" title="Exception to indicate that a node interface is not supported.">unsupported_interface</a></em> </td><td>if <code>initial_values</code> specifies a field name that is not supported by the <a class="el" href="classopenvrml_1_1node.html" title="A node in the scene graph.">node</a> type. </td></tr> <tr><td valign="top"></td><td valign="top"><em>std::bad_cast</em> </td><td>if a value in <code>initial_values</code> is the wrong type. </td></tr> <tr><td valign="top"></td><td valign="top"><em>std::bad_alloc</em> </td><td>if memory allocation fails.</td></tr> </table> </dl> <dl class="see" compact><dt><b>See also:</b></dt><dd><a href="http://boost.org/libs/smart_ptr/intrusive_ptr.html">http://boost.org/libs/smart_ptr/intrusive_ptr.html</a> </dd></dl> </div> </div><p> <hr><h2>Friends And Related Function Documentation</h2> <a class="anchor" name="98a9a6db14bb019e97e21d59a6112963"></a><!-- doxytag: member="openvrml::node_type::operator!=" ref="98a9a6db14bb019e97e21d59a6112963" args="(const node_type &lhs, const node_type &rhs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classopenvrml_1_1node__type.html">node_type</a> & </td> <td class="paramname"> <em>lhs</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classopenvrml_1_1node__type.html">node_type</a> & </td> <td class="paramname"> <em>rhs</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw()<code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Compare for inequality. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>lhs</em> </td><td></td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>rhs</em> </td><td></td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if <code>lhs</code> and <code>rhs</code> are not equal; <code>false</code> otherwise. </dd></dl> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="bf0612010a05f9babcc1df9e8983ca12"></a><!-- doxytag: member="openvrml::node_type::metatype_" ref="bf0612010a05f9babcc1df9e8983ca12" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classopenvrml_1_1node__metatype.html">openvrml::node_metatype</a> & <a class="el" href="classopenvrml_1_1node__type.html#bf0612010a05f9babcc1df9e8983ca12">openvrml::node_type::metatype_</a><code> [private]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> The class object associated with the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <p> <p><b>For internal use only.</b></p> <p> </p> </div> </div><p> <a class="anchor" name="28269c43edfb22336499df84547b4482"></a><!-- doxytag: member="openvrml::node_type::id_" ref="28269c43edfb22336499df84547b4482" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const std::string <a class="el" href="classopenvrml_1_1node__type.html#28269c43edfb22336499df84547b4482">openvrml::node_type::id_</a><code> [private]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> The name of the <code><a class="el" href="classopenvrml_1_1node__type.html" title="Type information object for nodes.">node_type</a></code>. <p> <p><b>For internal use only.</b></p> <p> </p> </div> </div><p> </div> </div> <address class="footer"><span class="images"><a href="http://web3d.org/x3d/"><img src="x3d-white-on-black.png" width="43" height="32" border="0" alt="X3D"></a><a href="http://opengl.org"><img src="OGL_sm_wht.png" width="68" height="32" border="0" alt="OpenGL"></a><a href="http://sourceforge.net/projects/openvrml"><img src="http://sourceforge.net/sflogo.php?group_id=7151&type=11" width="120" height="30" border="0" alt="SourceForge.net"></a></span><a href="https://sourceforge.net/apps/trac/openvrml/newticket">Report error</a><br>Generated Thu Aug 13 02:49:20 2009 by Doxygen 1.5.8</address> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script> <script type="text/javascript">_uacct = "UA-446379-2"; urchinTracker();</script> <!-- Piwik --> <script type="text/javascript"> var pkBaseURL = (("https:" == document.location.protocol) ? "https://sourceforge.net/apps/piwik/openvrml/" : "http://sourceforge.net/apps/piwik/openvrml/"); document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); </script><script type="text/javascript"> piwik_action_name = ''; piwik_idsite = 1; piwik_url = pkBaseURL + "piwik.php"; piwik_log(piwik_action_name, piwik_idsite, piwik_url); </script> <object><noscript><p><img src="http://sourceforge.net/apps/piwik/openvrml/piwik.php?idsite=1" alt="piwik"/></p></noscript></object> <!-- End Piwik Tag --> </body> </html>