Ignore:
Timestamp:
04/26/06 16:00:29 (18 years ago)
Author:
gumbau
Message:

Added LodTreeLibrary? working only for trunks

Location:
GTP/trunk/Lib/Geom/shared/GeoTool/include
Files:
2 edited

Legend:

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

    r826 r829  
    1414#include        <GeoMeshSaver.h> 
    1515#include        <GeoMeshViewUI.h> 
    16 //#include      <GeoLodStripsLibrary.h> 
     16 
    1717//#endif 
     18namespace Geometry{ class LodTreeLibrary; } 
    1819 
    1920class GeoMeshView : public fltk::GlWindow 
     
    3334        bool            mRotate; 
    3435        bool            mLodStrip; 
     36        bool            mLodTree; 
    3537 
    3638        GeoMeshView(int                                         x, 
     
    9496 
    9597        //      Counter Clockwise mode. 
    96         void    activeCCW(){mCCW        =       true;}; 
    97         void    deactiveCCW(){mCCW      =       false;}; 
     98        void    activeCCW(){mCCW        =       true;} 
     99        void    deactiveCCW(){mCCW      =       false;} 
    98100 
    99101        //      Pan mode. 
    100         void    activePan(){mPan        =       true;}; 
    101         void    deactivePan(){mPan      =       false;}; 
     102        void    activePan(){mPan        =       true;} 
     103        void    deactivePan(){mPan      =       false;} 
    102104 
    103105        //      Rotate mode. 
    104         void    activeRotate(){mRotate  =       true;}; 
    105         void    deactiveRotate(){mRotate        =       false;}; 
     106        void    activeRotate(){mRotate  =       true;} 
     107        void    deactiveRotate(){mRotate        =       false;} 
    106108 
    107109        //      LodStrip mode. 
    108         void    activeLodStrip(){mLodStrip      =       true;}; 
    109         void    deactiveLodStrip(){mLodStrip    =       false;}; 
     110        void    activeLodStrip(){mLodStrip      =       true;} 
     111        void    deactiveLodStrip(){mLodStrip    =       false;} 
     112 
     113        //      LodTree mode. 
     114        void    activeLodTree(){mLodTree        =       true;} 
     115        void    deactiveLodTree(){mLodTree      =       false;} 
     116 
    110117 
    111118        //      Ilumination modes. 
     
    158165        //      Sets the lodstripslibrary object. 
    159166        void    setLodStripsLibrary(Geometry::LodStripsLibrary *lodstrips); 
     167        //      Sets the lodtreeslibrary object. 
     168        void    setLodTreesLibrary(Geometry::LodTreeLibrary *lodtrees); 
    160169 
    161170        //      Change de Level of detail of the object. 
     
    174183        //      LodStrips library object. 
    175184        Geometry::LodStripsLibrary      *lodStripsLib; 
     185        //      LodTree library object. 
     186        Geometry::LodTreeLibrary        *lodTreeLib; 
    176187         
    177188        //      Flag tha activate / deactivate the color strips. 
     
    206217        void    drawTriangleStrip(int submesh); 
    207218        void    drawLodStrip(); 
     219        void    drawLodTree(); 
    208220        void    enableColorStrips(); 
    209221        void    disableColorStrips(); 
  • GTP/trunk/Lib/Geom/shared/GeoTool/include/GeoMeshViewUI.h

    r774 r829  
    4242#include        "GeoTreeSimpSequence.h" 
    4343#include        "GeoLodStripsConstructor.h" 
     44#include        "GeoLodTreeLibrary.h" 
    4445 
    4546//      About Dialog. 
     
    5859        LODTREES, 
    5960        SELECT_LEAVES, 
    60         VISUALIZE_LODSTRIPS 
     61        VISUALIZE_LODSTRIPS, 
     62        VISUALIZE_LODTREES 
    6163}; 
    6264 
     
    9698        //      Lod strips object. 
    9799        LodStripsLibrary        *lodStripsLib; 
     100        //      Lod tree object. 
     101        LodTreeLibrary  *lodTreeLib; 
    98102         
    99103        //      Mesh Bounds. 
     
    170174        inline void cb_menuLodTreesOpenLeavesSimplification_i(fltk::Item*, void*); 
    171175        static void cb_menuLodTreesOpenLeavesSimplification(fltk::Item*, void*); 
     176        inline void cb_menuLodTreesVisualize_i(fltk::Item*, void*); 
     177        static void cb_menuLodTreesVisualize(fltk::Item*, void*); 
    172178        inline void cb_menuHelpAbout_i(fltk::Item*, void*); 
    173179        static void cb_menuHelpAbout(fltk::Item*, void*); 
     
    206212         
    207213        //      Show the LodStrips visulization panel. 
    208         void    showVisualizeLodStrips(); 
     214        void    showSlider(); 
    209215 
    210216        void    hideStripify(); 
     
    218224 
    219225        //      Hide the LodStrips visualization panel. 
    220         void    hideVisualizeLodStrips(); 
     226        void    hideSlider(); 
    221227         
    222228        //      Get the number of vertices. 
     
    292298        fltk::Item                                      *menuLodStripsVisualize; 
    293299        fltk::ItemGroup                 *menuLodTrees; 
     300        fltk::Item                                      *menuLodTreesVisualize; 
    294301 
    295302        fltk::Item                                      *menuSelectLeaves; 
     
    333340        //      Initialize the lodstripslibrary for visualization. 
    334341        void    setLodStripsLibrary(std::string lodfile, Mesh   *geomesh); 
     342        //      Initialize the lodtreelibrary for visualization. 
     343        void    setLodTreesLibrary(std::string lodfile, Mesh    *geomesh); 
    335344 
    336345        // 26-12-2005 
Note: See TracChangeset for help on using the changeset viewer.