MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
ElementHit.hpp File Reference
Include dependency graph for ElementHit.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MayaFlux::Portal::Forma::ElementHit
 The spatial fields a document gives an element, as Element carries them. More...

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
namespace  MayaFlux::Portal
namespace  MayaFlux::Portal::Forma
namespace  MayaFlux::Portal::Forma::Detail

Functions

template<typename T>
void MayaFlux::Portal::Forma::apply_hit (Geometry::Form< T > &form, const ElementHit &hit)
 Write a document's spatial fields after a form's own.
template<typename Source, typename Access>
bool MayaFlux::Portal::Forma::Detail::hit_fail (const Source &at, const std::string &message, std::string &error)
bool MayaFlux::Portal::Forma::is_hit_child (std::string_view name)
 Whether an element of this name sets spatial fields: bounds, or a region.
bool MayaFlux::Portal::Forma::is_region_element (std::string_view name)
 Whether an element of this name is a region: circle, polygon, stroke or a combination of two.
template<typename Source, typename Access>
bool MayaFlux::Portal::Forma::Detail::only_hit_attributes (const Source &node, std::initializer_list< std::string_view > allowed, std::string &error)
template<typename Source, typename Access, typename T>
bool MayaFlux::Portal::Forma::Detail::read_hit_attribute (const Source &node, std::string_view name, T &value, std::string &error)
template<typename Source, typename Access = Reflect::RecordAccess<Source>>
bool MayaFlux::Portal::Forma::read_hit_child (const Source &child, ElementHit &hit, std::string &error)
 Read one spatial child of an element into hit.
template<typename Source, typename Access>
std::optional< std::function< bool(glm::vec2)> > MayaFlux::Portal::Forma::Detail::read_region (const Source &node, std::string &error)