ImFusion SDK 4.3
MatrixParameterWrapper< T > Class Template Reference

#include <ImFusion/Base/ParameterOptimization.h>

Wrap a matrix into a ParameterWrapperBase instance. More...

+ Inheritance diagram for MatrixParameterWrapper< T >:

Detailed Description

template<typename T>
class ImFusion::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.

Note
: Scaling of angles is in degrees.
Warning
: For Parameter<*> types, each deserialize may trigger a signalChanged

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< ParameterWrapperBaseclone () const override
 Clone function.
 

Member Function Documentation

◆ dim()

template<typename T>
int dim ( ) const
overridevirtual

The number of (scalar) parameters wrapped by this object.

Implements ParameterWrapperBase.

◆ deserialize()

template<typename T>
void deserialize ( const double * v)
overridevirtual

Update the stored references from a double representation.

Implements ParameterWrapperBase.

◆ serialize()

template<typename T>
void serialize ( double * v) const
overridevirtual

Updates a double representation from the stored references.

Implements ParameterWrapperBase.

◆ name()

template<typename T>
std::string name ( int i) const
overridevirtual

Name of the ith parameter, used for display purposes.

Implements ParameterWrapperBase.

◆ clone()

template<typename T>
std::unique_ptr< ParameterWrapperBase > clone ( ) const
overridevirtual

Clone function.

Implements ParameterWrapperBase.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close