rsvs3D  0.0.0
Codes for the c++ implementation of the 3D RSVS
SnakeVelocities.hpp
Go to the documentation of this file.
1 
14 #ifndef SNAKEVELOCITIES_H_INCLUDED
15 #define SNAKEVELOCITIES_H_INCLUDED
16 
17 class snake;
18 
19 #include <functional>
20 
22 namespace rsvs3d
23 {
24 typedef std::function<void(snake &)> simplevelocity;
26 {
27  private:
28  simplevelocity activeFunction;
29 
30  public:
31  void setDevParameters(const param::dev::devparam &) override;
32  void ConvergenceLog(std::ofstream &, int = 3) const override;
33  void CalculateVelocities(triangulation &triRSVS, int calculationMethod = 0, bool calculateDerivatives = true,
34  int derivativeMethod = 1) override;
35  VelocityFunction(simplevelocity activeFunction) : activeFunction(activeFunction)
36  {
37  }
38 };
39 } // namespace rsvs3d
40 #endif // SNAKEVELOCITIES_H_INCLUDED
Interface for the Snaking algorithm.
Class for development parameters.
Definition: parameters.hpp:272
A base class which needs to be inherited from to implement a new velocity calculation.
void ConvergenceLog(std::ofstream &, int=3) const override
Print convergence information to a log stream.
void setDevParameters(const param::dev::devparam &) override
Set the Development parameters of the Calculator object.
Definition: snake.hpp:83
Namespace for general purpose tools of the RSVS project.
Definition: snake.cpp:1464