Ignore:
Timestamp:
01/03/08 15:53:44 (17 years ago)
Author:
bittner
Message:

big merge: preparation for havran ray caster, check if everything works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp

    r2566 r2575  
     1 
    12#include "SamplingStrategy.h" 
    23#include "Ray.h" 
     
    78#include "RssTree.h" 
    89#include "Mutation.h" 
     10#include "FilterBasedDistribution.h" 
     11#include "DifferenceSampling.h" 
     12 
     13 
     14#ifdef PERFTIMER 
    915#include "Timer/PerfTimer.h" 
    10 #include "DifferenceSampling.h" 
    11  
    12  
     16#endif 
    1317 
    1418namespace GtpVisibilityPreprocessor { 
    1519 
     20 
     21#ifdef PERFTIMER 
    1622extern PerfTimer haltonTimer; 
    1723extern PerfTimer pvsTimer; 
    1824extern PerfTimer viewCellCastTimer; 
    19  
     25#endif 
     26   
    2027//HaltonSequence SamplingStrategy::sHalton; 
    2128 
     
    221228                                                                                                                                           r[4], 
    222229                                                                                                                                           r[5]) 
    223                                                                                                                                            ) - origin; 
     230                                                                                                                           ) - origin; 
    224231         
    225232        const float c = Magnitude(direction); 
     
    591598  if (1) 
    592599  { 
     600#ifdef PERFTIMER 
    593601          const float vcTime = viewCellCastTimer.TotalTime(); 
    594602          const float pvsTime = pvsTimer.TotalTime(); 
    595603          const float haltonTime = haltonTimer.TotalTime(); 
    596  
     604           
    597605          cout << "view cell cast time: " << vcTime << " s" << endl; 
    598606          cout << "pvs time: " << pvsTime << " s" << endl; 
     
    602610          Debug << "pvs time: " << pvsTime << " s" << endl; 
    603611          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 
    604616  } 
    605617} 
     
    712724                                        if (strcmp(curr, "mutation")==0) { 
    713725                                         mDistributions.push_back(new MutationBasedDistribution(mPreprocessor)); 
    714                                         } 
     726                                        } else 
     727                                          if (strcmp(curr, "filter_based")==0) { 
     728                                                mDistributions.push_back(new FilterBasedDistribution(mPreprocessor)); 
     729                                          } 
    715730                                        else if (strcmp(curr, "difference")==0) { 
    716731                                         mDistributions.push_back(new DifferenceSampling(mPreprocessor)); 
    717732                                        } 
     733         
    718734         
    719735         
Note: See TracChangeset for help on using the changeset viewer.