Ignore:
Timestamp:
01/11/08 02:35:42 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2588 r2591  
    205205 
    206206 
    207 void GlRenderer::RenderRays(const VssRayContainer &rays, int colorType) 
     207void GlRenderer::RenderRays(const VssRayContainer &rays, int colorType, int showDistribution) 
    208208{ 
    209209        VssRayContainer::const_iterator it = rays.begin(), it_end = rays.end(); 
     
    217217                VssRay *ray = *it; 
    218218 
     219                // only show distributions that were checked 
     220                if (((ray->mDistribution == SamplingStrategy::DIRECTION_BASED_DISTRIBUTION) && ((showDistribution & 1) == 0)) || 
     221                        ((ray->mDistribution == SamplingStrategy::SPATIAL_BOX_BASED_DISTRIBUTION) && ((showDistribution & 2) == 0)) || 
     222                        ((ray->mDistribution == SamplingStrategy::OBJECT_DIRECTION_BASED_DISTRIBUTION) && ((showDistribution & 4) == 0)) || 
     223                        ((ray->mDistribution == SamplingStrategy::MUTATION_BASED_DISTRIBUTION) && ((showDistribution & 8) == 0))) 
     224                { 
     225                        continue; 
     226                } 
     227                 
    219228                switch (colorType) 
    220229                { 
Note: See TracChangeset for help on using the changeset viewer.