Biorbd Release_1.13.0
Loading...
Searching...
No Matches
PathModifiers.h
1#ifndef BIORBD_MUSCLES_PATH_MODIFIERS_H
2#define BIORBD_MUSCLES_PATH_MODIFIERS_H
3
4#include "biorbdConfig.h"
5
6#include <memory>
7#include <vector>
8
9namespace BIORBD_NAMESPACE {
10namespace utils {
11class Vector3d;
12}
13
14namespace internal_forces {
18class BIORBD_API PathModifiers {
19 public:
24
29 PathModifiers DeepCopy() const;
30
35 void DeepCopy(const PathModifiers& other);
36
41 void addPathChanger(utils::Vector3d& object);
42
43 // Set and get
48 size_t nbWraps() const;
49
54 size_t nbVia() const;
55
60 size_t nbObjects() const;
61
67 utils::Vector3d& object(size_t idx);
68
74 const utils::Vector3d& object(size_t idx) const;
75
76 protected:
77 std::shared_ptr<std::vector<std::shared_ptr<utils::Vector3d>>>
79 std::shared_ptr<size_t> m_nbWraps;
80 std::shared_ptr<size_t> m_nbVia;
81 std::shared_ptr<size_t>
83};
84
85} // namespace internal_forces
86} // namespace BIORBD_NAMESPACE
87
88#endif // BIORBD_MUSCLES_PATH_MODIFIERS_H
size_t nbVia() const
Return the total number of via points in the set.
PathModifiers DeepCopy() const
Deep copy of path changers.
std::shared_ptr< size_t > m_nbWraps
Number of wrapping object in the set.
size_t nbWraps() const
Return the total number of wrapping objects in the set.
size_t nbObjects() const
Return the total number of path modifier objects in the set.
utils::Vector3d & object(size_t idx)
Return the object at a specific index in the set.
std::shared_ptr< size_t > m_nbVia
Number of via points in the set.
std::shared_ptr< size_t > m_totalObjects
Number of total objects in the set.
void addPathChanger(utils::Vector3d &object)
Add a wrapping or a via point to the set of path modifiers.
std::shared_ptr< std::vector< std::shared_ptr< utils::Vector3d > > > m_obj
set of objects
Wrapper around Eigen Vector3d and attach it to a parent.
Definition Vector3d.h:27