1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383
|
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>openvrml::geometry_node 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("doxygen.css");
@import url("http://openvrml.org/openvrml.css");
.body td {
background-color: transparent;
}
div.qindex {
background-color: transparent;
border: none;
}
a.qindex {
text-decoration: inherit;
color: inherit
}
a.qindex:visited {
text-decoration: inherit;
font-weight: inherit;
color: inherit
}
a.qindex:hover {
text-decoration: inherit;
background-color: transparent;
}
a.qindexHL {
text-decoration: inherit;
font-weight: inherit;
background-color: transparent;
color: inherit;
}
a.qindexHL:hover {
text-decoration: inherit;
background-color: transparent;
color: inherit;
}
a.qindexHL:visited {
text-decoration: inherit;
background-color: transparent;
color: inherit;
}
a.el {
text-decoration: inherit;
font-weight: inherit
}
a.elRef {
font-weight: inherit
}
a.code {
text-decoration: inherit;
font-weight: inherit;
color: inherit;
}
a.codeRef {
font-weight: normal;
color: inherit;
}
a:hover {
text-decoration: inherit;
background-color: inherit;
}
h1 {
line-height: 1.2em;
}
div.qindex {
font-size: smaller;
}
div.qindex .qindex:link, div.qindex .qindex:visited {
font-weight: inherit;
}
div.qindex .qindexHL:link, div.qindex .qindexHL:visited {
font-weight: bold;
}
td.memItemLeft, td.memItemRight, .mdRow td {
font-family: "Bitstream Vera Sans Mono",
"LucidaTypewriter",
"Lucida Console",
monospace;
}
td.memItemLeft, td.memItemRight, td.mdescLeft, td.mdescRight {
background-color: rgb(95%, 95%, 95%);
}
.mdRow {
background-color: rgb(95%, 95%, 95%);
}
.mdTable {
background-color: rgb(95%, 95%, 95%);
}
.mdRow td {
background-color: rgb(95%, 95%, 95%);
}
.mdRow td code {
font-family: sans-serif;
font-style: italic;
}
</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.3.4-20031112 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<h1>openvrml::geometry_node Class Reference</h1>Abstract base class for geometry nodes.
<a href="#_details">More...</a>
<p>
Inheritance diagram for openvrml::geometry_node:<p><center><img src="classopenvrml_1_1geometry__node__inherit__graph.png" border="0" usemap="#openvrml_1_1geometry__node__inherit__map" alt="Inheritance graph"></center>
<map name="openvrml_1_1geometry__node__inherit__map">
<area href="classopenvrml_1_1vrml97__node_1_1abstract__geometry__node.html" shape="rect" coords="7,156,311,174" alt="">
<area href="classopenvrml_1_1node.html" shape="rect" coords="108,17,209,36" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for openvrml::geometry_node:<p><center><img src="classopenvrml_1_1geometry__node__coll__graph.png" border="0" usemap="#openvrml_1_1geometry__node__coll__map" alt="Collaboration graph"></center>
<map name="openvrml_1_1geometry__node__coll__map">
<area href="classopenvrml_1_1node.html" shape="rect" coords="503,108,604,127" alt="">
<area href="classopenvrml_1_1child__node.html" shape="rect" coords="21,180,157,199" alt="">
<area href="classopenvrml_1_1scene.html" shape="rect" coords="556,452,665,471" alt="">
<area href="classopenvrml_1_1browser.html" shape="rect" coords="324,361,444,380" alt="">
<area href="classopenvrml_1_1node__class.html" shape="rect" coords="391,452,532,471" alt="">
<area href="structopenvrml_1_1browser_1_1event.html" shape="rect" coords="383,271,543,289" alt="">
<area href="classopenvrml_1_1node__ptr.html" shape="rect" coords="181,180,307,199" alt="">
<area href="classopenvrml_1_1field__value.html" shape="rect" coords="520,180,656,199" alt="">
<area href="classopenvrml_1_1script__node__class.html" shape="rect" coords="220,543,401,561" alt="">
<area href="classopenvrml_1_1node__type.html" shape="rect" coords="499,543,635,561" alt="">
<area href="classopenvrml_1_1viewpoint__node.html" shape="rect" coords="7,271,172,289" alt="">
<area href="classopenvrml_1_1scope__ptr.html" shape="rect" coords="592,17,725,36" alt="">
<area href="classopenvrml_1_1scope.html" shape="rect" coords="668,108,777,127" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classopenvrml_1_1geometry__node-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><a class="anchor" name="a0" doxytag="openvrml::geometry_node::~geometry_node" ></a>
virtual </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1geometry__node.html#a0">~geometry_node</a> ()=0 throw ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroy. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual const <a class="el" href="classopenvrml_1_1geometry__node.html">geometry_node</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1geometry__node.html#a1">to_geometry</a> () const throw ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Cast to a <a class="el" href="classopenvrml_1_1geometry__node.html">geometry_node</a>. <a href="#a1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="classopenvrml_1_1geometry__node.html">geometry_node</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1geometry__node.html#a2">to_geometry</a> () throw ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Cast to a <a class="el" href="classopenvrml_1_1geometry__node.html">geometry_node</a>. <a href="#a2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="classopenvrml_1_1viewer.html#w0">viewer::object_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1geometry__node.html#a3">insert_geometry</a> (<a class="el" href="classopenvrml_1_1viewer.html">openvrml::viewer</a> &v, <a class="el" href="classopenvrml_1_1rendering__context.html">rendering_context</a> context)=0</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual const <a class="el" href="classopenvrml_1_1color__node.html">color_node</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1geometry__node.html#a4">color</a> () const throw ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the color node (if any) associated with this geometry. <a href="#a4"></a><br><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_1geometry__node.html#b0">geometry_node</a> (const <a class="el" href="classopenvrml_1_1node__type.html">node_type</a> &<a class="el" href="classopenvrml_1_1node.html#o0">type</a>, const <a class="el" href="classopenvrml_1_1scope__ptr.html">scope_ptr</a> &<a class="el" href="classopenvrml_1_1scope.html">scope</a>) throw ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct. <a href="#b0"></a><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Abstract base class for geometry nodes.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="b0" doxytag="openvrml::geometry_node::geometry_node" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> openvrml::geometry_node::geometry_node </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classopenvrml_1_1node__type.html">node_type</a> & </td>
<td class="mdname" nowrap> <em>type</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const <a class="el" href="classopenvrml_1_1scope__ptr.html">scope_ptr</a> & </td>
<td class="mdname" nowrap> <em>scope</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> throw ()<code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Construct.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>type</em> </td><td>the <a class="el" href="classopenvrml_1_1node__type.html">node_type</a> associated with the node. </td></tr>
<tr><td valign=top><em>scope</em> </td><td>the Scope the node belongs to. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a4" doxytag="openvrml::geometry_node::color" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> const <a class="el" href="classopenvrml_1_1color__node.html">color_node</a> * openvrml::geometry_node::color </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const throw ()<code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Get the color node (if any) associated with this geometry.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the <a class="el" href="classopenvrml_1_1color__node.html">color_node</a> associated associated with this geometry, or 0 if there is no such node.</dd></dl>
<p>
<dl compact><dt><b><a class="el" href="todo.html#_todo000015">Todo:</a></b></dt><dd>Reevaluate the way the renderer visits geometry nodes; potentially eliminate this method. </dd></dl>
<p>
Reimplemented in <a class="el" href="classopenvrml_1_1vrml97__node_1_1abstract__indexed__set__node.html#a2">openvrml::vrml97_node::abstract_indexed_set_node</a>. </td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="openvrml::geometry_node::insert_geometry" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classopenvrml_1_1viewer.html#w0">viewer::object_t</a> openvrml::geometry_node::insert_geometry </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classopenvrml_1_1viewer.html">openvrml::viewer</a> & </td>
<td class="mdname" nowrap> <em>v</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="classopenvrml_1_1rendering__context.html">rendering_context</a> </td>
<td class="mdname" nowrap> <em>context</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>v</em> </td><td>viewer. </td></tr>
<tr><td valign=top><em>context</em> </td><td>rendering context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>object identifier for the inserted geometry. </dd></dl>
<p>
Implemented in <a class="el" href="classopenvrml_1_1vrml97__node_1_1box__node.html#a2">openvrml::vrml97_node::box_node</a>, <a class="el" href="classopenvrml_1_1vrml97__node_1_1cone__node.html#a2">openvrml::vrml97_node::cone_node</a>, <a class="el" href="classopenvrml_1_1vrml97__node_1_1cylinder__node.html#a2">openvrml::vrml97_node::cylinder_node</a>, <a class="el" href="classopenvrml_1_1vrml97__node_1_1elevation__grid__node.html#a3">openvrml::vrml97_node::elevation_grid_node</a>, <a class="el" href="classopenvrml_1_1vrml97__node_1_1extrusion__node.html#a2">openvrml::vrml97_node::extrusion_node</a>, <a class="el" href="classopenvrml_1_1vrml97__node_1_1indexed__face__set__node.html#a3">openvrml::vrml97_node::indexed_face_set_node</a>, <a class="el" href="classopenvrml_1_1vrml97__node_1_1indexed__line__set__node.html#a2">openvrml::vrml97_node::indexed_line_set_node</a>, <a class="el" href="classopenvrml_1_1vrml97__node_1_1point__set__node.html#a3">openvrml::vrml97_node::point_set_node</a>, <a class="el" href="classopenvrml_1_1vrml97__node_1_1sphere__node.html#a2">openvrml::vrml97_node::sphere_node</a>, and <a class="el" href="classopenvrml_1_1vrml97__node_1_1text__node.html#a3">openvrml::vrml97_node::text_node</a>. </td>
</tr>
</table>
<a class="anchor" name="a2" doxytag="openvrml::geometry_node::to_geometry" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classopenvrml_1_1geometry__node.html">geometry_node</a> * openvrml::geometry_node::to_geometry </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> throw ()<code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Cast to a <a class="el" href="classopenvrml_1_1geometry__node.html">geometry_node</a>.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>a pointer to this <a class="el" href="classopenvrml_1_1geometry__node.html">geometry_node</a>. </dd></dl>
<p>
Reimplemented from <a class="el" href="classopenvrml_1_1node.html#a27">openvrml::node</a>. </td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="openvrml::geometry_node::to_geometry" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> const <a class="el" href="classopenvrml_1_1geometry__node.html">geometry_node</a> * openvrml::geometry_node::to_geometry </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const throw ()<code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Cast to a <a class="el" href="classopenvrml_1_1geometry__node.html">geometry_node</a>.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>a pointer to this <a class="el" href="classopenvrml_1_1geometry__node.html">geometry_node</a>. </dd></dl>
<p>
Reimplemented from <a class="el" href="classopenvrml_1_1node.html#a26">openvrml::node</a>. </td>
</tr>
</table>
</div>
<address class="footer"><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=7151&type=3" width="125" height="37" border="0" alt="SourceForge.net Logo" align="right"></a><a href="http://sourceforge.net/tracker/?func=add&group_id=7151&atid=107151">Report error</a><br>Generated Sun Nov 16 20:22:39 2003 by Doxygen 1.3.4-20031112</address>
</body>
</html>
|