21 #ifndef PROPERTYANIMATION_H_
22 #define PROPERTYANIMATION_H_
24 #include <tulip/Animation.h>
25 #include <tulip/BooleanProperty.h>
30 template<
typename PropType,
typename NodeType,
typename EdgeType>
31 class PropertyAnimation:
public Animation {
33 PropertyAnimation(
tlp::Graph *graph, PropType *start, PropType *end, PropType *out,
34 tlp::BooleanProperty *selection = NULL,
int frameCount = 1,
bool computeNodes =
true,
bool computeEdges =
true, QObject* parent=NULL);
36 virtual ~PropertyAnimation();
37 virtual void frameChanged(
int f);
48 virtual NodeType getNodeFrameValue(
const NodeType &startValue,
const NodeType &endValue,
int frame)=0;
49 virtual EdgeType getEdgeFrameValue(
const EdgeType &startValue,
const EdgeType &endValue,
int frame)=0;
51 virtual bool equalNodes(
const NodeType &v1,
const NodeType &v2) {
55 virtual bool equalEdges(
const EdgeType &v1,
const EdgeType &v2) {
60 #include "cxx/PropertyAnimation.cxx"
A graph property that maps a boolean value to graph elements.