|
MayaFlux 1.0.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, and places the plot in a slice of one batch. Background, legend swatches and labels use slices of that batch; a plot with labels selects the glyph-capable plot shader. 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 113 of file Forma.cpp.
References MayaFlux::Portal::Graphics::RenderConfig::additional_textures, MayaFlux::Portal::Forma::internal::atelier(), MayaFlux::Portal::Forma::Plot::SeriesSpec::background_fn, MayaFlux::Portal::Forma::internal::Atelier::create_buffer(), MayaFlux::Portal::Forma::internal::Atelier::create_element(), MayaFlux::Portal::Forma::internal::Atelier::create_surface(), MayaFlux::Portal::Forma::internal::Atelier::create_window(), MayaFlux::Portal::Graphics::RenderConfig::fragment_shader, height, MayaFlux::Portal::Forma::Plot::SeriesSpec::labels, MayaFlux::Portal::Forma::Plot::SeriesSpec::legend, MayaFlux::Portal::Forma::Plot::place(), MayaFlux::Portal::Forma::internal::Atelier::place_adornments(), MayaFlux::Portal::Forma::FormaTarget::slice_of(), MayaFlux::Portal::Forma::Plot::SeriesSpec::tick_labels, MayaFlux::Core::WindowCreateInfo::title, MayaFlux::Portal::Forma::Plot::SeriesSpec::topology, MayaFlux::Portal::Graphics::TRIANGLE_STRIP, width, window, and MayaFlux::Portal::Forma::SurfaceConfig::window.
Here is the call graph for this function: