Ignore:
Timestamp:
01/18/07 11:44:46 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1989 r1990  
    1515struct SimpleRay; 
    1616class SimpleRayContainer; 
     17class ViewCell; 
    1718 
    1819struct VssRayContainer; 
     
    4546                GVS, 
    4647                MUTATION_BASED_DISTRIBUTION, 
    47                 HW_GLOBAL_LINES_DISTRIBUTION 
     48                HW_GLOBAL_LINES_DISTRIBUTION, 
     49                VIEWCELL_BASED_DISTRIBUTION 
    4850        }; 
    4951 
     
    257259}; 
    258260 
    259 /** This strategy generates samples inside of the objects, e.g., 
    260         for sampling the inside of a colon. 
    261 */ 
    262 /*class ObjectsInteriorDistribution: public SamplingStrategy 
    263 { 
    264  public: 
    265          ObjectsInteriorDistribution(Preprocessor &preprocessor): 
    266          SamplingStrategy(preprocessor) {} 
    267           
    268          virtual bool GenerateSample(SimpleRay &ray); 
    269 }; 
    270 */ 
     261class ViewCellBasedDistribution: public SamplingStrategy 
     262{ 
     263public: 
     264        ViewCellBasedDistribution(Preprocessor &preprocessor, ViewCell *viewCell) 
     265        : SamplingStrategy(preprocessor), mViewCell(viewCell) 
     266        { 
     267                mType = VIEWCELL_BASED_DISTRIBUTION; 
     268        } 
     269 
     270private: 
     271 
     272        virtual bool GenerateSample(SimpleRay &ray); 
     273 
     274        ViewCell *mViewCell; 
     275        static HaltonSequence sHalton; 
     276}; 
     277 
    271278 
    272279class MixtureDistribution: public SamplingStrategy  
Note: See TracChangeset for help on using the changeset viewer.