MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Instantiate.hpp File Reference
#include "ActionTable.hpp"
#include "CallTable.hpp"
#include "StaticGeometry.hpp"
Include dependency graph for Instantiate.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::Detail::ActionBinding
 An action prepared for one event of one instance: the filter to subscribe with, and the action a host registered, already decoded. More...
struct  MayaFlux::Portal::Forma::Detail::DocumentWalk< Source, Access >::ActionSpec
class  MayaFlux::Portal::Forma::Detail::DocumentWalk< Source, Access >
struct  MayaFlux::Portal::Forma::Detail::DocumentWalk< Source, Access >::InstanceInfo
struct  MayaFlux::Portal::Forma::Detail::LayerAttributes
 The document's own attributes on an instance, all beginning with the reserved prefix. More...
struct  MayaFlux::Portal::Forma::ManifestTables< Source, Access >
 The three tables a document is placed through, as one plain value. More...
struct  MayaFlux::Portal::Forma::PlacedInstance
 Where an instance of a document ended up. More...
struct  MayaFlux::Portal::Forma::Detail::DocumentWalk< Source, Access >::PreparedInstance
struct  MayaFlux::Portal::Forma::Detail::DocumentWalk< Source, Access >::SurfaceInstances

Namespaces

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

Typedefs

using MayaFlux::Portal::Forma::PlacedInstances = std::map<std::string, PlacedInstance, std::less<>>
 The placed instances of a document by the id the document gave them.
using MayaFlux::Portal::Forma::SurfaceMap = std::map<std::string, Surface, std::less<>>
 Surfaces by the document name a host binds them to.

Functions

template<typename Source, typename Access>
std::optional< PlacedInstances > MayaFlux::Portal::Forma::Detail::instantiate (const FactoryTable< Source, Access > &table, const ActionTable< Source, Access > *actions, const CallTable< Source, Access > *calls, const Source &root, SurfaceMap &surfaces, std::string &error)
template<typename Source, typename Access = Reflect::RecordAccess<Source>>
std::optional< PlacedInstances > MayaFlux::Portal::Forma::instantiate_document (const FactoryTable< Source, Access > &table, const ActionTable< Source, Access > &actions, const Source &root, SurfaceMap &surfaces, std::string &error)
 Place a document whose instances attach host actions to events.
template<typename Source, typename Access = Reflect::RecordAccess<Source>>
std::optional< PlacedInstances > MayaFlux::Portal::Forma::instantiate_document (const FactoryTable< Source, Access > &table, const Source &root, SurfaceMap &surfaces, std::string &error)
 Place every instance of a document through a table.
template<typename Source, typename Access = Reflect::RecordAccess<Source>>
std::optional< PlacedInstances > MayaFlux::Portal::Forma::instantiate_document (const ManifestTables< Source, Access > &tables, const Source &root, SurfaceMap &surfaces, std::string &error)
 Place a document through all three tables.
template<typename Source, typename Access = Reflect::RecordAccess<Source>>
std::optional< std::vector< uint32_t > > MayaFlux::Portal::Forma::instantiate_rows (const FactoryTable< Source, Access > &table, const Source &root, std::string_view template_id, const Kakshya::CompositeArray &rows, Surface &surface, std::string &error)
 Make one element per row of typed placements from a single template.
template<typename Source, typename Access = Reflect::RecordAccess<Source>>
std::optional< std::vector< uint32_t > > MayaFlux::Portal::Forma::instantiate_rows (const ManifestTables< Source, Access > &tables, const Source &root, std::string_view template_id, const Kakshya::CompositeArray &rows, Surface &surface, std::string &error)
 instantiate_rows for a document that uses all three tables.

Variables

constexpr std::string_view MayaFlux::Portal::Forma::element_name_attribute { "name" }
 Attribute that names an element, which shares the namespace of ids.
constexpr std::string_view MayaFlux::Portal::Forma::vertex_topology_attribute { "topology" }
 Attribute of a form element that gives vertices to draw instead of a call.