21 #ifndef LAYOUTPROPERTYANIMATION_H_
22 #define LAYOUTPROPERTYANIMATION_H_
24 #include <tulip/Coord.h>
25 #include "tulip/CachedPropertyAnimation.h"
31 class BooleanProperty;
33 class TLP_QT_SCOPE LayoutPropertyAnimation:
public CachedPropertyAnimation<tlp::LayoutProperty, tlp::Coord, std::vector<tlp::Coord> > {
36 tlp::BooleanProperty *selection = NULL,
int frameCount = 1,
bool computeNodes =
true,
bool computeEdges =
true, QObject *parent=NULL);
38 virtual ~LayoutPropertyAnimation() {}
41 virtual tlp::Coord getNodeFrameValue(
const tlp::Coord &startValue,
const tlp::Coord &endValue,
int frame);
42 virtual std::vector<tlp::Coord> getEdgeFrameValue(
const std::vector<tlp::Coord> &startValue,
const std::vector<tlp::Coord> &endValue,
int frame);
43 bool equalEdges(
const std::vector<tlp::Coord> &v1,
const std::vector<tlp::Coord> &v2);
46 std::map<std::pair<tlp::Coord,tlp::Coord>, tlp::Vector<double, 3> > steps;