VolumeGridEmitter2.hpp
Go to the documentation of this file.
37 std::function<Vector2D(double, const Vector2D&, const Vector2D&)>;
bool GetIsOneShot() const
Returns true if this emits only once.
2-D grid-based volumetric emitter.
Definition: VolumeGridEmitter2.hpp:27
void AddStepFunctionTarget(const ScalarGrid2Ptr &scalarGridTarget, double minValue, double maxValue)
Adds step function target to the scalar grid.
Abstract base class for 2-D grid-based emitters.
Definition: GridEmitter2.hpp:22
Front-end to create VolumeGridEmitter2 objects step by step.
Definition: VolumeGridEmitter2.hpp:142
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
void AddTarget(const ScalarGrid2Ptr &scalarGridTarget, const ScalarMapper &customMapper)
Adds a scalar grid target.
Definition: pybind11Utils.hpp:20
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< VolumeGridEmitter2 > VolumeGridEmitter2Ptr
Shared pointer type for the VolumeGridEmitter2.
Definition: VolumeGridEmitter2.hpp:137
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
std::shared_ptr< ImplicitSurface2 > ImplicitSurface2Ptr
Shared pointer type for the ImplicitSurface2.
Definition: ImplicitSurface.hpp:67
VolumeGridEmitter2(ImplicitSurface2Ptr sourceRegion, bool isOneShot=true)
Constructs an emitter with a source and is-one-shot flag.
const ImplicitSurface2Ptr & GetSourceRegion() const
Returns implicit surface which defines the source region.
static Builder GetBuilder()
Returns builder fox VolumeGridEmitter2.
std::shared_ptr< Surface2 > Surface2Ptr
Shared pointer for the Surface2 type.
Definition: Surface.hpp:144