VectorGrid2.h
Go to the documentation of this file.
60 virtual void Fill(const Vector2D& value, ExecutionPolicy policy = ExecutionPolicy::Parallel) = 0;
63 virtual void Fill(const std::function<Vector2D(const Vector2D&)>& func, ExecutionPolicy policy = ExecutionPolicy::Parallel) = 0;
2-D read-only array accessor class.
Definition: ArrayAccessor2.h:261
Abstract base class for 2-D vector grid builder.
Definition: VectorGrid2.h:93
Abstract base class for 2-D vector grid structure.
Definition: VectorGrid2.h:19
void Deserialize(const std::vector< uint8_t > &buffer) override
Deserializes the input buffer to the grid instance.
virtual VectorGrid2Ptr Build(const Size2 &resolution, const Vector2D &gridSpacing, const Vector2D &gridOrigin, const Vector2D &initialVal) const =0
Returns 2-D vector grid with given parameters.
virtual std::shared_ptr< VectorGrid2 > Clone() const =0
Returns the copy of the grid instance.
Definition: pybind11Utils.h:24
std::shared_ptr< VectorGrid2 > VectorGrid2Ptr
Shared pointer for the VectorGrid2 type.
Definition: VectorGrid2.h:90
void Resize(size_t resolutionX, size_t resolutionY, double gridSpacingX=1.0, double gridSpacingY=1.0, double originX=0.0, double originY=0.0, double initialValueX=0.0, double initialValueY=0.0)
Resizes the grid using given parameters.
virtual void Fill(const Vector2D &value, ExecutionPolicy policy=ExecutionPolicy::Parallel)=0
Fills the grid with given value.
virtual void OnResize(const Size2 &resolution, const Vector2D &gridSpacing, const Vector2D &origin, const Vector2D &initialValue)=0
Invoked when the resizing happens.
void Serialize(std::vector< uint8_t > *buffer) const override
Serializes the grid instance to the output buffer.
std::shared_ptr< VectorGridBuilder2 > VectorGridBuilder2Ptr
Shared pointer for the VectorGridBuilder2 type.
Definition: VectorGrid2.h:111