Registry to make easier additions of new models
This commit is contained in:
23
src/motions/conemotion.h
Normal file
23
src/motions/conemotion.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef CONEMOTION_H
|
||||
#define CONEMOTION_H
|
||||
|
||||
#include "base.h"
|
||||
#include "coordinates.h"
|
||||
|
||||
namespace motions {
|
||||
class ConeMotion : public BaseMotion {
|
||||
public:
|
||||
using BaseMotion::BaseMotion;
|
||||
|
||||
void initialize(std::mt19937_64& rng) override;
|
||||
|
||||
void setParameters(const std::unordered_map<std::string, double> &) override;
|
||||
[[nodiscard]] std::unordered_map<std::string, double> getParameters() const override;
|
||||
|
||||
protected:
|
||||
double m_angle{0};
|
||||
coordinates::SphericalPos m_axis{1, 0};
|
||||
};
|
||||
}
|
||||
|
||||
#endif //CONEMOTION_H
|
||||
Reference in New Issue
Block a user