Changeset 820 for trunk/vizservers/nanovis/HeightMap.h
- Timestamp:
- Nov 26, 2007, 11:34:00 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vizservers/nanovis/HeightMap.h
r780 r820 9 9 #include "Vector3.h" 10 10 11 /** 12 *@class HeightMap 13 *@brief Create a surface from height map and line contour of the generated surface 14 */ 11 15 class HeightMap { 12 16 unsigned int _vertexBufferObjectID; … … 28 32 29 33 public : 34 /** 35 *@brief Constructor 36 */ 30 37 HeightMap(); 38 /** 39 *@brief Destructor 40 */ 31 41 ~HeightMap(); 32 42 33 43 private : 34 void createIndexBuffer(int xCount, int zCount, int*& indexBuffer, int& indexCount );44 void createIndexBuffer(int xCount, int zCount, int*& indexBuffer, int& indexCount, float* heights); 35 45 Vector3* createHeightVertices(float startX, float startY, float endX, float endY, int xCount, int yCount, float* height); 36 46 void reset(); 37 47 public : 38 48 void render(); 49 /** 50 *@brief Create a height map with heigh values 51 *@param startX a x position of the first height value 52 *@param startY a y position of the first height value 53 *@param endX a x position of the last height value 54 *@param endY a y position of the last height value 55 *@param xCount the number of columns of height values 56 *@param yCount the number of rows of height values 57 *@param height a pointer value adrressing xCount * yCount values of heights 58 */ 39 59 void setHeight(float startX, float startY, float endX, float endY, int xCount, int yCount, float* height); 60 61 /** 62 *@brief Create a height map with a set of points 63 *@param xCount the number of columns of height values 64 *@param yCount the number of rows of height values 65 */ 40 66 void setHeight(int xCount, int yCount, Vector3* heights); 67 68 /** 69 *@brief Define a color map for color shading of heighmap 70 */ 41 71 void setColorMap(TransferFunction* colorMap); 42 72 73 /** 74 *@brief Set the visibility of the height map 75 */ 43 76 void setVisible(bool visible); 77 78 /** 79 *@brief Return the status of the visibility 80 */ 44 81 bool isVisible() const; 82 83 /** 84 *@brief Set the visibility of the line contour 85 */ 45 86 void setLineContourVisible(bool visible); 87 88 /** 89 *@brief Defind the color of the line contour 90 */ 46 91 void setLineContourColor(float r, float g, float b); 47 92 };
Note: See TracChangeset
for help on using the changeset viewer.