21 #ifndef CACHEDPROPERTYANIMATION_H_
22 #define CACHEDPROPERTYANIMATION_H_
24 #include "tulip/PropertyAnimation.h"
26 #include <tulip/BooleanProperty.h>
30 template<
typename PropType,
typename NodeType,
typename EdgeType>
31 class CachedPropertyAnimation:
public PropertyAnimation<PropType, NodeType, EdgeType> {
33 CachedPropertyAnimation(
tlp::Graph *graph, PropType *start, PropType *end, PropType *out,
tlp::BooleanProperty *selection = NULL,
int frameCount = 1,
34 bool computeNodes =
true,
bool computeEdges =
true, QObject* parent=NULL);
35 virtual ~CachedPropertyAnimation();
37 virtual void frameChanged(
int frame);
40 std::map<std::pair<NodeType, NodeType>, NodeType> computedNodeSteps;
41 std::map<std::pair<EdgeType, EdgeType>, EdgeType> computedEdgeSteps;
44 #include "cxx/CachedPropertyAnimation.cxx"