PointsToImplicit2.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: PointsToImplicit2.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: Abstract base class for 2-D points-to-implicit converters.
6 > Created Time: 2017/11/16
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_POINTS_TO_IMPLICIT2_H
10 #define CUBBYFLOW_POINTS_TO_IMPLICIT2_H
11 
13 #include <Core/Grid/ScalarGrid2.h>
14 #include <Core/Vector/Vector2.h>
15 
16 namespace CubbyFlow
17 {
20  {
21  public:
24 
26  virtual ~PointsToImplicit2();
27 
29  virtual void Convert(const ConstArrayAccessor1<Vector2D>& points, ScalarGrid2* output) const = 0;
30  };
31 
33  using PointsToImplicit2Ptr = std::shared_ptr<PointsToImplicit2>;
34 }
35 
36 #endif
virtual ~PointsToImplicit2()
Default destructor.
PointsToImplicit2()
Default constructor.
std::shared_ptr< PointsToImplicit2 > PointsToImplicit2Ptr
Shared pointer for the PointsToImplicit2 type.
Definition: PointsToImplicit2.h:33
Abstract base class for 2-D points-to-implicit converters.
Definition: PointsToImplicit2.h:19
1-D read-only array accessor class.
Definition: ArrayAccessor1.h:185
Definition: pybind11Utils.h:24
Abstract base class for 2-D scalar grid structure.
Definition: ScalarGrid2.h:21
virtual void Convert(const ConstArrayAccessor1< Vector2D > &points, ScalarGrid2 *output) const =0
Converts the given points to implicit surface scalar field.