Changeset 5723 for nanovis/branches/1.2
- Timestamp:
- Jun 18, 2015, 2:32:37 PM (9 years ago)
- Location:
- nanovis/branches/1.2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
nanovis/branches/1.2
- Property svn:mergeinfo changed
/nanovis/trunk merged: 5722
- Property svn:mergeinfo changed
-
nanovis/branches/1.2/Flow.cpp
r5702 r5723 406 406 volume->setPosition(pos); 407 407 408 Volume::updatePending = true;409 408 return volume; 410 409 } … … 427 426 _volume->specularLevel(_sv.specular); 428 427 _volume->specularExponent(_sv.specularExp); 429 _volume->visible(_sv.showVolume); 430 431 Volume::updatePending = true; 432 } 428 } -
nanovis/branches/1.2/nanovis.cpp
r5718 r5723 84 84 NanoVis::HeightMapHashmap NanoVis::heightMapTable; 85 85 86 float NanoVis::xMin = FLT_MAX;87 float NanoVis::xMax = -FLT_MAX;88 float NanoVis::yMin = FLT_MAX;89 float NanoVis::yMax = -FLT_MAX;90 float NanoVis::zMin = FLT_MAX;91 float NanoVis::zMax = -FLT_MAX;92 86 BBox NanoVis::sceneBounds; 93 87 … … 811 805 } 812 806 delete volume; 807 Volume::updatePending = true; 813 808 } 814 809 … … 849 844 delete itr->second; 850 845 flowTable.erase(itr); 846 Flow::updatePending = true; 851 847 } 852 848 } … … 876 872 TRACE("Enter"); 877 873 878 /* 879 * Step 1. Get the overall min and max magnitudes of all the 880 * flow vectors. 881 */ 874 double xMin, xMax, yMin, yMax, zMin, zMax; 875 xMin = yMin = zMin = DBL_MAX; 876 xMax = yMax = zMax = -DBL_MAX; 882 877 Flow::magMin = DBL_MAX; 883 878 Flow::magMax = -DBL_MAX; 884 885 879 for (FlowHashmap::iterator itr = flowTable.begin(); 886 880 itr != flowTable.end(); ++itr) { … … 929 923 TRACE("magMin=%g magMax=%g", Flow::magMin, Flow::magMax); 930 924 931 /*932 * Step 2. Generate the vector field from each data set.933 */934 925 for (FlowHashmap::iterator itr = flowTable.begin(); 935 926 itr != flowTable.end(); ++itr) { -
nanovis/branches/1.2/nanovis.h
r5718 r5723 146 146 static HeightMapHashmap heightMapTable; 147 147 148 static float xMin, xMax, yMin, yMax, zMin, zMax;149 148 static vrmath::BBox sceneBounds; 150 149
Note: See TracChangeset
for help on using the changeset viewer.