Changeset 2593 for GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
- Timestamp:
- 01/14/08 18:25:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r2591 r2593 14 14 #include "KdTree.h" 15 15 #include "SamplingStrategy.h" 16 #include "Preprocessor.h" 16 17 17 18 … … 145 146 void GlRenderer::RenderIntersectable(Intersectable *object) 146 147 { 147 if (!object )148 if (!object || (object->mRenderedFrame == mCurrentFrame)) 148 149 return; 149 150 150 if (object->mRenderedFrame == mCurrentFrame)151 return;152 153 151 object->mRenderedFrame = mCurrentFrame; 154 155 //if (object->Mailed()) return;156 //object->Mail();157 152 158 153 glPushAttrib(GL_CURRENT_BIT); … … 205 200 206 201 207 void GlRenderer::RenderRays(const VssRayContainer &rays, int colorType, int showDistribution) 208 { 202 void GlRenderer::RenderRays(const VssRayContainer &rays, int colorType, int showDistribution, int maxAge) 203 { 204 float importance; 205 206 glBegin(GL_LINES); 207 209 208 VssRayContainer::const_iterator it = rays.begin(), it_end = rays.end(); 210 211 glBegin(GL_LINES);212 213 float importance;214 209 215 210 for (; it != it_end; ++it) … … 221 216 ((ray->mDistribution == SamplingStrategy::SPATIAL_BOX_BASED_DISTRIBUTION) && ((showDistribution & 2) == 0)) || 222 217 ((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)) 224 220 { 225 221 continue;
Note: See TracChangeset
for help on using the changeset viewer.