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

◆ expose_polygon()

template<typename Source, typename Access>
void MayaFlux::Portal::Forma::expose_polygon ( FactoryTable< Source, Access > & table,
std::string name,
PolygonFactory factory )

Register a PolygonFactory under a name.

The factory element needs points and may hold hole children. The instance needs a rect. The initial state is the element's on member.

Definition at line 82 of file StaticGeometry.hpp.

84{
86 input.required("points")
87 .template repeated<&PolygonInputs::holes>("hole", {}, "points");
88
89 table.template expose_typed<bool>(std::move(name),
90 std::move(input), rect_placement_binding<Source, Access>(), std::move(factory),
92}
RecordBinding & required(std::string name)
Bind described attributes and configured child collections of a source element.
Reflect::RecordBinding< RectPlacementInputs, Source, Access > rect_placement_binding()
A binding for RectPlacementInputs that requires rect.

References MayaFlux::Portal::Forma::PolygonInputs::on, rect_placement_binding(), and MayaFlux::Reflect::RecordBinding< Input, Source, Access >::required().

Here is the call graph for this function: