20 #ifndef MIRTK_RepulsiveForce_H 21 #define MIRTK_RepulsiveForce_H 23 #include "mirtk/SurfaceConstraint.h" 25 #include "vtkSmartPointer.h" 26 #include "vtkAbstractPointLocator.h" 50 mirtkPublicAttributeMacro(
double, FrontfaceRadius);
57 mirtkPublicAttributeMacro(
double, BackfaceRadius);
60 mirtkAttributeMacro(vtkSmartPointer<vtkAbstractPointLocator>, Locator);
111 virtual void Update(
bool =
true);
126 #endif // MIRTK_RepulsiveForce_H virtual ParameterList Parameter() const
Get parameter name/value pairs.
virtual void Update(bool=true)
Update moving input points and internal state of force term.
RepulsiveForce & operator=(const RepulsiveForce &)
Assignment operator.
virtual bool SetWithoutPrefix(const char *, const char *)
Set parameter value from string.
Array< Pair< string, string > > ParameterList
Ordered list of parameter name/value pairs.
virtual double Evaluate()
Evaluate energy of internal force term.
virtual void Initialize()
Initialize force term once input and parameters have been set.
virtual ~RepulsiveForce()
Destructor.
RepulsiveForce(const char *="", double=1.0)
Constructor.
virtual void EvaluateGradient(double *, double, double)
Evaluate internal force w.r.t. transformation parameters or surface nodes.
virtual void Reinitialize()
Repels too close non-neighboring nodes.
virtual ParameterList Parameter() const
Get parameter key/value as string map.