#include <ImFusion/GL/DeformationFactory.h>
Factory singleton for creating Deformations from string IDs.
More...
Factory singleton for creating Deformations from string IDs.
- See also
- Deformation
◆ registerDeformation() [1/2]
template<class T, typename = std::enable_if_t<std::is_base_of_v<Deformation, T>>>
| bool ImFusion::DeformationFactory::registerDeformation |
( |
const std::string & | id | ) |
|
|
inline |
Registers a Deformation with the DeformationFactory.
- Note
- The string IDs of Deformations have to be unique. If you register an ID a second time, the previously registered factory method will be overwritten.
- Parameters
-
- Returns
- true if the deformation has been successfully registered
◆ registerDeformation() [2/2]
Registers a Deformation with the DeformationFactory.
- Note
- The string IDs of Deformations have to be unique. If you register an ID a second time, the previously registered factory method will be overwritten.
- Parameters
-
| id | Unique string ID for the Deformation to register. |
| factoryMethod | Method to use for instantiating the Deformation to register. |
- Returns
- true if the deformation has been successfully registered
◆ createDeformation()
Instantiates a Deformation specified by the given ID.
- Parameters
-
The documentation for this class was generated from the following file:
- ImFusion/GL/DeformationFactory.h