21 #ifndef VECTORPROPERTYANIMATION_H_
22 #define VECTORPROPERTYANIMATION_H_
24 #include "tulip/CachedPropertyAnimation.h"
28 template<
typename PropType,
typename RealType,
typename VectorType,
unsigned int SIZE>
29 class VectorPropertyAnimation:
public CachedPropertyAnimation<PropType, RealType, RealType> {
31 VectorPropertyAnimation(
tlp::Graph *graph, PropType *start, PropType *end, PropType *out,
tlp::BooleanProperty *selection = NULL,
int frameCount = 1,
32 bool computeNodes =
true,
bool computeEdges =
true, QObject* parent=NULL);
34 virtual ~VectorPropertyAnimation() {}
38 getNodeFrameValue(
const RealType &startValue,
const RealType &endValue,
int frame);
40 getEdgeFrameValue(
const RealType &startValue,
const RealType &endValue,
int frame);
43 typedef tlp::Vector<VectorType, SIZE> PropVector;
45 std::map<std::pair<tlp::Vector<VectorType, SIZE>, tlp::Vector<VectorType, SIZE> >, tlp::Vector<double, SIZE> > steps;
48 #include "cxx/VectorPropertyAnimation.cxx"
A graph property that maps a boolean value to graph elements.