Changeset 1111 for trunk/packages/vizservers/nanovis/HeightMap.h
- Timestamp:
- Aug 13, 2008, 1:33:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/HeightMap.h
r1000 r1111 15 15 } 16 16 17 class Grid; 18 17 19 /** 18 20 *@class HeightMap 19 21 *@brief Create a surface from height map and line contour of the generated surface 20 22 */ 23 21 24 class HeightMap { 22 25 unsigned int _vertexBufferObjectID; 23 26 unsigned int _textureBufferObjectID; 24 27 int xNum_, yNum_; // Number of elements x and y axes in grid. 28 float *heights_; // Array of original (unscaled) heights 29 // (y-values) 25 30 int _vertexCount; 26 31 CGparameter _tf; … … 59 64 void reset(); 60 65 public : 61 66 void render(graphics::RenderContext* renderContext); 62 67 /** 63 68 *@brief Create a height map with heigh values … … 70 75 *@param height a pointer value adrressing xCount * yCount values of heights 71 76 */ 72 void setHeight(float startX, float startY, float endX, float endY, int xCount, int yCount, float* height); 77 void setHeight(float startX, float startY, float endX, float endY, 78 int xCount, int yCount, float* height); 73 79 74 80 /** … … 77 83 *@param yCount the number of rows of height values 78 84 */ 79 85 void setHeight(int xCount, int yCount, Vector3* heights); 80 86 87 void MapToGrid(Grid *gridPtr); 81 88 /** 82 89 *@brief Define a color map for color shading of heightmap
Note: See TracChangeset
for help on using the changeset viewer.