GridPointGenerator2.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: GridPointGenerator2.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: 2-D regular-grid point generator.
6 > Created Time: 2017/08/07
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_GRID_POINT_GENERATOR2_H
10 #define CUBBYFLOW_GRID_POINT_GENERATOR2_H
11 
13 
14 namespace CubbyFlow
15 {
19  class GridPointGenerator2 final : public PointGenerator2
20  {
21  public:
29  void ForEachPoint(
30  const BoundingBox2D& boundingBox,
31  double spacing,
32  const std::function<bool(const Vector2D&)>& callback) const;
33  };
34 
36  using GridPointGenerator2Ptr = std::shared_ptr<GridPointGenerator2>;
37 }
38 
39 #endif
Abstract base class for 2-D point generator.
Definition: PointGenerator2.h:26
2-D axis-aligned bounding box class.
Definition: BoundingBox2.h:44
Definition: pybind11Utils.h:24
2-D regular-grid point generator.
Definition: GridPointGenerator2.h:19
void ForEachPoint(const BoundingBox2D &boundingBox, double spacing, const std::function< bool(const Vector2D &)> &callback) const
Invokes callback function for each regular grid points inside boundingBox.
2-D vector class.
Definition: Vector2.h:26
std::shared_ptr< GridPointGenerator2 > GridPointGenerator2Ptr
Shared pointer type for the GridPointGenerator2.
Definition: GridPointGenerator2.h:36