20 #ifndef MIRTK_InternalForce_H 21 #define MIRTK_InternalForce_H 23 #include "mirtk/PointSetForce.h" 24 #include "mirtk/InternalForceTerm.h" 60 mirtkPublicAttributeMacro(
string, ExternalMagnitudeArrayName);
65 mirtkPublicAttributeMacro(
double, WeightInside);
70 mirtkPublicAttributeMacro(
double, WeightOutside);
75 mirtkPublicAttributeMacro(
double, WeightMinimum);
97 static InternalForce *
New(InternalForceTerm,
const char * =
"",
double = 1.0);
137 virtual void EvaluateGradient(
double *gradient,
double step,
double weight);
144 #endif // MIRTK_InternalForce_H virtual bool SetWithoutPrefix(const char *, const char *)
Set parameter value from string.
vtkDataArray * ExternalMagnitude() const
Get magnitude array of external force term.
InternalForce(const char *="", double=1.0)
Constructor.
Array< Pair< string, string > > ParameterList
Ordered list of parameter name/value pairs.
virtual ~InternalForce()
Destructor.
virtual ParameterList Parameter() const
Get parameter key/value as string map.
virtual void EvaluateGradient(double *gradient, double step, double weight)
static InternalForce * New(InternalForceTerm, const char *="", double=1.0)
Instantiate new constraint representing specified internal forces.
virtual ParameterList Parameter() const
Get parameter key/value as string map.
InternalForce & operator=(const InternalForce &)
Assignment operator.