Biorbd
Release_1.13.0
Toggle main menu visibility
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
9
namespace
BIORBD_NAMESPACE {
10
namespace
utils {
11
class
Vector3d
;
12
}
13
14
namespace
internal_forces {
18
class
BIORBD_API
PathModifiers
{
19
public
:
23
PathModifiers
();
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>>>
78
m_obj
;
79
std::shared_ptr<size_t>
m_nbWraps
;
80
std::shared_ptr<size_t>
m_nbVia
;
81
std::shared_ptr<size_t>
82
m_totalObjects
;
83
};
84
85
}
// namespace internal_forces
86
}
// namespace BIORBD_NAMESPACE
87
88
#endif
// BIORBD_MUSCLES_PATH_MODIFIERS_H
BIORBD_NAMESPACE::internal_forces::PathModifiers::nbVia
size_t nbVia() const
Return the total number of via points in the set.
Definition
PathModifiers.cpp:69
BIORBD_NAMESPACE::internal_forces::PathModifiers::DeepCopy
PathModifiers DeepCopy() const
Deep copy of path changers.
Definition
PathModifiers.cpp:18
BIORBD_NAMESPACE::internal_forces::PathModifiers::m_nbWraps
std::shared_ptr< size_t > m_nbWraps
Number of wrapping object in the set.
Definition
PathModifiers.h:79
BIORBD_NAMESPACE::internal_forces::PathModifiers::nbWraps
size_t nbWraps() const
Return the total number of wrapping objects in the set.
Definition
PathModifiers.cpp:67
BIORBD_NAMESPACE::internal_forces::PathModifiers::nbObjects
size_t nbObjects() const
Return the total number of path modifier objects in the set.
Definition
PathModifiers.cpp:71
BIORBD_NAMESPACE::internal_forces::PathModifiers::PathModifiers
PathModifiers()
Construct path changers.
Definition
PathModifiers.cpp:12
BIORBD_NAMESPACE::internal_forces::PathModifiers::object
utils::Vector3d & object(size_t idx)
Return the object at a specific index in the set.
Definition
PathModifiers.cpp:75
BIORBD_NAMESPACE::internal_forces::PathModifiers::m_nbVia
std::shared_ptr< size_t > m_nbVia
Number of via points in the set.
Definition
PathModifiers.h:80
BIORBD_NAMESPACE::internal_forces::PathModifiers::m_totalObjects
std::shared_ptr< size_t > m_totalObjects
Number of total objects in the set.
Definition
PathModifiers.h:82
BIORBD_NAMESPACE::internal_forces::PathModifiers::addPathChanger
void addPathChanger(utils::Vector3d &object)
Add a wrapping or a via point to the set of path modifiers.
Definition
PathModifiers.cpp:38
BIORBD_NAMESPACE::internal_forces::PathModifiers::m_obj
std::shared_ptr< std::vector< std::shared_ptr< utils::Vector3d > > > m_obj
set of objects
Definition
PathModifiers.h:78
BIORBD_NAMESPACE::utils::Vector3d
Wrapper around Eigen Vector3d and attach it to a parent.
Definition
Vector3d.h:27
include
InternalForces
PathModifiers.h
Generated by
1.18.0