Changeset 980 for GTP/trunk/Lib/Geom/shared/GeoTool/include/GeoMeshView.h
- Timestamp:
- 05/24/06 10:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GeoTool/include/GeoMeshView.h
r895 r980 2 2 #ifndef GeoMeshView_h 3 3 #define GeoMeshView_h 4 #include "GL/glew.h" 5 #ifdef _WIN32 6 #include "GL/wglew.h" 7 #endif 4 8 5 9 #include <fltk/events.h> … … 11 15 #include <GeoVertexBuffer.h> 12 16 #include <GeoMesh.h> 13 //#ifndef GeoMeshViewUI_h14 17 #include <GeoMeshSaver.h> 15 18 #include <GeoMeshViewUI.h> 16 19 17 //#endif18 20 namespace Geometry{ class LodTreeLibrary; } 19 21 … … 120 122 void smooth(){glShadeModel(GL_SMOOTH);}; 121 123 124 // Change Open GL context. 125 #ifdef _WIN32 126 HDC hOldDC; 127 HGLRC hOldRC; 128 #endif 129 void saveContext() 130 { 131 #ifdef _WIN32 132 hOldDC = wglGetCurrentDC(); 133 hOldRC = wglGetCurrentContext(); 134 #endif 135 } 136 void restoreContext() 137 { 138 #ifdef _WIN32 139 wglMakeCurrent( hOldDC, hOldRC ); 140 #endif 141 } 142 122 143 // Fits the object in the window view. 123 144 void fit() … … 142 163 143 164 // Gets the bounding box. 144 Geometry::GeometryBounds getBoundingBox();165 //Geometry::GeometryBounds getBoundingBox(); 145 166 146 167 // Store one random color to each strip. … … 151 172 152 173 // JGA 153 // Sets the colorsubmeshi variable154 void set ColorSubmeshi(int submeshIndex);174 // Sets the submesh selected. 175 void setSubMeshSelected(int submeshIndex); 155 176 156 177 // Sets the leaves submesh index. 157 void setLeavesSub mesh(int submeshIndex);178 void setLeavesSubMesh(int submeshIndex); 158 179 159 180 // Gets the leaves submesh index. 160 int getLeavesSub mesh();181 int getLeavesSubMesh(); 161 182 162 183 // Gets the triangle count of the current lod. … … 165 186 // Sets the lodstripslibrary object. 166 187 void setLodStripsLibrary(Geometry::LodStripsLibrary *lodstrips); 188 167 189 // Sets the lodtreeslibrary object. 168 190 void setLodTreesLibrary(Geometry::LodTreeLibrary *lodtrees); … … 191 213 192 214 // Stores the index of the mesh to paint of red color. 193 int colorsubmeshi;215 int mSubMeshSelected; 194 216 195 217 // Frames per second. … … 203 225 float zMed; 204 226 205 int leavesSub mesh;227 int leavesSubMesh; 206 228 207 229 // Submesh count. … … 214 236 215 237 // Paint the mesh object. 216 void drawGeoMesh( int selectedMesh);217 void drawTriangleList(int submesh, bool selectedMesh );238 void drawGeoMesh(bool paintWire); 239 void drawTriangleList(int submesh, bool selectedMesh, bool paintWire); 218 240 void drawTriangleStrip(int submesh); 219 241 void drawLodStrip();
Note: See TracChangeset
for help on using the changeset viewer.