Ignore:
Timestamp:
01/14/08 18:25:44 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2591 r2593  
    1414#include "KdTree.h" 
    1515#include "SamplingStrategy.h" 
     16#include "Preprocessor.h" 
    1617 
    1718 
     
    145146void GlRenderer::RenderIntersectable(Intersectable *object) 
    146147{ 
    147         if (!object) 
     148        if (!object || (object->mRenderedFrame == mCurrentFrame)) 
    148149                return; 
    149150 
    150         if (object->mRenderedFrame == mCurrentFrame) 
    151                 return; 
    152  
    153151        object->mRenderedFrame = mCurrentFrame; 
    154  
    155         //if (object->Mailed()) return; 
    156         //object->Mail(); 
    157152 
    158153        glPushAttrib(GL_CURRENT_BIT); 
     
    205200 
    206201 
    207 void GlRenderer::RenderRays(const VssRayContainer &rays, int colorType, int showDistribution) 
    208 { 
     202void GlRenderer::RenderRays(const VssRayContainer &rays, int colorType, int showDistribution, int maxAge) 
     203{ 
     204        float importance; 
     205 
     206        glBegin(GL_LINES); 
     207 
    209208        VssRayContainer::const_iterator it = rays.begin(), it_end = rays.end(); 
    210  
    211         glBegin(GL_LINES); 
    212          
    213         float importance; 
    214209 
    215210        for (; it != it_end; ++it)  
     
    221216                        ((ray->mDistribution == SamplingStrategy::SPATIAL_BOX_BASED_DISTRIBUTION) && ((showDistribution & 2) == 0)) || 
    222217                        ((ray->mDistribution == SamplingStrategy::OBJECT_DIRECTION_BASED_DISTRIBUTION) && ((showDistribution & 4) == 0)) || 
    223                         ((ray->mDistribution == SamplingStrategy::MUTATION_BASED_DISTRIBUTION) && ((showDistribution & 8) == 0))) 
     218                        ((ray->mDistribution == SamplingStrategy::MUTATION_BASED_DISTRIBUTION) && ((showDistribution & 8) == 0)) || 
     219                        ((mViewCellsManager->GetPreprocessor()->mPass - ray->mPass) >= maxAge)) 
    224220                { 
    225221                        continue; 
Note: See TracChangeset for help on using the changeset viewer.