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,
tlp::BooleanProperty *selection = NULL,
int frameCount = 1,
36 bool computeNodes =
true,
bool computeEdges =
true, QObject* parent=NULL);
37 virtual ~CachedPropertyAnimation();
39 virtual void frameChanged(
int frame);
42 std::map<std::pair<NodeType, NodeType>, NodeType> computedNodeSteps;
43 std::map<std::pair<EdgeType, EdgeType>, EdgeType> computedEdgeSteps;
46 #include "cxx/CachedPropertyAnimation.cxx"