Ignore:
Timestamp:
Nov 26, 2007, 11:34:00 AM (17 years ago)
Author:
vrinside
Message:

NaN values in a data set is taken into account.

File:
1 edited

Legend:

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

    r780 r820  
    99#include "Vector3.h"
    1010
     11/**
     12 *@class HeightMap
     13 *@brief Create a surface from height map and line contour of the generated surface
     14 */
    1115class HeightMap {
    1216        unsigned int _vertexBufferObjectID;
     
    2832
    2933public :
     34    /**
     35     *@brief Constructor
     36     */
    3037        HeightMap();
     38    /**
     39     *@brief Destructor
     40     */
    3141        ~HeightMap();
    3242
    3343private :
    34         void createIndexBuffer(int xCount, int zCount, int*& indexBuffer, int& indexCount);
     44        void createIndexBuffer(int xCount, int zCount, int*& indexBuffer, int& indexCount, float* heights);
    3545        Vector3* createHeightVertices(float startX, float startY, float endX, float endY, int xCount, int yCount, float* height);
    3646        void reset();
    3747public :
    3848        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     */
    3959        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     */
    4066        void setHeight(int xCount, int yCount, Vector3* heights);
     67
     68    /**
     69     *@brief Define a color map for color shading of heighmap
     70     */
    4171        void setColorMap(TransferFunction* colorMap);
    4272
     73    /**
     74     *@brief Set the visibility of the height map
     75     */
    4376        void setVisible(bool visible);
     77
     78    /**
     79     *@brief Return the status of the visibility
     80     */
    4481        bool isVisible() const;
     82
     83    /**
     84     *@brief Set the visibility of the line contour
     85     */
    4586        void setLineContourVisible(bool visible);
     87
     88    /**
     89     *@brief Defind the color of the line contour
     90     */
    4691    void setLineContourColor(float r, float g, float b);
    4792};
Note: See TracChangeset for help on using the changeset viewer.