Changeset 2575 for GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp
- Timestamp:
- 01/03/08 15:53:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp
r2566 r2575 1 1 2 #include "SamplingStrategy.h" 2 3 #include "Ray.h" … … 7 8 #include "RssTree.h" 8 9 #include "Mutation.h" 10 #include "FilterBasedDistribution.h" 11 #include "DifferenceSampling.h" 12 13 14 #ifdef PERFTIMER 9 15 #include "Timer/PerfTimer.h" 10 #include "DifferenceSampling.h" 11 12 16 #endif 13 17 14 18 namespace GtpVisibilityPreprocessor { 15 19 20 21 #ifdef PERFTIMER 16 22 extern PerfTimer haltonTimer; 17 23 extern PerfTimer pvsTimer; 18 24 extern PerfTimer viewCellCastTimer; 19 25 #endif 26 20 27 //HaltonSequence SamplingStrategy::sHalton; 21 28 … … 221 228 r[4], 222 229 r[5]) 223 230 ) - origin; 224 231 225 232 const float c = Magnitude(direction); … … 591 598 if (1) 592 599 { 600 #ifdef PERFTIMER 593 601 const float vcTime = viewCellCastTimer.TotalTime(); 594 602 const float pvsTime = pvsTimer.TotalTime(); 595 603 const float haltonTime = haltonTimer.TotalTime(); 596 604 597 605 cout << "view cell cast time: " << vcTime << " s" << endl; 598 606 cout << "pvs time: " << pvsTime << " s" << endl; … … 602 610 Debug << "pvs time: " << pvsTime << " s" << endl; 603 611 Debug << "halton time: "<< haltonTime << " s" << endl; 612 #else 613 cout << "Timers not supported" << endl; 614 Debug << "Timers for PVS,Halton,Viewcell not supported" << endl; 615 #endif 604 616 } 605 617 } … … 712 724 if (strcmp(curr, "mutation")==0) { 713 725 mDistributions.push_back(new MutationBasedDistribution(mPreprocessor)); 714 } 726 } else 727 if (strcmp(curr, "filter_based")==0) { 728 mDistributions.push_back(new FilterBasedDistribution(mPreprocessor)); 729 } 715 730 else if (strcmp(curr, "difference")==0) { 716 731 mDistributions.push_back(new DifferenceSampling(mPreprocessor)); 717 732 } 733 718 734 719 735
Note: See TracChangeset
for help on using the changeset viewer.