#include <rm3_morpher.h>
Public Member Functions | |
morpher (const draw_undi_graph &start_graph, const draw_undi_graph &end_graph) | |
~morpher () | |
draw_undi_graph * | update_intermediate (float alpha) |
Definition at line 28 of file rm3_morpher.h.
morpher::morpher | ( | const draw_undi_graph & | start_graph, | |
const draw_undi_graph & | end_graph | |||
) |
Constructor.
PRECONDITIONS: "start_graph" and "end_graph" must have corresponding nodes and edges (with the same gdtnode and gdtedge id).
morpher::~morpher | ( | ) |
Destructor.
draw_undi_graph* morpher::update_intermediate | ( | float | alpha | ) |
update the intermediate_graph with coordinates between those of start_graph and those of end_graph. If "alpha" is 0, then intermediate_graph has the same coordinates than start_graph, if "alpha" is 1, then intermediate_graph has the same coordinates than end_graph.