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
35 :
public CachedPropertyAnimation<tlp::LayoutProperty, tlp::Coord, std::vector<tlp::Coord>> {
39 int frameCount = 1,
bool computeNodes =
true,
bool computeEdges =
true,
40 QObject *parent =
nullptr);
42 ~LayoutPropertyAnimation()
override {}
45 tlp::Coord getNodeFrameValue(
const tlp::Coord &startValue,
const tlp::Coord &endValue,
47 std::vector<tlp::Coord> getEdgeFrameValue(
const std::vector<tlp::Coord> &startValue,
48 const std::vector<tlp::Coord> &endValue,
50 bool equalEdges(
const std::vector<tlp::Coord> &v1,
const std::vector<tlp::Coord> &v2)
override;
53 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...