Changeset 844


Ignore:
Timestamp:
04/27/06 14:59:18 (18 years ago)
Author:
mattausch
Message:

adding functionality for bounding box hacks

Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
5 edited

Legend:

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

    r840 r844  
    13191319                                        "false"); 
    13201320 
     1321        RegisterOption("ViewCells.exportPvs", 
     1322                                        optBool, 
     1323                                        "view_cells_export_pvs=", 
     1324                                        "false"); 
     1325 
    13211326        RegisterOption("ViewCells.exportBboxesForPvs", 
    13221327                                        optBool, 
    1323                                         "view_cells_export_bboxes=", 
     1328                                        "view_cells_export_bounding_boxes=", 
    13241329                                        "true"); 
    13251330 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp

    r840 r844  
    19591959 
    19601960 
    1961 bool ViewCellsTree::Export(ofstream &stream) 
     1961bool ViewCellsTree::Export(ofstream &stream, const bool exportPvs) 
    19621962{ 
    19631963        // export recursivly all view cells from the root 
    1964         ExportViewCell(mRoot, stream); 
     1964        ExportViewCell(mRoot, stream, exportPvs); 
    19651965 
    19661966        return true; 
     
    20072007 
    20082008 
    2009 void ViewCellsTree::ExportViewCell(ViewCell *viewCell, ofstream &stream) 
     2009void ViewCellsTree::ExportViewCell(ViewCell *viewCell, ofstream &stream, const bool exportPvs) 
    20102010{ 
    20112011        if (viewCell->IsLeaf()) 
     
    20182018                 
    20192019                //-- export pvs 
    2020                 if (0) 
     2020                if (exportPvs) 
    20212021                        ExportPvs(viewCell, stream); 
    20222022         
     
    20482048                for (it = interior->mChildren.begin(); it != it_end; ++ it) 
    20492049                { 
    2050                         ExportViewCell(*it, stream); 
     2050                        ExportViewCell(*it, stream, exportPvs); 
    20512051                } 
    20522052 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.h

    r840 r844  
    407407        /** Exports view cells to file. 
    408408        */ 
    409     bool Export(ofstream &stream); 
     409    bool Export(ofstream &stream, const bool exportPvs = false); 
    410410 
    411411        /** Export statistics of this view cell tree. 
     
    511511                NOTE: should be in exporter!! 
    512512        */ 
    513         void ExportViewCell(ViewCell *viewCell, ofstream &stream); 
     513        void ExportViewCell(ViewCell *viewCell, ofstream &stream, const bool exportPvs); 
    514514 
    515515        /** Exports pvs of a view cell. 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r840 r844  
    9494 
    9595        environment->GetBoolValue("ViewCells.exportBboxesForPvs", mExportBboxesForPvs); 
     96        environment->GetBoolValue("ViewCells.exportPvs", mExportPvs); 
    9697 
    9798        char buf[100]; 
     
    27382739        stream << "<ViewCells>" << endl; 
    27392740 
    2740         mViewCellsTree->Export(stream); 
     2741        mViewCellsTree->Export(stream, mExportPvs); 
    27412742 
    27422743        stream << "</ViewCells>" << endl; 
     
    47104711        stream << "<ViewCells>" << endl; 
    47114712         
    4712         mViewCellsTree->Export(stream); 
     4713        mViewCellsTree->Export(stream, mExportPvs); 
    47134714 
    47144715        stream << "</ViewCells>" << endl; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h

    r840 r844  
    585585 
    586586        int mRenderCostEvaluationType; 
     587 
     588        /// if pvs should be exported with view cells 
     589        bool mExportPvs; 
    587590}; 
    588591 
Note: See TracChangeset for help on using the changeset viewer.