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