MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Containment.hpp File Reference
Include dependency graph for Containment.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::ContainmentSource
 What a hit region provider may use: the placed geometry and, when the placement has one, its bounds. More...
class  MayaFlux::Portal::Forma::ContainmentTable
 Hit region providers by name. More...

Namespaces

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

Typedefs

using MayaFlux::Portal::Forma::Containment = Kinesis::HitRegion2D
 The spatial fields of an Element as one value: Kinesis::HitRegion2D.
using MayaFlux::Portal::Forma::ContainmentProvider = std::function<std::optional<Containment>(const ContainmentSource&, std::string&)>
 Produces a hit region from placed geometry, or nullopt with an error.

Functions

void MayaFlux::Portal::Forma::apply_containment (Element &element, const Containment &hit)
 Write a hit region onto an element.
Containment MayaFlux::Portal::Forma::containment_of (std::span< const glm::vec2 > positions, Graphics::PrimitiveTopology topology)
 Hit region derived from placed vertex positions.
template<typename T>
GeometryFn< T > MayaFlux::Portal::Forma::geometry_with_containment (std::function< void(const T &, std::vector< uint8_t > &)> draw, Containment region)
 A geometry function that draws a value and claims a fixed containment.
Containment MayaFlux::Portal::Forma::rect_containment (Kinesis::AABB2D region)
 The rectangle itself as bounds, with no containment test.