#include <potential_field.hpp>
Public Member Functions | |
void | draw () |
PotentialField (const unsigned int &nx, const unsigned int &ny, const float &resolution, const std::vector< unsigned char > &potential_array) | |
PotentialField (const unsigned int &nx, const unsigned int &ny, const float &resolution, const std::vector< float > &potential_array) | |
virtual | ~PotentialField () |
Public Attributes | |
unsigned int | number_of_cells_x |
unsigned int | number_of_cells_y |
float | resolution |
Private Member Functions | |
virtual void | _glGenLists () |
template<typename element_type > | |
void | _init (const std::vector< element_type > &potential_array) |
Private Attributes | |
int | gl_id |
Opengl id starting point for the lists. | |
unsigned int | gl_index_buffer_id |
unsigned int | gl_vertex_buffer_id |
std::vector< float > | values |
For drawing two dimensional arrays of squares filled with a colour reflecting each cell's value.
Definition at line 33 of file potential_field.hpp.
qglv::PotentialField::PotentialField | ( | const unsigned int & | nx, |
const unsigned int & | ny, | ||
const float & | resolution, | ||
const std::vector< unsigned char > & | potential_array | ||
) |
Definition at line 30 of file potential_field.cpp.
qglv::PotentialField::PotentialField | ( | const unsigned int & | nx, |
const unsigned int & | ny, | ||
const float & | resolution, | ||
const std::vector< float > & | potential_array | ||
) |
Definition at line 46 of file potential_field.cpp.
qglv::PotentialField::~PotentialField | ( | ) | [virtual] |
Definition at line 62 of file potential_field.cpp.
void qglv::PotentialField::_glGenLists | ( | ) | [private, virtual] |
Definition at line 81 of file potential_field.cpp.
void qglv::PotentialField::_init | ( | const std::vector< element_type > & | potential_array | ) | [inline, private] |
Definition at line 59 of file potential_field.hpp.
void qglv::PotentialField::draw | ( | ) |
Definition at line 74 of file potential_field.cpp.
int qglv::PotentialField::gl_id [private] |
Opengl id starting point for the lists.
Definition at line 54 of file potential_field.hpp.
unsigned int qglv::PotentialField::gl_index_buffer_id [private] |
Definition at line 55 of file potential_field.hpp.
unsigned int qglv::PotentialField::gl_vertex_buffer_id [private] |
Definition at line 55 of file potential_field.hpp.
unsigned int qglv::PotentialField::number_of_cells_x |
Definition at line 49 of file potential_field.hpp.
unsigned int qglv::PotentialField::number_of_cells_y |
Definition at line 49 of file potential_field.hpp.
Definition at line 50 of file potential_field.hpp.
std::vector< float > qglv::PotentialField::values [private] |
Definition at line 56 of file potential_field.hpp.