|
Biorbd Release_1.13.0
|
Class compound is a very generic definition of what a muscle is. It should be the base class of every muscles. More...
#include <Compound.h>
Public Member Functions | |
| Compound () | |
| Construct muscle compound. | |
| Compound (const utils::String &name) | |
| Construct compound. | |
| Compound (const utils::String &name, const internal_forces::PathModifiers &pathModifiers) | |
| Construct compound. | |
| Compound (const Compound &other) | |
| Construct compound from another muscle. | |
| Compound (const std::shared_ptr< Compound > other) | |
| Construct compound from another compound. | |
| virtual | ~Compound () |
| Destroy class properly. | |
| void | DeepCopy (const Compound &other) |
| Deep copy of a compound. | |
| void | setName (const utils::String &name) |
| Set the name of a muscle. | |
| const utils::String & | name () const |
| Return the name of the muscle. | |
| const internal_forces::PathModifiers & | pathModifier () |
| Return the path modifier. | |
| void | addPathObject (utils::Vector3d &wrap) |
| Add a path modifier object. | |
| virtual const utils::Scalar & | force () |
| Return the last computed muscle force norm. | |
Protected Attributes | |
| std::shared_ptr< utils::String > | m_name |
| The name of the muscle. | |
| std::shared_ptr< internal_forces::PathModifiers > | m_pathChanger |
| The set of path modifiers. | |
| std::shared_ptr< utils::Scalar > | m_force |
| The last computed force. | |
Class compound is a very generic definition of what a muscle is. It should be the base class of every muscles.
Definition at line 29 of file Compound.h.
| internal_forces::Compound::Compound | ( | ) |
Construct muscle compound.
Definition at line 11 of file Compound.cpp.
| internal_forces::Compound::Compound | ( | const utils::String & | name | ) |
| internal_forces::Compound::Compound | ( | const utils::String & | name, |
| const internal_forces::PathModifiers & | pathModifiers ) |
Construct compound.
| name | Name of the compound |
| pathModifiers | The set of path modifiers |
Definition at line 21 of file Compound.cpp.
| internal_forces::Compound::Compound | ( | const Compound & | other | ) |
Construct compound from another muscle.
| other | The muscle to shallow copy |
Definition at line 29 of file Compound.cpp.
| internal_forces::Compound::Compound | ( | const std::shared_ptr< Compound > | other | ) |
Construct compound from another compound.
| other | The compound to shallow copy |
Definition at line 34 of file Compound.cpp.
|
virtual |
Destroy class properly.
Definition at line 39 of file Compound.cpp.
| void internal_forces::Compound::addPathObject | ( | utils::Vector3d & | wrap | ) |
Add a path modifier object.
| wrap | Position of the object |
Definition at line 59 of file Compound.cpp.
| void internal_forces::Compound::DeepCopy | ( | const Compound & | other | ) |
Deep copy of a compound.
| other | Compound to copy |
Definition at line 41 of file Compound.cpp.
|
virtual |
Return the last computed muscle force norm.
Reimplemented in BIORBD_NAMESPACE::internal_forces::ligaments::Ligament.
Definition at line 63 of file Compound.cpp.
| const utils::String & internal_forces::Compound::name | ( | ) | const |
Return the name of the muscle.
Definition at line 48 of file Compound.cpp.
| const internal_forces::PathModifiers & internal_forces::Compound::pathModifier | ( | ) |
| void internal_forces::Compound::setName | ( | const utils::String & | name | ) |
Set the name of a muscle.
| name | Name of the muscle |
Definition at line 50 of file Compound.cpp.
|
protected |
The last computed force.
Definition at line 108 of file Compound.h.
|
protected |
The name of the muscle.
Definition at line 105 of file Compound.h.
|
protected |
The set of path modifiers.
Definition at line 107 of file Compound.h.