ImFusion C++ SDK 4.4.0
ImFusion::CombinedParameterWrapper Class Reference

#include <ImFusion/Base/ParameterOptimization.h>

Implementation of the ParameterOptimization interface to a combination of other ParameterOptimization interface values. More...

Inheritance diagram for ImFusion::CombinedParameterWrapper:

Detailed Description

Implementation of the ParameterOptimization interface to a combination of other ParameterOptimization interface values.

Public Member Functions

 CombinedParameterWrapper (const std::vector< std::unique_ptr< ParameterWrapperBase > > &param)
template<typename... Ts>
 CombinedParameterWrapper (Ts &&... params)
 CombinedParameterWrapper (const CombinedParameterWrapper &)=delete
CombinedParameterWrapper & operator= (const CombinedParameterWrapper &)=delete
int dim () const override
 The number of (scalar) parameters wrapped by this object.
void deserialize (const double *x) override
 Update the stored references from a double representation.
void serialize (double *x) 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.
template<typename... Ts>
void addWrappers (Ts &&... params)
void addParamWrapper (double &v)
void addParamWrapper (Parameter< double > &v)
void addParamWrapper (std::vector< double > &v)
void addParamWrapper (vec2 &v)
void addParamWrapper (std::vector< vec2 > &v)
void addParamWrapper (Parameter< vec2 > &v)
void addParamWrapper (vec3 &v)
void addParamWrapper (std::vector< vec3 > &v)
void addParamWrapper (Parameter< vec3 > &v)
void addParamWrapper (mat4 &m)
void addParamWrapper (std::vector< mat4 > &m)
void addParamWrapper (Parameter< mat4 > &v)
void addParamWrapper (const ParameterWrapperBase &w)
void addParamWrapper (const std::vector< std::unique_ptr< ParameterWrapperBase > > &w)

Member Function Documentation

◆ dim()

int ImFusion::CombinedParameterWrapper::dim ( ) const
overridevirtual

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

Implements ImFusion::ParameterWrapperBase.

◆ deserialize()

void ImFusion::CombinedParameterWrapper::deserialize ( const double * v)
overridevirtual

Update the stored references from a double representation.

Implements ImFusion::ParameterWrapperBase.

Reimplemented in ImFusion::CT::GeometryGeneratorParameterWrapper.

◆ serialize()

void ImFusion::CombinedParameterWrapper::serialize ( double * v) const
overridevirtual

Updates a double representation from the stored references.

Implements ImFusion::ParameterWrapperBase.

◆ name()

std::string ImFusion::CombinedParameterWrapper::name ( int i) const
overridevirtual

Name of the ith parameter, used for display purposes.

Implements ImFusion::ParameterWrapperBase.

◆ clone()

std::unique_ptr< ParameterWrapperBase > ImFusion::CombinedParameterWrapper::clone ( ) const
inlineoverridevirtual

Clone function.

Implements ImFusion::ParameterWrapperBase.


The documentation for this class was generated from the following file:
  • ImFusion/Base/ParameterOptimization.h
Search Tab / S to search, Esc to close