21 #ifndef PROPERTYANIMATION_H_ 22 #define PROPERTYANIMATION_H_ 24 #include <tulip/Animation.h> 25 #include <tulip/BooleanProperty.h> 29 template <
typename PropType,
typename NodeType,
typename EdgeType>
30 class PropertyAnimation :
public Animation {
32 PropertyAnimation(
tlp::Graph *graph, PropType *start, PropType *end, PropType *out,
34 bool computeNodes =
true,
bool computeEdges =
true, QObject *parent =
nullptr);
36 ~PropertyAnimation()
override;
37 void frameChanged(
int f)
override;
48 virtual NodeType getNodeFrameValue(
const NodeType &startValue,
const NodeType &endValue,
50 virtual EdgeType getEdgeFrameValue(
const EdgeType &startValue,
const EdgeType &endValue,
53 virtual bool equalNodes(
const NodeType &v1,
const NodeType &v2) {
57 virtual bool equalEdges(
const EdgeType &v1,
const EdgeType &v2) {
62 #include "cxx/PropertyAnimation.cxx"
A graph property that maps a boolean value to graph elements.