Changeset 829 for GTP/trunk/Lib/Geom/shared/GeoTool/include
- Timestamp:
- 04/26/06 16:00:29 (19 years ago)
- 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 14 14 #include <GeoMeshSaver.h> 15 15 #include <GeoMeshViewUI.h> 16 //#include <GeoLodStripsLibrary.h> 16 17 17 //#endif 18 namespace Geometry{ class LodTreeLibrary; } 18 19 19 20 class GeoMeshView : public fltk::GlWindow … … 33 34 bool mRotate; 34 35 bool mLodStrip; 36 bool mLodTree; 35 37 36 38 GeoMeshView(int x, … … 94 96 95 97 // Counter Clockwise mode. 96 void activeCCW(){mCCW = true;} ;97 void deactiveCCW(){mCCW = false;} ;98 void activeCCW(){mCCW = true;} 99 void deactiveCCW(){mCCW = false;} 98 100 99 101 // Pan mode. 100 void activePan(){mPan = true;} ;101 void deactivePan(){mPan = false;} ;102 void activePan(){mPan = true;} 103 void deactivePan(){mPan = false;} 102 104 103 105 // Rotate mode. 104 void activeRotate(){mRotate = true;} ;105 void deactiveRotate(){mRotate = false;} ;106 void activeRotate(){mRotate = true;} 107 void deactiveRotate(){mRotate = false;} 106 108 107 109 // 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 110 117 111 118 // Ilumination modes. … … 158 165 // Sets the lodstripslibrary object. 159 166 void setLodStripsLibrary(Geometry::LodStripsLibrary *lodstrips); 167 // Sets the lodtreeslibrary object. 168 void setLodTreesLibrary(Geometry::LodTreeLibrary *lodtrees); 160 169 161 170 // Change de Level of detail of the object. … … 174 183 // LodStrips library object. 175 184 Geometry::LodStripsLibrary *lodStripsLib; 185 // LodTree library object. 186 Geometry::LodTreeLibrary *lodTreeLib; 176 187 177 188 // Flag tha activate / deactivate the color strips. … … 206 217 void drawTriangleStrip(int submesh); 207 218 void drawLodStrip(); 219 void drawLodTree(); 208 220 void enableColorStrips(); 209 221 void disableColorStrips(); -
GTP/trunk/Lib/Geom/shared/GeoTool/include/GeoMeshViewUI.h
r774 r829 42 42 #include "GeoTreeSimpSequence.h" 43 43 #include "GeoLodStripsConstructor.h" 44 #include "GeoLodTreeLibrary.h" 44 45 45 46 // About Dialog. … … 58 59 LODTREES, 59 60 SELECT_LEAVES, 60 VISUALIZE_LODSTRIPS 61 VISUALIZE_LODSTRIPS, 62 VISUALIZE_LODTREES 61 63 }; 62 64 … … 96 98 // Lod strips object. 97 99 LodStripsLibrary *lodStripsLib; 100 // Lod tree object. 101 LodTreeLibrary *lodTreeLib; 98 102 99 103 // Mesh Bounds. … … 170 174 inline void cb_menuLodTreesOpenLeavesSimplification_i(fltk::Item*, void*); 171 175 static void cb_menuLodTreesOpenLeavesSimplification(fltk::Item*, void*); 176 inline void cb_menuLodTreesVisualize_i(fltk::Item*, void*); 177 static void cb_menuLodTreesVisualize(fltk::Item*, void*); 172 178 inline void cb_menuHelpAbout_i(fltk::Item*, void*); 173 179 static void cb_menuHelpAbout(fltk::Item*, void*); … … 206 212 207 213 // Show the LodStrips visulization panel. 208 void show VisualizeLodStrips();214 void showSlider(); 209 215 210 216 void hideStripify(); … … 218 224 219 225 // Hide the LodStrips visualization panel. 220 void hide VisualizeLodStrips();226 void hideSlider(); 221 227 222 228 // Get the number of vertices. … … 292 298 fltk::Item *menuLodStripsVisualize; 293 299 fltk::ItemGroup *menuLodTrees; 300 fltk::Item *menuLodTreesVisualize; 294 301 295 302 fltk::Item *menuSelectLeaves; … … 333 340 // Initialize the lodstripslibrary for visualization. 334 341 void setLodStripsLibrary(std::string lodfile, Mesh *geomesh); 342 // Initialize the lodtreelibrary for visualization. 343 void setLodTreesLibrary(std::string lodfile, Mesh *geomesh); 335 344 336 345 // 26-12-2005
Note: See TracChangeset
for help on using the changeset viewer.