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 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616
|
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>openvrml::bounding_volume 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::bounding_volume Class Reference</h1>A bounding volume.
<a href="#_details">More...</a>
<p>
Inheritance diagram for openvrml::bounding_volume:<p><center><img src="classopenvrml_1_1bounding__volume__inherit__graph.png" border="0" usemap="#openvrml_1_1bounding__volume__inherit__map" alt="Inheritance graph"></center>
<map name="openvrml_1_1bounding__volume__inherit__map">
<area href="classopenvrml_1_1axis__aligned__bounding__box.html" shape="rect" coords="7,87,244,105" alt="">
<area href="classopenvrml_1_1bounding__sphere.html" shape="rect" coords="268,87,444,105" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classopenvrml_1_1bounding__volume-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1bounding__volume.html#w3">intersection</a> { <br>
<a class="el" href="classopenvrml_1_1bounding__volume.html#w3w0">inside</a> = 1,
<br>
<a class="el" href="classopenvrml_1_1bounding__volume.html#w3w1">outside</a> = -1,
<br>
<a class="el" href="classopenvrml_1_1bounding__volume.html#w3w2">partial</a> = 0
<br>
}</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::bounding_volume::~bounding_volume" ></a>
virtual </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1bounding__volume.html#a0">~bounding_volume</a> ()=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1bounding__volume.html#a1">maximize</a> ()=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Maximize the bounding volume. <a href="#a1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1bounding__volume.html#a2">maximized</a> () const=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Indicates whether the bounding volume is maximized. <a href="#a2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="classopenvrml_1_1bounding__volume.html#w3">intersection</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1bounding__volume.html#a3">intersect_frustum</a> (const <a class="el" href="classopenvrml_1_1frustum.html">openvrml::frustum</a> &<a class="el" href="classopenvrml_1_1frustum.html">frustum</a>) const=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Intersect this bvolume with a frustum. <a href="#a3"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1bounding__volume.html#a4">extend</a> (const <a class="el" href="classopenvrml_1_1bounding__volume.html">bounding_volume</a> &bv)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Extend the <a class="el" href="classopenvrml_1_1bounding__volume.html">bounding_volume</a> to enclose <code>bv</code>. <a href="#a4"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1bounding__volume.html#a5">extend</a> (const <a class="el" href="classopenvrml_1_1vec3f.html">vec3f</a> &p)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Extend the bounding volume to enclose <code>p</code>. <a href="#a5"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1bounding__volume.html#a6">extend</a> (const <a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html">axis_aligned_bounding_box</a> &bbox)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Extend the bounding volume to enclose <code>bbox</code>. <a href="#a6"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1bounding__volume.html#a7">extend</a> (const <a class="el" href="classopenvrml_1_1bounding__sphere.html">bounding_sphere</a> &bs)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Extend this bvolume to enclose the given sphere. <a href="#a7"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1bounding__volume.html#a8">enclose</a> (const std::vector< <a class="el" href="classopenvrml_1_1vec3f.html">vec3f</a> > &points)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enclose the given set of points. <a href="#a8"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1bounding__volume.html#a9">ortho_transform</a> (const <a class="el" href="classopenvrml_1_1mat4f.html">mat4f</a> &M)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Transform this bounding volume using an orthogonal transfom. <a href="#a9"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classopenvrml_1_1bounding__volume.html#a10">transform</a> (const <a class="el" href="classopenvrml_1_1mat4f.html">mat4f</a> &M)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Transform this bounding volume using an affine transfom. <a href="#a10"></a><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A bounding volume.
<p>
All the geometry in a scene maintains a bounding volume to help speed up rendering and picking. Although currently we're just using spheres, the plan is to eventually use tighter bounds like axis aligned boxes around nodes that are expected to be static. That probably means boxes for geometry and spheres for grouping nodes.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classopenvrml_1_1node.html#a67">node::render</a> <p>
<a class="el" href="classopenvrml_1_1bounding__sphere.html">bounding_sphere</a> <p>
<a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html">axis_aligned_bounding_box</a> </dd></dl>
<p>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="w3" doxytag="openvrml::bounding_volume::intersection" ></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"> enum <a class="el" href="classopenvrml_1_1bounding__volume.html#w3">openvrml::bounding_volume::intersection</a>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="w3w0" doxytag="inside" ></a>inside</em> </td><td>
Results of an intersection; indicates that the tested volume is entirely inside the target volume. </td></tr>
<tr><td valign=top><em><a class="anchor" name="w3w1" doxytag="outside" ></a>outside</em> </td><td>
Results of an intersection; indicates that the tested volume is entirely outside the target volume. </td></tr>
<tr><td valign=top><em><a class="anchor" name="w3w2" doxytag="partial" ></a>partial</em> </td><td>
Results of an intersection; indicates that the tested volume intersects with the target volume. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a8" doxytag="openvrml::bounding_volume::enclose" ></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"> void openvrml::bounding_volume::enclose </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const std::vector< <a class="el" href="classopenvrml_1_1vec3f.html">vec3f</a> > & </td>
<td class="mdname1" valign="top" nowrap> <em>points</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Enclose the given set of points.
<p>
This resets the volume from any previous values.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>points</em> </td><td>points. </td></tr>
</table>
</dl>
<p>
Implemented in <a class="el" href="classopenvrml_1_1bounding__sphere.html#a7">openvrml::bounding_sphere</a>, and <a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html#a6">openvrml::axis_aligned_bounding_box</a>. </td>
</tr>
</table>
<a class="anchor" name="a7" doxytag="openvrml::bounding_volume::extend" ></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"> void openvrml::bounding_volume::extend </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classopenvrml_1_1bounding__sphere.html">bounding_sphere</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>b</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Extend this bvolume to enclose the given sphere.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>b</em> </td><td>a bounding sphere </td></tr>
</table>
</dl>
<p>
Implemented in <a class="el" href="classopenvrml_1_1bounding__sphere.html#a6">openvrml::bounding_sphere</a>, and <a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html#a5">openvrml::axis_aligned_bounding_box</a>. </td>
</tr>
</table>
<a class="anchor" name="a6" doxytag="openvrml::bounding_volume::extend" ></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"> void openvrml::bounding_volume::extend </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html">axis_aligned_bounding_box</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>bbox</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Extend the bounding volume to enclose <code>bbox</code>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>bbox</em> </td><td>an axis-aligned bounding box. </td></tr>
</table>
</dl>
<p>
Implemented in <a class="el" href="classopenvrml_1_1bounding__sphere.html#a5">openvrml::bounding_sphere</a>, and <a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html#a4">openvrml::axis_aligned_bounding_box</a>. </td>
</tr>
</table>
<a class="anchor" name="a5" doxytag="openvrml::bounding_volume::extend" ></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"> void openvrml::bounding_volume::extend </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classopenvrml_1_1vec3f.html">vec3f</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>p</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Extend the bounding volume to enclose <code>p</code>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>p</em> </td><td>a point </td></tr>
</table>
</dl>
<p>
Implemented in <a class="el" href="classopenvrml_1_1bounding__sphere.html#a4">openvrml::bounding_sphere</a>, and <a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html#a3">openvrml::axis_aligned_bounding_box</a>. </td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="openvrml::bounding_volume::extend" ></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"> void openvrml::bounding_volume::extend </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classopenvrml_1_1bounding__volume.html">bounding_volume</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>bv</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Extend the <a class="el" href="classopenvrml_1_1bounding__volume.html">bounding_volume</a> to enclose <code>bv</code>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>bv</em> </td><td>a bounding volume. </td></tr>
</table>
</dl>
<p>
Implemented in <a class="el" href="classopenvrml_1_1bounding__sphere.html#a3">openvrml::bounding_sphere</a>, and <a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html#a2">openvrml::axis_aligned_bounding_box</a>. </td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="openvrml::bounding_volume::intersect_frustum" ></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_1bounding__volume.html#w3">bounding_volume::intersection</a> openvrml::bounding_volume::intersect_frustum </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classopenvrml_1_1frustum.html">openvrml::frustum</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>frustum</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Intersect this bvolume with a frustum.
<p>
The test assumes that the frustum is in the canonical looking-down-negative-z orientation, so the bounding volume is going to have to be transformed into the frustum's space. (Alternatives include transforming the frustum into the bvolume's space, or transforming both of them into the projection space. Lots of tradeoffs involved, but transforming the bvolume is probably the simplest approach overall.)<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>frustum</em> </td><td>the frustum.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>inside, outside, or partial.</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classopenvrml_1_1bounding__volume.html#a10">bounding_volume::transform</a> <p>
<a class="el" href="classopenvrml_1_1bounding__volume.html#a9">bounding_volume::ortho_transform</a> </dd></dl>
<p>
Implemented in <a class="el" href="classopenvrml_1_1bounding__sphere.html#a2">openvrml::bounding_sphere</a>, and <a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html#a1">openvrml::axis_aligned_bounding_box</a>. </td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="openvrml::bounding_volume::maximize" ></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"> void openvrml::bounding_volume::maximize </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Maximize the bounding volume.
<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classopenvrml_1_1bounding__volume.html#a2">maximized</a> </dd></dl>
<p>
Implemented in <a class="el" href="classopenvrml_1_1bounding__sphere.html#a8">openvrml::bounding_sphere</a>, and <a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html#a7">openvrml::axis_aligned_bounding_box</a>. </td>
</tr>
</table>
<a class="anchor" name="a2" doxytag="openvrml::bounding_volume::maximized" ></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"> bool openvrml::bounding_volume::maximized </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<code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Indicates whether the bounding volume is maximized.
<p>
The convention is that nodes that should be rendered unconditionally set a maximum bounding volume, ensuring that the branch they are on does not get pruned during culling. Stuff like the picking code needs a way to differentiate this from just a really big bounding volume, or an unset bounding volume.<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the bounding voume is maximized; <code>false</code> otherwise.</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classopenvrml_1_1bounding__volume.html#a1">maximize</a> </dd></dl>
<p>
Implemented in <a class="el" href="classopenvrml_1_1bounding__sphere.html#a9">openvrml::bounding_sphere</a>, and <a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html#a8">openvrml::axis_aligned_bounding_box</a>. </td>
</tr>
</table>
<a class="anchor" name="a9" doxytag="openvrml::bounding_volume::ortho_transform" ></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"> void openvrml::bounding_volume::ortho_transform </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classopenvrml_1_1mat4f.html">mat4f</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>M</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Transform this bounding volume using an orthogonal transfom.
<p>
Orthogonal transformations preserve angles. They include translation, rotation, and uniform scaling. It turns out to be so easy to transform bounding spheres by orthogonal transformations that it's worth special casing. The caller is responsible for assuring that the transformation is in fact orthogonal, otherwise the results are undefined. If in doubt, call transform instead and take the speed hit.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>M</em> </td><td>orthonormal transformation matrix in <a class="el" href="classopenvrml_1_1mat4f.html">mat4f</a> format</td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd>MathUtils </dd></dl>
<p>
Implemented in <a class="el" href="classopenvrml_1_1bounding__sphere.html#a10">openvrml::bounding_sphere</a>, and <a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html#a9">openvrml::axis_aligned_bounding_box</a>. </td>
</tr>
</table>
<a class="anchor" name="a10" doxytag="openvrml::bounding_volume::transform" ></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"> void openvrml::bounding_volume::transform </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classopenvrml_1_1mat4f.html">mat4f</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>M</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Transform this bounding volume using an affine transfom.
<p>
Affine transformations can include nonuniform scaling. It is much messier to deal with them, but VRML allows nonuniform scaling, so we have to handle it. Note that since all orthogonal transforms are affine, it's safe to always call this routine instead of <code>ortho_transform</code>, but it's likely to be slower. The results are undefined if this routine is called with a non-affine argument. Note that VRML Transform nodes only allow affine transformations, so unless you're doing something tricky this routine should always be safe.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>M</em> </td><td>affine transformation matrix. </td></tr>
</table>
</dl>
<p>
Implemented in <a class="el" href="classopenvrml_1_1bounding__sphere.html#a11">openvrml::bounding_sphere</a>, and <a class="el" href="classopenvrml_1_1axis__aligned__bounding__box.html#a10">openvrml::axis_aligned_bounding_box</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>
|