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