Loading...
Searching...
No Matches
VolumeGridEmitter2.hpp
Go to the documentation of this file.
Abstract base class for 2-D grid-based emitters.
Definition GridEmitter2.hpp:23
Definition Matrix.hpp:30
Front-end to create VolumeGridEmitter2 objects step by step.
Definition VolumeGridEmitter2.hpp:143
Builder & WithIsOneShot(bool isOneShot)
Returns builder with one-shot flag.
VolumeGridEmitter2 Build() const
Builds VolumeGridEmitter2.
VolumeGridEmitter2Ptr MakeShared() const
Builds shared pointer of VolumeGridEmitter2 instance.
Builder & WithSourceRegion(const Surface2Ptr &sourceRegion)
Returns builder with surface defining source region.
void AddSignedDistanceTarget(const ScalarGrid2Ptr &scalarGridTarget)
Adds signed-distance target to the scalar grid.
std::function< double(double, const Vector2D &, double)> ScalarMapper
Maps to a scalar value for given signed-dist, location, and old value.
Definition VolumeGridEmitter2.hpp:33
VolumeGridEmitter2(VolumeGridEmitter2 &&) noexcept=default
Default move constructor.
void AddStepFunctionTarget(const ScalarGrid2Ptr &scalarGridTarget, double minValue, double maxValue)
Adds step function target to the scalar grid.
void AddTarget(const ScalarGrid2Ptr &scalarGridTarget, const ScalarMapper &customMapper)
Adds a scalar grid target.
VolumeGridEmitter2(const VolumeGridEmitter2 &)=default
Default copy constructor.
static Builder GetBuilder()
Returns builder fox VolumeGridEmitter2.
std::function< Vector2D(double, const Vector2D &, const Vector2D &)> VectorMapper
Maps to a vector value for given signed-dist, location, and old value.
Definition VolumeGridEmitter2.hpp:37
const ImplicitSurface2Ptr & GetSourceRegion() const
Returns implicit surface which defines the source region.
VolumeGridEmitter2(ImplicitSurface2Ptr sourceRegion, bool isOneShot=true)
Constructs an emitter with a source and is-one-shot flag.
bool GetIsOneShot() const
Returns true if this emits only once.
Definition pybind11Utils.hpp:21
std::shared_ptr< VolumeGridEmitter2 > VolumeGridEmitter2Ptr
Shared pointer type for the VolumeGridEmitter2.
Definition VolumeGridEmitter2.hpp:137
std::shared_ptr< Surface2 > Surface2Ptr
Shared pointer for the Surface2 type.
Definition Surface.hpp:144
std::shared_ptr< VectorGrid2 > VectorGrid2Ptr
Shared pointer for the VectorGrid2 type.
Definition VectorGrid.hpp:110
std::shared_ptr< ScalarGrid2 > ScalarGrid2Ptr
Shared pointer for the ScalarGrid2 type.
Definition ScalarGrid.hpp:266
std::shared_ptr< ImplicitSurface2 > ImplicitSurface2Ptr
Shared pointer type for the ImplicitSurface2.
Definition ImplicitSurface.hpp:67
1.9.8