Ignore:
Timestamp:
04/12/07 09:25:16 (17 years ago)
Author:
gumbau
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp

    r2300 r2323  
    413413//------------------------------------------------------------------------- 
    414414inline void GeoMeshViewUI::cb_menuEditPan_i(fltk::Item  *item, void*) 
    415 {        
     415{ 
    416416        //      If the item is activated. 
    417417        if (item->value()) 
     
    496496                geoMeshView->deactiveSolid(); 
    497497        } 
    498                                                                          
     498 
    499499        //      Repaint the canvas. 
    500500        //geoMeshView->redraw(); 
     
    790790//      Leaves collapse Callback 
    791791//------------------------------------------------------------------------- 
    792 inline void GeoMeshViewUI::cb_menuSimplifyLeavesCollapse_i(fltk::Item*, void*) 
     792inline void GeoMeshViewUI::cb_menuSimplifyLeavesCollapse_i(     fltk::Item      *, 
     793                                                                                                                                                                                                                                                void                            *) 
    793794{ 
    794795        //      Show title. 
     
    896897                                                                                cb_menuLodTreesGenerate_i(o,v); 
    897898} 
    898  
    899899 
    900900//------------------------------------------------------------------------- 
     
    10381038} 
    10391039 
    1040  
    1041  
    10421040//------------------------------------------------------------------------- 
    10431041//      About Callback 
     
    11031101                                } 
    11041102                                 
    1105                                 //      if the mesh is stripified. 
     1103                                //      If the mesh is stripified. 
    11061104                                if (error) 
    11071105                                { 
     
    11191117                                        mGeoMesh        =       mesh_aux; 
    11201118 
    1121                                         // Visualize mesh. 
     1119                                        //      Visualize mesh. 
    11221120                                        geoMeshView->setMesh(mGeoMesh); 
    11231121 
     
    11281126                                        } 
    11291127 
    1130                                         // Visualize mesh. 
     1128                                        //      Visualize mesh. 
    11311129                                        geoMeshView->setMesh(mGeoMesh); 
    11321130 
     
    11341132                                break; 
    11351133 
    1136                                 // Simplify leaves 
     1134                                //      Simplify leaves 
    11371135                        case    LEAVES_COLLAPSE: 
    11381136 
     
    13471345                                        delete mUndoMesh; 
    13481346 
    1349  
    13501347                                        mUndoMesh       =       new Mesh(); 
    13511348 
     
    16171614} 
    16181615 
    1619 //--------------------------------------------------------------------------- 
     1616//------------------------------------------------------------------------- 
    16201617//      Show the Simlify Leaves Collapse. 
    1621 //--------------------------------------------------------------------------- 
     1618//------------------------------------------------------------------------- 
    16221619void    GeoMeshViewUI::showLeavesCollapse() 
    16231620{ 
     
    20212018                //      If the mesh does not have shared vertex. 
    20222019                if (!geoSubMesh->mSharedVertexBuffer) 
    2023                 {                        
     2020                { 
    20242021                        //      Adds the vertex of the submesh to the total count. 
    20252022                        vertex_count    +=      geoSubMesh->mVertexBuffer->mVertexCount; 
     
    20892086                { 
    20902087                        strip_count     +=      geoSubMesh->mStripCount; 
    2091                 }        
     2088                } 
    20922089        } 
    20932090 
     
    23512348        tree_sequencer  =       mTreeSimplifier->GetSimplificationSequence(); 
    23522349         
    2353         tree_sequencer->putMeshName(nombremesh);         
     2350        tree_sequencer->putMeshName(nombremesh); 
    23542351        tree_sequencer->Save(Serializer(filename,Serializer::APPEND)); 
    23552352 
     
    24832480} 
    24842481 
     2482//------------------------------------------------------------------------- 
    24852483//      Method that updates the porgress bar. 
     2484//------------------------------------------------------------------------- 
    24862485float GeoMeshViewUI::updateProgressBar(float v) 
    24872486{ 
     
    25382537//      Initialize the lodTreelibrary for visualization. 
    25392538//------------------------------------------------------------------------- 
    2540 void    GeoMeshViewUI::setLodTreesLibrary(const LodStripsLibraryData *lodstripsdata, const TreeSimplificationSequence *treesimpseq, Mesh *geomesh/*, uint32 ileafSubMesh*/) 
     2539void    GeoMeshViewUI::setLodTreesLibrary( 
     2540                                                                                                        const LodStripsLibraryData                              *lodstripsdata, 
     2541                                                                                                        const TreeSimplificationSequence        *treesimpseq, 
     2542                                                                                                        Mesh                                                                                                                    *geomesh) 
    25412543{ 
    25422544        //      If there is no lod strips object. 
     
    25482550 
    25492551        //      New lod strips object. 
    2550  
    25512552        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); 
    25532558 
    25542559        //      Sets the slider range. 
     
    26162621                        //      Translate the MB count to a char value. 
    26172622                        sprintf(char_value, 
    2618                                         "MB %.3f", 
    2619                                         (float)geoMeshLoader->getFileSize()/1024/1024); 
     2623                                                        "MB %.3f", 
     2624                                                        (float)geoMeshLoader->getFileSize()/1024/1024); 
    26202625 
    26212626                        mMB->label(char_value); 
     
    27472752        //      Initialize the lod strip object. 
    27482753        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. 
    27522757        idMeshLeaves    =       -1; 
    27532758 
Note: See TracChangeset for help on using the changeset viewer.