VolumeGridEmitter2.h
Go to the documentation of this file.
52 void AddStepFunctionTarget(const ScalarGrid2Ptr& scalarGridTarget, double minValue, double maxValue);
bool GetIsOneShot() const
Returns true if this emits only once.
Builder & WithSourceRegion(const Surface2Ptr &sourceRegion)
Returns builder with surface defining source region.
Builder & WithIsOneShot(bool isOneShot)
Returns builder with one-shot flag.
VolumeGridEmitter2 Build() const
Builds VolumeGridEmitter2.
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.h:20
Front-end to create VolumeGridEmitter2 objects step by step.
Definition: VolumeGridEmitter2.h:116
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.h:31
void AddTarget(const ScalarGrid2Ptr &scalarGridTarget, const ScalarMapper &customMapper)
Adds a scalar grid target.
Definition: pybind11Utils.h:24
std::shared_ptr< VectorGrid2 > VectorGrid2Ptr
Shared pointer for the VectorGrid2 type.
Definition: VectorGrid2.h:90
std::shared_ptr< ScalarGrid2 > ScalarGrid2Ptr
Shared pointer for the ScalarGrid2 type.
Definition: ScalarGrid2.h:179
std::shared_ptr< VolumeGridEmitter2 > VolumeGridEmitter2Ptr
Shared pointer type for the VolumeGridEmitter2.
Definition: VolumeGridEmitter2.h:111
std::function< Vector2D(double, const Vector2D &, const Vector2D &)> VectorMapper
Maps to a vector value for given signed-dist, location, and old value.
Definition: VolumeGridEmitter2.h:34
std::shared_ptr< ImplicitSurface2 > ImplicitSurface2Ptr
Shared pointer type for the ImplicitSurface2.
Definition: ImplicitSurface2.h:43
const ImplicitSurface2Ptr & GetSourceRegion() const
Returns implicit surface which defines the source region.
VolumeGridEmitter2Ptr MakeShared() const
Builds shared pointer of VolumeGridEmitter2 instance.
static Builder GetBuilder()
Returns builder fox VolumeGridEmitter2.
std::shared_ptr< Surface2 > Surface2Ptr
Shared pointer for the Surface2 type.
Definition: Surface2.h:100
VolumeGridEmitter2(const ImplicitSurface2Ptr &sourceRegion, bool isOneShot=true)
Constructs an emitter with a source and is-one-shot flag.