Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
qglv::PotentialField Class Reference

#include <potential_field.hpp>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.

Definition at line 62 of file potential_field.cpp.


Member Function Documentation

void qglv::PotentialField::_glGenLists ( ) [private, virtual]

Definition at line 81 of file potential_field.cpp.

template<typename element_type >
void qglv::PotentialField::_init ( const std::vector< element_type > &  potential_array) [inline, private]

Definition at line 59 of file potential_field.hpp.

Definition at line 74 of file potential_field.cpp.


Member Data Documentation

Opengl id starting point for the lists.

Definition at line 54 of file potential_field.hpp.

Definition at line 55 of file potential_field.hpp.

Definition at line 55 of file potential_field.hpp.

Definition at line 49 of file potential_field.hpp.

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.


The documentation for this class was generated from the following files:


qglv_opengl
Author(s): Daniel Stonier
autogenerated on Sat Jun 18 2016 08:19:28