CubbyFlow::GridPointGenerator2 Class Referencefinal

2-D regular-grid point generator. More...

#include <Core/PointGenerator/GridPointGenerator2.hpp>

Inheritance diagram for CubbyFlow::GridPointGenerator2:
CubbyFlow::PointGenerator2

Public Member Functions

void ForEachPoint (const BoundingBox2D &boundingBox, double spacing, const std::function< bool(const Vector2D &)> &callback) const override
 Invokes callback function for each regular grid points inside boundingBox. More...
 
- Public Member Functions inherited from CubbyFlow::PointGenerator2
 PointGenerator2 ()=default
 Default constructor. More...
 
 PointGenerator2 (const PointGenerator2 &)=default
 Default copy constructor. More...
 
 PointGenerator2 (PointGenerator2 &&) noexcept=default
 Default move constructor. More...
 
virtual ~PointGenerator2 ()=default
 Default virtual destructor. More...
 
PointGenerator2operator= (const PointGenerator2 &)=default
 Default copy assignment operator. More...
 
PointGenerator2operator= (PointGenerator2 &&) noexcept=default
 Default move assignment operator. More...
 
void Generate (const BoundingBox2D &boundingBox, double spacing, Array1< Vector2D > *points) const
 

Detailed Description

2-D regular-grid point generator.

Member Function Documentation

◆ ForEachPoint()

void CubbyFlow::GridPointGenerator2::ForEachPoint ( const BoundingBox2D boundingBox,
double  spacing,
const std::function< bool(const Vector2D &)> &  callback 
) const
overridevirtual

Invokes callback function for each regular grid points inside boundingBox.

This function iterates every regular grid points inside boundingBox where spacing is the size of the unit cell of regular grid structure.

Implements CubbyFlow::PointGenerator2.


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