VertexCenteredScalarGrid2.h
Go to the documentation of this file.
Size2 GetDataSize() const override
Returns the actual data point size.
VertexCenteredScalarGrid2 Build() const
Builds VertexCenteredScalarGrid2 instance.
void Swap(Grid2 *other) override
Swaps the contents with the given other grid.
void Set(const VertexCenteredScalarGrid2 &other)
Sets the contents with the given other grid.
VertexCenteredScalarGrid2()
Constructs zero-sized grid.
Abstract base class for 2-D scalar grid builder.
Definition: ScalarGrid2.h:182
std::shared_ptr< ScalarGrid2 > Clone() const override
Returns the copy of the grid instance.
2-D Vertex-centered scalar grid structure.
Definition: VertexCenteredScalarGrid2.h:24
VertexCenteredScalarGrid2Ptr MakeShared() const
Builds shared pointer of VertexCenteredScalarGrid2 instance.
static Builder GetBuilder()
Returns builder fox VertexCenteredScalarGrid2.
Definition: pybind11Utils.h:24
Builder & WithGridSpacing(const Vector2D &gridSpacing)
Returns builder with grid spacing.
std::shared_ptr< ScalarGrid2 > ScalarGrid2Ptr
Shared pointer for the ScalarGrid2 type.
Definition: ScalarGrid2.h:179
VertexCenteredScalarGrid2 & operator=(const VertexCenteredScalarGrid2 &other)
Sets the contents with the given other grid.
Vector2D GetDataOrigin() const override
A grid builder class that returns 2-D vertex-centered scalar grid.
Definition: VertexCenteredScalarGrid2.h:86
Builder & WithOrigin(const Vector2D &gridOrigin)
Returns builder with grid origin.
Builder & WithResolution(const Size2 &resolution)
Returns builder with resolution.
Abstract base class for 2-D scalar grid structure.
Definition: ScalarGrid2.h:21
std::shared_ptr< VertexCenteredScalarGrid2 > VertexCenteredScalarGrid2Ptr
Shared pointer for the VertexCenteredScalarGrid2 type.
Definition: VertexCenteredScalarGrid2.h:83
Builder & WithInitialValue(double initialVal)
Returns builder with initial value.