Changeset 2323 for GTP/trunk/Lib/Geom/shared/GeoTool/src
- Timestamp:
- 04/12/07 09:25:16 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp
r2300 r2323 413 413 //------------------------------------------------------------------------- 414 414 inline void GeoMeshViewUI::cb_menuEditPan_i(fltk::Item *item, void*) 415 { 415 { 416 416 // If the item is activated. 417 417 if (item->value()) … … 496 496 geoMeshView->deactiveSolid(); 497 497 } 498 498 499 499 // Repaint the canvas. 500 500 //geoMeshView->redraw(); … … 790 790 // Leaves collapse Callback 791 791 //------------------------------------------------------------------------- 792 inline void GeoMeshViewUI::cb_menuSimplifyLeavesCollapse_i(fltk::Item*, void*) 792 inline void GeoMeshViewUI::cb_menuSimplifyLeavesCollapse_i( fltk::Item *, 793 void *) 793 794 { 794 795 // Show title. … … 896 897 cb_menuLodTreesGenerate_i(o,v); 897 898 } 898 899 899 900 900 //------------------------------------------------------------------------- … … 1038 1038 } 1039 1039 1040 1041 1042 1040 //------------------------------------------------------------------------- 1043 1041 // About Callback … … 1103 1101 } 1104 1102 1105 // if the mesh is stripified.1103 // If the mesh is stripified. 1106 1104 if (error) 1107 1105 { … … 1119 1117 mGeoMesh = mesh_aux; 1120 1118 1121 // 1119 // Visualize mesh. 1122 1120 geoMeshView->setMesh(mGeoMesh); 1123 1121 … … 1128 1126 } 1129 1127 1130 // 1128 // Visualize mesh. 1131 1129 geoMeshView->setMesh(mGeoMesh); 1132 1130 … … 1134 1132 break; 1135 1133 1136 // 1134 // Simplify leaves 1137 1135 case LEAVES_COLLAPSE: 1138 1136 … … 1347 1345 delete mUndoMesh; 1348 1346 1349 1350 1347 mUndoMesh = new Mesh(); 1351 1348 … … 1617 1614 } 1618 1615 1619 //------------------------------------------------------------------------- --1616 //------------------------------------------------------------------------- 1620 1617 // Show the Simlify Leaves Collapse. 1621 //------------------------------------------------------------------------- --1618 //------------------------------------------------------------------------- 1622 1619 void GeoMeshViewUI::showLeavesCollapse() 1623 1620 { … … 2021 2018 // If the mesh does not have shared vertex. 2022 2019 if (!geoSubMesh->mSharedVertexBuffer) 2023 { 2020 { 2024 2021 // Adds the vertex of the submesh to the total count. 2025 2022 vertex_count += geoSubMesh->mVertexBuffer->mVertexCount; … … 2089 2086 { 2090 2087 strip_count += geoSubMesh->mStripCount; 2091 } 2088 } 2092 2089 } 2093 2090 … … 2351 2348 tree_sequencer = mTreeSimplifier->GetSimplificationSequence(); 2352 2349 2353 tree_sequencer->putMeshName(nombremesh); 2350 tree_sequencer->putMeshName(nombremesh); 2354 2351 tree_sequencer->Save(Serializer(filename,Serializer::APPEND)); 2355 2352 … … 2483 2480 } 2484 2481 2482 //------------------------------------------------------------------------- 2485 2483 // Method that updates the porgress bar. 2484 //------------------------------------------------------------------------- 2486 2485 float GeoMeshViewUI::updateProgressBar(float v) 2487 2486 { … … 2538 2537 // Initialize the lodTreelibrary for visualization. 2539 2538 //------------------------------------------------------------------------- 2540 void GeoMeshViewUI::setLodTreesLibrary(const LodStripsLibraryData *lodstripsdata, const TreeSimplificationSequence *treesimpseq, Mesh *geomesh/*, uint32 ileafSubMesh*/) 2539 void GeoMeshViewUI::setLodTreesLibrary( 2540 const LodStripsLibraryData *lodstripsdata, 2541 const TreeSimplificationSequence *treesimpseq, 2542 Mesh *geomesh) 2541 2543 { 2542 2544 // If there is no lod strips object. … … 2548 2550 2549 2551 // New lod strips object. 2550 2551 2552 lod_index_data = new GeoToolIndexData(geomesh->mSubMeshCount); 2552 lodTreeLib = new Geometry::LodTreeLibrary(lodstripsdata,treesimpseq,geomesh,lod_index_data); 2553 2554 lodTreeLib = new Geometry::LodTreeLibrary( lodstripsdata, 2555 treesimpseq, 2556 geomesh, 2557 lod_index_data); 2553 2558 2554 2559 // Sets the slider range. … … 2616 2621 // Translate the MB count to a char value. 2617 2622 sprintf(char_value, 2618 "MB %.3f",2619 (float)geoMeshLoader->getFileSize()/1024/1024);2623 "MB %.3f", 2624 (float)geoMeshLoader->getFileSize()/1024/1024); 2620 2625 2621 2626 mMB->label(char_value); … … 2747 2752 // Initialize the lod strip object. 2748 2753 lodStripsLib = NULL; 2749 lodTreeLib = NULL;2750 2751 // Identify the mesh that stores the leaves 2754 lodTreeLib = NULL; 2755 2756 // Identify the mesh that stores the leaves. 2752 2757 idMeshLeaves = -1; 2753 2758
Note: See TracChangeset
for help on using the changeset viewer.