HyperspaceExplorer 0.7.1
|
Values of a ParametricFunction stored on a grid representation of its parameter space. More...
#include <VertexGrid.h>
Public Types | |
typedef VecMath::Vector< P, unsigned > | grid_size_type |
Type for storing the size of the grid in all required dimensions. | |
typedef VecMath::MultiDimensionalVector < VecMath::Vector< N, NUM >, P > | value_storage_type |
Type for the storage of the function values on all grid points. | |
Public Member Functions | |
VertexGrid () | |
Create an empty grid. | |
VertexGrid (const VertexGrid::grid_size_type &grid_size) | |
Fill a grid with a defined grid size. The supplied ParametricFunction knows its definition space. | |
VertexGrid (const value_storage_type &vertices) | |
VertexGrid (const VertexGrid< N, P, NUM > &other) | |
Copy constructor is needed because otherwise it is implicitly deleted. | |
VertexGrid< N, P, NUM > & | operator= (const VertexGrid< N, P, NUM > &other) |
void | setGridSize (const VertexGrid::grid_size_type &grid_size) |
Change the size of the grid. If possible, function values are recalculated. | |
const value_storage_type & | getValues () const |
Access the stored function values. | |
value_storage_type & | getValuesNonConst () |
Access the stored function values. | |
Protected Attributes | |
grid_size_type | _grid_size |
Number of points on the grid in all dimensions. | |
value_storage_type | _vertices |
The actual function values on the grid. |
Values of a ParametricFunction stored on a grid representation of its parameter space.
This class evaluates the parametric equation represented by a ParametricFunction on points throughout its definition space and stores the values of the function at those points in a P
dimensional grid.
N | The dimension of the definition vector space. |
P | The dimension of the parameter vector space. |
NUM | The numeric type managed by the grid. |
VertexGrid< N, P, NUM >::VertexGrid | ( | const VertexGrid< N, P, NUM >::grid_size_type & | grid_size | ) |
Fill a grid with a defined grid size. The supplied ParametricFunction knows its definition space.
f | The function whose values are stored on its definition space. |
grid_size | The size of the grid in each of its dimensions. |
References VertexGrid< N, P, NUM >::setGridSize().
void VertexGrid< N, P, NUM >::setGridSize | ( | const VertexGrid< N, P, NUM >::grid_size_type & | grid_size | ) |
Change the size of the grid. If possible, function values are recalculated.
grid_size | The new grid size. |
Reimplemented in FunctionValueGrid< N, P, NUM >.
Referenced by VertexGrid< N, P, NUM >::VertexGrid().