GridPointGenerator3.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: GridPointGenerator3.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: 3-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_GENERATOR3_H
10 #define CUBBYFLOW_GRID_POINT_GENERATOR3_H
11 
13 
14 namespace CubbyFlow
15 {
19  class GridPointGenerator3 final : public PointGenerator3
20  {
21  public:
29  void ForEachPoint(
30  const BoundingBox3D& boundingBox,
31  double spacing,
32  const std::function<bool(const Vector3D&)>& callback) const;
33  };
34 
36  using GridPointGenerator3Ptr = std::shared_ptr<GridPointGenerator3>;
37 }
38 
39 #endif
3-D vector class.
Definition: Vector3.h:26
void ForEachPoint(const BoundingBox3D &boundingBox, double spacing, const std::function< bool(const Vector3D &)> &callback) const
Invokes callback function for each regular grid points inside boundingBox.
Definition: pybind11Utils.h:24
3-D regular-grid point generator.
Definition: GridPointGenerator3.h:19
std::shared_ptr< GridPointGenerator3 > GridPointGenerator3Ptr
Shared pointer type for the GridPointGenerator3.
Definition: GridPointGenerator3.h:36
3-D axis-aligned bounding box class.
Definition: BoundingBox3.h:44
Abstract base class for 3-D point generator.
Definition: PointGenerator3.h:26