8namespace OpenSim {
class Model; }
17 OpenSim_DECLARE_PROPERTY(apply_affine_translation,
bool,
"Enable/disable applying the affine translational part of the TPS warp to the output. This can be useful/necessary if/when it's handled by some other part of the model (e.g. an offset frame, joint frame).");
18 OpenSim_DECLARE_PROPERTY(apply_affine_scale,
bool,
"Enable/disable applying the affine scaling part of the TPS warp to the output. This can be useful/necessary for visually inspecting the difference between the non-affine scaling components and the affine parts.");
19 OpenSim_DECLARE_PROPERTY(apply_affine_rotation,
bool,
"Enable/disable applying the application of the affine rotational part of the TPS warp to the output. This can be useful/necessary if/when it's handled by some other part of the model (e.g. an offset frame, joint frame).");
20 OpenSim_DECLARE_PROPERTY(apply_non_affine_warp,
bool,
"Enable/disable applying the non-affine (i.e. the 'warp-ey part') of the TPS warp to the output.");
26 constructProperty_apply_affine_translation(
false);
27 constructProperty_apply_affine_scale(
true);
28 constructProperty_apply_affine_rotation(
false);
29 constructProperty_apply_non_affine_warp(
true);
34 const OpenSim::Model& sourceModel,
35 const OpenSim::Model& resultModel)
const
38 rv.tpsInputs.applyAffineTranslation = get_apply_affine_translation();
39 rv.tpsInputs.applyAffineScale = get_apply_affine_scale();
40 rv.tpsInputs.applyAffineRotation = get_apply_affine_rotation();
41 rv.tpsInputs.applyNonAffineWarp = get_apply_non_affine_warp();
Definition scaling_parameters.h:14
osc::CStringView label() const
Definition scaling_step.h:41
Definition thin_plate_spline_scaling_step.h:28
CommonParameters calcTPSScalingStepCommonParams(const ScalingParameters ¶meters, const OpenSim::Model &sourceModel, const OpenSim::Model &resultModel) const
Definition thin_plate_spline_scaling_step.h:122
Definition toggleable_thin_plate_spline_scaling_step.h:14
CommonParameters calcTPSScalingStepCommonParams(const ScalingParameters ¶meters, const OpenSim::Model &sourceModel, const OpenSim::Model &resultModel) const
Definition toggleable_thin_plate_spline_scaling_step.h:32
ToggleableThinPlateSplineScalingStep(std::string_view label)
Definition toggleable_thin_plate_spline_scaling_step.h:23
Definition static_component_registries.h:3
Definition component_registry.h:14