![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/ParameterOptimization.h>
Wrap a matrix into a ParameterWrapperBase instance. More...
Inheritance diagram for MatrixParameterWrapper< T >:Wrap a matrix into a ParameterWrapperBase instance.
This class is templated to allow for mat3 (rotation matrices), mat4 (6-dof rigid transformations), std::vector<*> of such, and the corresponding Parameter<*> type.
Public Member Functions | |
| MatrixParameterWrapper (T &value, std::optional< std::string > name=std::nullopt) | |
| int | dim () const override |
| The number of (scalar) parameters wrapped by this object. | |
| void | deserialize (const double *v) override |
| Update the stored references from a double representation. | |
| void | serialize (double *v) const override |
| Updates a double representation from the stored references. | |
| std::string | name (int i) const override |
Name of the ith parameter, used for display purposes. | |
| std::unique_ptr< ParameterWrapperBase > | clone () const override |
| Clone function. | |
|
overridevirtual |
The number of (scalar) parameters wrapped by this object.
Implements ParameterWrapperBase.
|
overridevirtual |
Update the stored references from a double representation.
Implements ParameterWrapperBase.
|
overridevirtual |
Updates a double representation from the stored references.
Implements ParameterWrapperBase.
|
overridevirtual |
Name of the ith parameter, used for display purposes.
Implements ParameterWrapperBase.
|
overridevirtual |
Clone function.
Implements ParameterWrapperBase.