|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::pair< Mapped< std::shared_ptr< Kakshya::PlotContainer > >, Surface > MayaFlux::Portal::Forma::plot | ( | std::string | title, |
| uint32_t | width, | ||
| uint32_t | height, | ||
| std::shared_ptr< Kakshya::PlotContainer > | container, | ||
| Plot::SeriesSpec | spec | ||
| ) |
Create a live plot in a new window.
Creates the window, shows it, constructs the Surface, builds the FormaBuffer from the spec capacity and topology, and calls Plot::place. Returns the Mapped<shared_ptr<PlotContainer>> from Plot::place, plus the Surface owning the window and layer.
| title | Window title. |
| width | Window width in pixels. |
| height | Window height in pixels. |
| container | Ready PlotContainer from Plot::source().build(). |
| spec | SeriesSpec from Plot::series()...done(). |
Definition at line 247 of file Forma.cpp.
References MayaFlux::Portal::Forma::Plot::SeriesSpec::background_fn, MayaFlux::Portal::Forma::Plot::SeriesSpec::capacity_for, MayaFlux::Portal::Forma::internal::create_buffer_impl(), create_surface(), MayaFlux::Kakshya::VertexLayout::for_meshes(), N, MayaFlux::Portal::Forma::Plot::place(), MayaFlux::Kakshya::VertexLayout::stride_bytes, MayaFlux::Core::WindowCreateInfo::title, MayaFlux::Portal::Forma::Plot::SeriesSpec::topology, MayaFlux::Portal::Graphics::TRIANGLE_STRIP, and width.
Here is the call graph for this function: