Ignore:
Timestamp:
06/26/06 17:36:46 (19 years ago)
Author:
gumbau
Message:

LODs parameters changed to the range 1-0 (max-min)

Location:
GTP/trunk/Lib/Geom/shared/GeoTool
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GeoTool/include/GeoMeshView.h

    r998 r1058  
    190190 
    191191        //      Change de Level of detail of the object. 
    192         void    GoToLod_LodStrip(unsigned int lod); 
    193         void    GoToLod_LodTree(unsigned int lod); 
     192        void    GoToLod_LodStrip(float lod); 
     193        void    GoToLod_LodTree(float lod); 
    194194         
    195195        // load a image file as a texture 
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshView.cpp

    r1051 r1058  
    11291129//      Change de Level of detail of the object. 
    11301130//--------------------------------------------------------------------------- 
    1131 void    GeoMeshView::GoToLod_LodStrip(unsigned int      lod) 
     1131void    GeoMeshView::GoToLod_LodStrip(float     lod) 
    11321132{ 
    11331133        if (mLodStrip) 
     
    11411141//      Change de Level of detail of the object. 
    11421142//--------------------------------------------------------------------------- 
    1143 void    GeoMeshView::GoToLod_LodTree(unsigned int       lod) 
     1143void    GeoMeshView::GoToLod_LodTree(float      lod) 
    11441144{ 
    11451145        if (mLodTree) 
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp

    r1050 r1058  
    13731373{ 
    13741374        //      Change the lod. 
    1375         geoMeshView->GoToLod_LodStrip((unsigned int)o->value()); 
     1375        geoMeshView->GoToLod_LodStrip((float)o->value()); 
    13761376 
    13771377        //      Refresh data aplication. 
     
    13941394{ 
    13951395        //      Change the lod. 
    1396         geoMeshView->GoToLod_LodTree((unsigned int)o->value()); 
     1396        geoMeshView->GoToLod_LodTree((float)o->value()); 
    13971397 
    13981398        //      Refresh data aplication. 
     
    24012401 
    24022402        //      Sets the slider range. 
    2403         mLodStripSlider->range(lodStripsLib->MinLod(),lodStripsLib->MaxLod()); 
     2403//      mLodStripSlider->range(lodStripsLib->MinLod(),lodStripsLib->MaxLod()); 
     2404        mLodStripSlider->range(0.0f,1.0f); 
    24042405 
    24052406        //      Pass to geomeshview the lod strips object. 
     
    24312432 
    24322433        //      Sets the slider range. 
    2433         mLodStripSlider->range(lodTreeLib->MaxTrunkLod(), lodTreeLib->MinTrunkLod()); 
    2434         mLodTreeSlider->range(lodTreeLib->MaxFoliageLod(), lodTreeLib->MinFoliageLod()); 
     2434//      mLodStripSlider->range(lodTreeLib->MaxTrunkLod(), lodTreeLib->MinTrunkLod()); 
     2435//      mLodTreeSlider->range(lodTreeLib->MaxFoliageLod(), lodTreeLib->MinFoliageLod()); 
     2436        mLodStripSlider->range(0.0f,1.0f); 
     2437        mLodTreeSlider->range(0.0f,1.0f); 
    24352438 
    24362439        //      Pass to geomeshview the lod strips object. 
     
    24382441         
    24392442        //      Puts the slider in the max position. 
    2440         mLodStripSlider->value(lodTreeLib->MinTrunkLod()); 
    2441         mLodTreeSlider->value(lodTreeLib->MinFoliageLod()); 
     2443        mLodStripSlider->value(1.0f); 
     2444        mLodTreeSlider->value(1.0f); 
    24422445} 
    24432446 
Note: See TracChangeset for help on using the changeset viewer.