Ignore:
Timestamp:
Aug 13, 2008, 1:33:28 PM (16 years ago)
Author:
gah
Message:

nanovis/heightmap update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/HeightMap.h

    r1000 r1111  
    1515}
    1616
     17class Grid;
     18
    1719/**
    1820 *@class HeightMap
    1921 *@brief Create a surface from height map and line contour of the generated surface
    2022 */
     23
    2124class HeightMap {
    2225    unsigned int _vertexBufferObjectID;
    2326    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)
    2530    int _vertexCount;
    2631    CGparameter _tf;
     
    5964        void reset();
    6065public :
    61         void render(graphics::RenderContext* renderContext);
     66    void render(graphics::RenderContext* renderContext);
    6267    /**
    6368     *@brief Create a height map with heigh values
     
    7075     *@param height a pointer value adrressing xCount * yCount values of heights
    7176     */
    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);
    7379
    7480    /**
     
    7783     *@param yCount the number of rows of height values
    7884     */
    79         void setHeight(int xCount, int yCount, Vector3* heights);
     85    void setHeight(int xCount, int yCount, Vector3* heights);
    8086
     87    void MapToGrid(Grid *gridPtr);
    8188    /**
    8289     *@brief Define a color map for color shading of heightmap
Note: See TracChangeset for help on using the changeset viewer.