Ignore:
Timestamp:
May 9, 2015 2:03:06 PM (9 years ago)
Author:
ldelgass
Message:

backport: remove getFlowBounds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nanovis/branches/1.2/nanovis.cpp

    r5406 r5485  
    873873    }
    874874
    875     BBox bbox;
    876     getFlowBounds(bbox.min, bbox.max, onlyVisible);
    877     sceneBounds.extend(bbox);
     875    for (FlowHashmap::iterator itr = flowTable.begin();
     876         itr != flowTable.end(); ++itr) {
     877        Flow *flow = itr->second;
     878
     879        BBox bbox;
     880        flow->getBounds(bbox.min, bbox.max, onlyVisible);
     881        sceneBounds.extend(bbox);
     882    }
    878883
    879884#if 0
     
    10431048    Flow::updatePending = false;
    10441049    return true;
    1045 }
    1046 
    1047 void
    1048 NanoVis::getFlowBounds(Vector3f& min,
    1049                        Vector3f& max,
    1050                        bool onlyVisible)
    1051 {
    1052     TRACE("Enter");
    1053 
    1054     min.set(FLT_MAX, FLT_MAX, FLT_MAX);
    1055     max.set(-FLT_MAX, -FLT_MAX, -FLT_MAX);
    1056 
    1057     for (FlowHashmap::iterator itr = flowTable.begin();
    1058          itr != flowTable.end(); ++itr) {
    1059         itr->second->getBounds(min, max, onlyVisible);
    1060     }
    10611050}
    10621051
Note: See TracChangeset for help on using the changeset viewer.