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

◆ vertex_placer()

template<typename Source, typename Access>
std::optional< Placer > MayaFlux::Portal::Forma::Detail::DocumentWalk< Source, Access >::vertex_placer ( const Source & form,
const Source & element,
const ElementHit & hit )
inlineprivate

The placement of vertices written in a form element, which have no state.

Definition at line 665 of file Instantiate.hpp.

666 {
668 fail(element, "a form of vertices has no state, so <element> may not give one");
669 return std::nullopt;
670 }
671 uint64_t where {};
672 const auto input = vertex_binding<Source, Access>().read(form, m_error, &where);
673 if (!input) {
675 return std::nullopt;
676 }
677 auto vertices = vertex_form(*input);
680 }
bool fail(const Source &at, std::string message)
static std::string located(uint64_t row, std::string_view message)
Placer form_placer(Geometry::Form< State > form, State initial)
A Placer that places a form with an initial state on a Surface and returns its element id.
Definition CallTable.hpp:44
void apply_hit(Geometry::Form< T > &form, const ElementHit &hit)
Write a document's spatial fields after a form's own.
Geometry::Form< std::monostate > vertex_form(const VertexGeometryInputs &input)
A Form with no state that draws ordered vertices exactly as written.
Reflect::RecordBinding< VertexGeometryInputs, Source, Access > vertex_binding()
The binding of a vertex form: a topology and one or more vertex children, with an optional defaults c...

References MayaFlux::Portal::Forma::apply_hit(), fail(), MayaFlux::Portal::Forma::Detail::form_placer(), MayaFlux::Portal::Forma::FactoryTable< Source, Access >::located(), m_error, MayaFlux::Portal::Forma::reserved_state_attribute, MayaFlux::Portal::Forma::vertex_binding(), and MayaFlux::Portal::Forma::vertex_form().

Referenced by prepare().

Here is the call graph for this function:
Here is the caller graph for this function: