46 std::vector<std::shared_ptr<Geometry>> m_entries;
51 virtual ~
Legend() =
default;
53 TRASE_DISPATCH_BACKENDS
55 void add_entry(
const std::shared_ptr<Geometry> &entry) {
56 m_entries.push_back(entry);
59 template <
typename AnimatedBackend>
void draw(
AnimatedBackend &backend);
60 template <
typename Backend>
void draw(
Backend &backend,
float time);
63 template <
typename Backend,
typename DispatchF>
64 void draw_common(
Backend &backend,
const DispatchF &dispatch);
69 #include "frontend/Legend.tcc" a base class for all the backends that support drawing a single frame
Definition: Backend.hpp:50
Definition: Legend.hpp:45
Base class for drawable objects in a figure.
Definition: Drawable.hpp:99
const bfloat2_t & area() const
returns this objects drawable area as a ratio of the parents drawable area
Definition: Drawable.hpp:159
a base class for all the backends that support animation over time
Definition: Backend.hpp:62
Definition: Backend.cpp:39