21 #ifndef LAYOUTPROPERTYANIMATION_H_ 22 #define LAYOUTPROPERTYANIMATION_H_ 24 #include <tulip/Coord.h> 25 #include <tulip/CachedPropertyAnimation.h> 32 class BooleanProperty;
34 class TLP_QT_SCOPE LayoutPropertyAnimation:
public CachedPropertyAnimation<tlp::LayoutProperty, tlp::Coord, std::vector<tlp::Coord> > {
37 tlp::BooleanProperty *selection = NULL,
int frameCount = 1,
bool computeNodes =
true,
bool computeEdges =
true, QObject *parent=NULL);
39 virtual ~LayoutPropertyAnimation() {}
42 virtual tlp::Coord getNodeFrameValue(
const tlp::Coord &startValue,
const tlp::Coord &endValue,
int frame);
43 virtual std::vector<tlp::Coord> getEdgeFrameValue(
const std::vector<tlp::Coord> &startValue,
const std::vector<tlp::Coord> &endValue,
int frame);
44 bool equalEdges(
const std::vector<tlp::Coord> &v1,
const std::vector<tlp::Coord> &v2);
47 std::map<std::pair<tlp::Coord,tlp::Coord>, tlp::Vector<double, 3> > steps;
A graph property that maps a boolean value to graph elements.
A graph property that maps a tlp::Coord value to graph nodes and std::vector<tlp::Coord> for edges...