21 #ifndef CACHEDPROPERTYANIMATION_H_ 22 #define CACHEDPROPERTYANIMATION_H_ 24 #include <tulip/PropertyAnimation.h> 30 class BooleanProperty;
32 template <
typename PropType,
typename NodeType,
typename EdgeType>
33 class CachedPropertyAnimation :
public PropertyAnimation<PropType, NodeType, EdgeType> {
35 CachedPropertyAnimation(
tlp::Graph *graph, PropType *start, PropType *end, PropType *out,
37 bool computeNodes =
true,
bool computeEdges =
true,
38 QObject *parent =
nullptr);
39 ~CachedPropertyAnimation()
override;
41 void frameChanged(
int frame)
override;
44 std::map<std::pair<NodeType, NodeType>, NodeType> computedNodeSteps;
45 std::map<std::pair<EdgeType, EdgeType>, EdgeType> computedEdgeSteps;
48 #include "cxx/CachedPropertyAnimation.cxx"
A graph property that maps a boolean value to graph elements.