Changeset 2017 for GTP/trunk/Lib/Vis/Preprocessing/src/OspTree.cpp
- Timestamp:
- 01/22/07 23:35:03 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/OspTree.cpp
r1779 r2017 418 418 const bool globalCriteriaMet) 419 419 { 420 OspSubdivisionCandidate *sc = dynamic_cast<OspSubdivisionCandidate *>(splitCandidate);420 OspSubdivisionCandidate *sc = static_cast<OspSubdivisionCandidate *>(splitCandidate); 421 421 OspTraversalData &tData = sc->mParentData; 422 422 … … 475 475 if (mStoreRays) 476 476 { 477 KdLeaf *leaf = dynamic_cast<KdLeaf *>(newNode);477 KdLeaf *leaf = static_cast<KdLeaf *>(newNode); 478 478 479 479 RayInfoContainer::const_iterator it, it_end = tData.mRays->end(); … … 1509 1509 if (!node->IsLeaf()) 1510 1510 { 1511 return ( dynamic_cast<KdInterior *>(node))->mBox;1512 } 1513 1514 KdInterior *parent = dynamic_cast<KdInterior *>(node->mParent);1511 return (static_cast<KdInterior *>(node))->mBox; 1512 } 1513 1514 KdInterior *parent = static_cast<KdInterior *>(node->mParent); 1515 1515 1516 1516 AxisAlignedBox3 box(parent->mBox); … … 1575 1575 for (vit = tmpViewCells.begin(); vit != vit_end; ++ vit) 1576 1576 { 1577 VspViewCell *vc = dynamic_cast<VspViewCell *>(*vit);1577 VspViewCell *vc = static_cast<VspViewCell *>(*vit); 1578 1578 1579 1579 if (!vc->Mailed()) … … 1590 1590 for (vit = viewCells.begin(); vit != vit_end; ++ vit) 1591 1591 { 1592 VspViewCell *vc = dynamic_cast<VspViewCell *>(*vit);1592 VspViewCell *vc = static_cast<VspViewCell *>(*vit); 1593 1593 1594 1594 VspLeaf *leaf = vc->mLeaves[0]; … … 1630 1630 if (node->IsLeaf()) 1631 1631 { 1632 leaf = dynamic_cast<KdLeaf *>(node);1632 leaf = static_cast<KdLeaf *>(node); 1633 1633 } 1634 1634 else 1635 1635 { 1636 1636 // find point 1637 KdInterior *interior = dynamic_cast<KdInterior *>(node);1637 KdInterior *interior = static_cast<KdInterior *>(node); 1638 1638 1639 1639 if (interior->mPosition > pt[interior->mAxis]) … … 2283 2283 if (node->IsLeaf()) 2284 2284 { 2285 KdLeaf *leaf = dynamic_cast<KdLeaf *>(node);2285 KdLeaf *leaf = static_cast<KdLeaf *>(node); 2286 2286 2287 2287 stream << "<Leaf "; … … 2295 2295 else 2296 2296 { 2297 KdInterior *interior = dynamic_cast<KdInterior *>(node);2297 KdInterior *interior = static_cast<KdInterior *>(node); 2298 2298 2299 2299 stream << "<Interior plane=\"" << interior->mPosition << " " … … 2328 2328 if (node->IsLeaf()) 2329 2329 { 2330 KdLeaf *leaf = dynamic_cast<KdLeaf *>(node);2330 KdLeaf *leaf = static_cast<KdLeaf *>(node); 2331 2331 2332 2332 ObjectContainer::const_iterator oit, oit_end = tData.objects->end(); … … 2340 2340 { 2341 2341 KdObjectsTraversalData frontData, backData; 2342 KdInterior *interior = dynamic_cast<KdInterior *>(node);2342 KdInterior *interior = static_cast<KdInterior *>(node); 2343 2343 2344 2344 frontData.objects = new ObjectContainer();
Note: See TracChangeset
for help on using the changeset viewer.