Changeset 5485 for nanovis


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

backport: remove getFlowBounds

Location:
nanovis/branches/1.2
Files:
2 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
  • nanovis/branches/1.2/nanovis.h

    r5402 r5485  
    122122    static void deleteFlows(Tcl_Interp *interp);
    123123    static void deleteFlow(const char *name);
    124     static void getFlowBounds(vrmath::Vector3f& min,
    125                               vrmath::Vector3f& max,
    126                               bool onlyVisible = false);
    127124    static void renderFlows();
    128125    static void resetFlows();
Note: See TracChangeset for help on using the changeset viewer.