Changeset 844 for GTP/trunk/Lib
- Timestamp:
- 04/27/06 14:59:18 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp
r840 r844 1319 1319 "false"); 1320 1320 1321 RegisterOption("ViewCells.exportPvs", 1322 optBool, 1323 "view_cells_export_pvs=", 1324 "false"); 1325 1321 1326 RegisterOption("ViewCells.exportBboxesForPvs", 1322 1327 optBool, 1323 "view_cells_export_b boxes=",1328 "view_cells_export_bounding_boxes=", 1324 1329 "true"); 1325 1330 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
r840 r844 1959 1959 1960 1960 1961 bool ViewCellsTree::Export(ofstream &stream )1961 bool ViewCellsTree::Export(ofstream &stream, const bool exportPvs) 1962 1962 { 1963 1963 // export recursivly all view cells from the root 1964 ExportViewCell(mRoot, stream );1964 ExportViewCell(mRoot, stream, exportPvs); 1965 1965 1966 1966 return true; … … 2007 2007 2008 2008 2009 void ViewCellsTree::ExportViewCell(ViewCell *viewCell, ofstream &stream )2009 void ViewCellsTree::ExportViewCell(ViewCell *viewCell, ofstream &stream, const bool exportPvs) 2010 2010 { 2011 2011 if (viewCell->IsLeaf()) … … 2018 2018 2019 2019 //-- export pvs 2020 if ( 0)2020 if (exportPvs) 2021 2021 ExportPvs(viewCell, stream); 2022 2022 … … 2048 2048 for (it = interior->mChildren.begin(); it != it_end; ++ it) 2049 2049 { 2050 ExportViewCell(*it, stream );2050 ExportViewCell(*it, stream, exportPvs); 2051 2051 } 2052 2052 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.h
r840 r844 407 407 /** Exports view cells to file. 408 408 */ 409 bool Export(ofstream &stream );409 bool Export(ofstream &stream, const bool exportPvs = false); 410 410 411 411 /** Export statistics of this view cell tree. … … 511 511 NOTE: should be in exporter!! 512 512 */ 513 void ExportViewCell(ViewCell *viewCell, ofstream &stream );513 void ExportViewCell(ViewCell *viewCell, ofstream &stream, const bool exportPvs); 514 514 515 515 /** Exports pvs of a view cell. -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r840 r844 94 94 95 95 environment->GetBoolValue("ViewCells.exportBboxesForPvs", mExportBboxesForPvs); 96 environment->GetBoolValue("ViewCells.exportPvs", mExportPvs); 96 97 97 98 char buf[100]; … … 2738 2739 stream << "<ViewCells>" << endl; 2739 2740 2740 mViewCellsTree->Export(stream );2741 mViewCellsTree->Export(stream, mExportPvs); 2741 2742 2742 2743 stream << "</ViewCells>" << endl; … … 4710 4711 stream << "<ViewCells>" << endl; 4711 4712 4712 mViewCellsTree->Export(stream );4713 mViewCellsTree->Export(stream, mExportPvs); 4713 4714 4714 4715 stream << "</ViewCells>" << endl; -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r840 r844 585 585 586 586 int mRenderCostEvaluationType; 587 588 /// if pvs should be exported with view cells 589 bool mExportPvs; 587 590 }; 588 591
Note: See TracChangeset
for help on using the changeset viewer.