Ignore:
Timestamp:
10/02/06 19:07:38 (18 years ago)
Author:
mattausch
Message:

updated view cells loading. probably no optimal for performance

File:
1 edited

Legend:

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

    r1545 r1551  
    130130 
    131131 
     132ViewCell::~ViewCell() 
     133{ 
     134} 
     135 
     136 
    132137const ObjectPvs &ViewCell::GetPvs() const 
    133138{ 
     
    250255{ 
    251256        const bool result = mPvs.AddSample(sample, pdf, contribution); 
    252          
    253257        mPvsSizeValid = false; // have to recompute pvs size 
    254258 
     
    328332 
    329333 
     334 
    330335/************************************************************************/ 
    331336/*                class ViewCellsStatistics implementation              */ 
    332337/************************************************************************/ 
    333  
    334  
    335338 
    336339 
     
    22272230                tstack.pop(); 
    22282231 
    2229                 vc->SetId(currentId ++); 
     2232                if (vc->GetId() != -1) // out of bounds 
     2233                        vc->SetId(currentId ++); 
    22302234 
    22312235                if (!vc->IsLeaf()) 
     
    22662270                stream << "pvs=\""; 
    22672271                 
    2268                 //-- export pvs 
     2272                //-- export pvs, i.e., the ids of the objects in the pvs 
    22692273                if (exportPvs) 
    22702274                { 
    22712275                        ExportPvs(viewCell, stream); 
    22722276                } 
    2273  
    22742277                stream << "\" />" << endl; 
    22752278        } 
     
    22832286                stream << "pvs=\""; 
    22842287 
    2285                 //-- NOTE: do not export pvss for interior view cells because 
     2288                // NOTE: do not export pvss for interior view cells because 
    22862289                // they can be completely reconstructed from the leaf pvss 
    2287                 if (0) 
    2288                         ExportPvs(viewCell, stream); 
     2290                // on the other hand: we could store a tag with the compression scheme, 
     2291        // then some scheme were pvs is in the interiors could be used 
     2292                if (0) ExportPvs(viewCell, stream); 
    22892293                 
    22902294                stream << "\" >" << endl; 
     
    23272331                } 
    23282332        } 
     2333} 
     2334 
     2335 
     2336void ViewCellsTree::SetViewCellsManager(ViewCellsManager *vcm) 
     2337{ 
     2338        mViewCellsManager = vcm; 
    23292339} 
    23302340 
     
    24162426 
    24172427 
    2418  
    2419  
    24202428/************************************************************************/ 
    24212429/*                    MergeStatistics implementation                    */ 
Note: See TracChangeset for help on using the changeset viewer.