/*! * @file grid.h * @brief Definition of ... */ #ifndef _GRID_H #define _GRID_H #include "vertex_array_model.h" // FORWARD DECLARATION //! A class for ... class Grid : public VertexArrayModel { public: Grid(float sizeX, float sizeY, unsigned int resolutionX, unsigned int resolutionY); virtual ~Grid(); float sizeX() const { return this->_sizeX; }; float sizeY() const { return this->_sizeY; }; unsigned int rows() const { return this->_rows; }; unsigned int columns() const { return this->_columns; }; float& height(unsigned int row, unsigned int column) { return this->vertex(row*_columns + row).y;}; private: float _sizeX; float _sizeY; unsigned int _rows; unsigned int _columns; }; #endif /* _GRID_H */