Ignore:
Timestamp:
11/17/05 02:26:30 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp

    r416 r419  
    3030{ 
    3131        X3dParser parser; 
    32         int maxViewCells = 0; 
     32         
    3333        environment->GetFloatValue("ViewCells.height", parser.mViewCellHeight); 
    34         environment->GetIntValue("ViewCells.maxViewCells", maxViewCells); 
    35  
    36         bool loaded = parser.ParseFile(filename, mViewCells); 
    37  
    38         if (maxViewCells > 0) 
    39         { 
    40                 while (mViewCells.size() > maxViewCells) 
    41                 { 
    42                         ViewCell *vc = mViewCells.back(); 
    43                         DEL_PTR(vc); 
    44                         mViewCells.pop_back(); 
    45                 } 
    46         } 
    47         return loaded; 
     34         
     35        return parser.ParseFile(filename, mViewCells); 
    4836} 
    4937 
     
    121109} 
    122110 
    123 bool 
    124 Preprocessor::GenerateViewCells() 
    125 { 
    126         // TODO 
    127         // HACK: derive view cells from the scene objects 
    128         ObjectContainer objects; 
    129  
    130         int maxViewCells = 0; 
    131         environment->GetIntValue("ViewCells.maxViewCells", maxViewCells); 
    132  
    133         mSceneGraph->CollectObjects(&objects); 
    134         ViewCell::DeriveViewCells(objects, mViewCells, maxViewCells); 
    135  
    136         return true; 
    137 } 
    138  
    139111int 
    140 SplitFilenames(const string str, 
    141                                                          vector<string> &filenames) 
     112SplitFilenames(const string str, vector<string> &filenames) 
    142113{ 
    143114        int pos = 0; 
Note: See TracChangeset for help on using the changeset viewer.