MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ make_placer()

template<typename Source, typename Access = Reflect::RecordAccess<Source>>
template<typename T>
Placer MayaFlux::Portal::Forma::FactoryTable< Source, Access >::make_placer ( Geometry::Form< T > form,
T initial,
std::function< void(Tend< T > &)> after )
inlinestaticprivate

Definition at line 273 of file FactoryTable.hpp.

275 {
278 Tend<T> tend {
279 .form = form,
280 .initial = initial,
281 };
282 tend.place(surface);
283 if (!tend.result) {
284 error = "could not place the element";
285 return std::nullopt;
286 }
287 if (after)
288 after(tend);
289 return tend.result->element.id;
290 };
291 }
Named factories that turn a template's factory element and an instance into placed Forma elements,...