|
| Figure (const std::array< float, 2 > &pixels) |
| create a new figure with the given number of pixels More...
|
|
TRASE_DISPATCH_BACKENDS std::shared_ptr< Axis > | axis () |
| Create a new axis at position (0,0) and return a shared pointer to it If the axis already exists returns a pointer to the existing axis. More...
|
|
std::shared_ptr< Axis > | axis (int i, int j) |
| Create a new axis at position (i , j ) and return a shared pointer to it If the axis already exists returns a pointer to the existing axis. More...
|
|
template<typename Backend > |
void | show (Backend &backend) |
| Draw the Figure using the Backend provided. More...
|
|
template<typename AnimatedBackend > |
void | draw (AnimatedBackend &backend) |
| Draw the Figure using the AnimatedBackend provided. More...
|
|
template<typename Backend > |
void | draw (Backend &backend, float time) |
| Draw the Figure at a given time using the Backend provided. More...
|
|
| Drawable (Drawable *parent, const bfloat2_t &area_of_parent) |
| constructs a Drawable under parent in the tree structure, and assigns it an drawable area given by area_of_parent More...
|
|
void | resize (const bfloat2_t &parent_pixels) |
| resize the drawable area (in raw pixels) using the parents area (in raw pixels)
|
|
void | update_time_span (float time) |
| if time is outside the current animation time span of this object then this time span is increased to include it
|
|
void | add_frame_time (float time) |
| adds a keyframe time to the animation
|
|
void | update_frame_info (float time) |
| fills out m_frame_info using a given time More...
|
|
const FrameInfo & | get_frame_info () const |
| returns the current FrameInfo More...
|
|
const bfloat2_t & | pixels () const |
| returns this objects drawable area in raw pixels
|
|
const bfloat2_t & | area () const |
| returns this objects drawable area as a ratio of the parents drawable area
|
|
bfloat2_t & | area () |
| returns this objects drawable area as a ratio of the parents drawable area
|
|
Style & | style () noexcept |
| returns modifiable current style
|
|
const float & | time_span () const |
| returns time span of the animation
|
|
virtual void | dispatch (BackendSVG &file, float time)=0 |
|
virtual void | dispatch (BackendSVG &file)=0 |
|
template<typename AnimatedBackend > |
void | draw (AnimatedBackend &backend) |
| draw this object using the given AnimatedBackend
|
|
template<typename Backend > |
void | draw (Backend &backend, float time) |
| draw this object using the given Backend
|
|
The primary Drawable for each figure.
Each Figure points to one or more Axis objects that are drawn within the Figure.