Tulip  5.3.0
Large graphs analysis and drawing
DoublePropertyAnimation.h
1 /*
2  *
3  * This file is part of Tulip (http://tulip.labri.fr)
4  *
5  * Authors: David Auber and the Tulip development Team
6  * from LaBRI, University of Bordeaux
7  *
8  * Tulip is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation, either version 3
11  * of the License, or (at your option) any later version.
12  *
13  * Tulip is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU General Public License for more details.
17  *
18  */
19 ///@cond DOXYGEN_HIDDEN
20 
21 #ifndef DOUBLEPROPERTYANIMATION_H
22 #define DOUBLEPROPERTYANIMATION_H
23 
24 #include <tulip/CachedPropertyAnimation.h>
25 #include <tulip/DoubleProperty.h>
26 
27 namespace tlp {
28 
29 class TLP_QT_SCOPE DoublePropertyAnimation
30  : public CachedPropertyAnimation<tlp::DoubleProperty, double, double> {
31 public:
32  DoublePropertyAnimation(tlp::Graph *graph, tlp::DoubleProperty *start, tlp::DoubleProperty *end,
33  tlp::DoubleProperty *out, tlp::BooleanProperty *selection = nullptr,
34  int frameCount = 1, bool computeNodes = true, bool computeEdges = false,
35  QObject *parent = nullptr);
36  ~DoublePropertyAnimation() override {}
37 
38 protected:
39  double getNodeFrameValue(const double &startValue, const double &endValue, int frame) override;
40  double getEdgeFrameValue(const double &startValue, const double &endValue, int frame) override;
41 };
42 } // namespace tlp
43 
44 #endif // DOUBLEPROPERTYANIMATION_H
45 ///@endcond
A graph property that maps a boolean value to graph elements.
A graph property that maps a double value to graph elements.