HyperspaceExplorer 0.7.1
Public Types | Public Member Functions | Protected Attributes
VertexGrid< N, P, NUM > Class Template Reference

Values of a ParametricFunction stored on a grid representation of its parameter space. More...

#include <VertexGrid.h>

Inheritance diagram for VertexGrid< N, P, NUM >:
Inheritance graph
[legend]
Collaboration diagram for VertexGrid< N, P, NUM >:
Collaboration graph
[legend]

List of all members.

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_typegetValues () const
 Access the stored function values.
value_storage_typegetValuesNonConst ()
 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.

Detailed Description

template<unsigned N, unsigned P, typename NUM = double>
class VertexGrid< N, P, NUM >

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.

Template Parameters:
NThe dimension of the definition vector space.
PThe dimension of the parameter vector space.
NUMThe numeric type managed by the grid.
Author:
Lene Preuss <lene.preuss@gmail.com>

Constructor & Destructor Documentation

template<unsigned N, unsigned P, typename NUM >
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.

Parameters:
fThe function whose values are stored on its definition space.
grid_sizeThe size of the grid in each of its dimensions.

References VertexGrid< N, P, NUM >::setGridSize().

Here is the call graph for this function:


Member Function Documentation

template<unsigned N, unsigned P, typename NUM >
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.

Parameters:
grid_sizeThe new grid size.

Reimplemented in FunctionValueGrid< N, P, NUM >.

Referenced by VertexGrid< N, P, NUM >::VertexGrid().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:19 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo