Biorbd
|
A point attached to a segment, generally speaking a skin marker. More...
#include <NodeSegment.h>
Public Member Functions | |
NodeSegment () | |
Construct a segment node. | |
NodeSegment (const biorbd::utils::Scalar &x, const biorbd::utils::Scalar &y, const biorbd::utils::Scalar &z) | |
Construct a segment node. More... | |
NodeSegment (const biorbd::utils::Vector3d &other) | |
Construct a segment node from another node. More... | |
NodeSegment (const biorbd::utils::Scalar &x, const biorbd::utils::Scalar &y, const biorbd::utils::Scalar &z, const biorbd::utils::String &name, const biorbd::utils::String &parentName, bool isTechnical, bool isAnatomical, const biorbd::utils::String &axesToRemove, int parentID) | |
Construct a segment node. More... | |
NodeSegment (const biorbd::utils::Vector3d &node, const biorbd::utils::String &name, const biorbd::utils::String &parentName, bool isTechnical, bool isAnatomical, const biorbd::utils::String &axesToRemove, int parentID) | |
Construct a segment node. More... | |
biorbd::rigidbody::NodeSegment | DeepCopy () const |
Deep copy of the segment node. More... | |
void | DeepCopy (const biorbd::rigidbody::NodeSegment &other) |
Deep copy of the segment node. More... | |
bool | isTechnical () const |
Return if node is technical. More... | |
bool | isAnatomical () const |
Return if node is anatomical. More... | |
int | parentId () const |
Return the parent index. More... | |
NodeSegment | removeAxes () const |
To remove axis. More... | |
bool | isAxisRemoved (unsigned int) const |
Check if axis is removed. More... | |
bool | isAxisKept (unsigned int) const |
Check if axis is kept. More... | |
void | addAxesToRemove (unsigned int axisNumber) |
Add an axis to remove. More... | |
void | addAxesToRemove (const biorbd::utils::String &axis) |
Add axis to remove. More... | |
void | addAxesToRemove (const std::vector< unsigned int > &axes) |
Add multiple axes to remove. More... | |
void | addAxesToRemove (const std::vector< biorbd::utils::String > &axes) |
Add multiple axes to remove. More... | |
biorbd::utils::String | axesToRemove () |
Return the axes to removed. More... | |
int | nbAxesToRemove () const |
Return the number of axes to remove. More... | |
![]() | |
Vector3d () | |
Construct 3D vector. More... | |
Vector3d (const biorbd::utils::Scalar &x, const biorbd::utils::Scalar &y, const biorbd::utils::Scalar &z) | |
Construct 3D vector. More... | |
Vector3d (const biorbd::utils::Scalar &x, const biorbd::utils::Scalar &y, const biorbd::utils::Scalar &z, const biorbd::utils::String &name, const biorbd::utils::String &parentName) | |
Construct a 3D vector. More... | |
Vector3d (const biorbd::utils::Vector3d vec, const biorbd::utils::String &name, const biorbd::utils::String &parentName) | |
Construct a 3D vector. More... | |
Vector3d (const RigidBodyDynamics::Math::Vector3d &other) | |
Construct a 3D vector from a Casadi 3D vector (drop the trailling 1) More... | |
Vector3d (const RigidBodyDynamics::Math::VectorNd &other) | |
Construct a 3D vector from a Casadi ND vector (drop the trailling 1) More... | |
Vector3d (const RigidBodyDynamics::Math::Vector4d &other) | |
Construct a 3D vector from an eigen 4D vector (drop the trailling 1) More... | |
biorbd::utils::Vector3d | DeepCopy () const |
Deep copy of a 3D vector. More... | |
void | DeepCopy (const biorbd::utils::Vector3d &other) |
Deep copy of a 3D vector into another 3D vector. More... | |
biorbd::utils::Vector3d | applyRT (const RotoTrans &rt) const |
Apply a RotoTrans to the 3D vector. More... | |
void | applyRT (const RotoTrans &rt) |
Apply a RotoTrans to the 3D vector. More... | |
![]() | |
Node () | |
Construct Node. | |
Node (const biorbd::utils::Node &other) | |
Construct Node from another node. More... | |
Node (const biorbd::utils::String &name) | |
Construct Node. More... | |
Node (const biorbd::utils::String &name, const biorbd::utils::String &parentName) | |
Construct Node. More... | |
virtual | ~Node () |
Destroy class properly. | |
void | DeepCopy (const biorbd::utils::Node &other) |
Deep copy of the node in another node. More... | |
void | setName (const biorbd::utils::String &name) |
Set the name of the node. More... | |
const biorbd::utils::String & | name () const |
Return the name of the node. | |
const biorbd::utils::String & | parent () const |
Return the parent name of the node. | |
void | setParent (const biorbd::utils::String &name) |
Set the parent name of the node. More... | |
biorbd::utils::NODE_TYPE | typeOfNode () const |
Return the type of node. | |
Protected Member Functions | |
void | setType () |
Set the type of the segment node. | |
Protected Attributes | |
std::shared_ptr< std::vector< bool > > | m_axesRemoved |
The axes to remove. | |
std::shared_ptr< int > | m_nbAxesToRemove |
Removed one of multiple axes (1 axis : project on a plan, 2 axes : project on the 3rd axis, 3 axes : return the position of the parent reference) | |
std::shared_ptr< bool > | m_technical |
If a marker is a technical marker. | |
std::shared_ptr< bool > | m_anatomical |
It marker is a anatomical marker. | |
std::shared_ptr< int > | m_id |
The parent identification. | |
![]() | |
std::shared_ptr< biorbd::utils::String > | m_name |
The name of the node. | |
std::shared_ptr< biorbd::utils::String > | m_parentName |
The parent name of the node. | |
std::shared_ptr< biorbd::utils::NODE_TYPE > | m_typeOfNode |
The type of the node. | |
A point attached to a segment, generally speaking a skin marker.
Definition at line 18 of file NodeSegment.h.
biorbd::rigidbody::NodeSegment::NodeSegment | ( | const biorbd::utils::Scalar & | x, |
const biorbd::utils::Scalar & | y, | ||
const biorbd::utils::Scalar & | z | ||
) |
Construct a segment node.
x | X-Component of the node |
y | Y-Component of the node |
z | Z-Component of the node |
Definition at line 17 of file NodeSegment.cpp.
biorbd::rigidbody::NodeSegment::NodeSegment | ( | const biorbd::utils::Vector3d & | other | ) |
Construct a segment node from another node.
other | The other node |
Definition at line 31 of file NodeSegment.cpp.
biorbd::rigidbody::NodeSegment::NodeSegment | ( | const biorbd::utils::Scalar & | x, |
const biorbd::utils::Scalar & | y, | ||
const biorbd::utils::Scalar & | z, | ||
const biorbd::utils::String & | name, | ||
const biorbd::utils::String & | parentName, | ||
bool | isTechnical, | ||
bool | isAnatomical, | ||
const biorbd::utils::String & | axesToRemove, | ||
int | parentID | ||
) |
Construct a segment node.
x | X-Component of the node |
y | Y-Component of the node |
z | Z-Component of the node |
name | The name of the node |
parentName | The name of the parent |
isTechnical | If the node is technical |
isAnatomical | If the node is anatomical |
axesToRemove | The axis to remove |
parentID | The index of the parent segment |
Definition at line 42 of file NodeSegment.cpp.
biorbd::rigidbody::NodeSegment::NodeSegment | ( | const biorbd::utils::Vector3d & | node, |
const biorbd::utils::String & | name, | ||
const biorbd::utils::String & | parentName, | ||
bool | isTechnical, | ||
bool | isAnatomical, | ||
const biorbd::utils::String & | axesToRemove, | ||
int | parentID | ||
) |
Construct a segment node.
node | The position of the node |
name | The name of the node |
parentName | The name of the parent |
isTechnical | If the node is technical |
isAnatomical | If the node is anatomical |
axesToRemove | The axis to remove |
parentID | The index of the parent segment |
Definition at line 62 of file NodeSegment.cpp.
void biorbd::rigidbody::NodeSegment::addAxesToRemove | ( | const biorbd::utils::String & | axis | ) |
Add axis to remove.
axis | The name of the axis to remove ("x", "y" or "z") |
Definition at line 154 of file NodeSegment.cpp.
void biorbd::rigidbody::NodeSegment::addAxesToRemove | ( | const std::vector< biorbd::utils::String > & | axes | ) |
Add multiple axes to remove.
axes | The multiples axes names to remove ("x", "y" or "z") |
Definition at line 173 of file NodeSegment.cpp.
void biorbd::rigidbody::NodeSegment::addAxesToRemove | ( | const std::vector< unsigned int > & | axes | ) |
Add multiple axes to remove.
axes | The multiples axes numbers to remove (x = 0, y = 1 and z = 2) |
Definition at line 167 of file NodeSegment.cpp.
void biorbd::rigidbody::NodeSegment::addAxesToRemove | ( | unsigned int | axisNumber | ) |
Add an axis to remove.
axisNumber | The axis number to remove (x = 0, y = 1 and z = 2) |
Definition at line 146 of file NodeSegment.cpp.
biorbd::utils::String biorbd::rigidbody::NodeSegment::axesToRemove | ( | ) |
Return the axes to removed.
Definition at line 179 of file NodeSegment.cpp.
biorbd::rigidbody::NodeSegment biorbd::rigidbody::NodeSegment::DeepCopy | ( | ) | const |
Deep copy of the segment node.
Definition at line 81 of file NodeSegment.cpp.
void biorbd::rigidbody::NodeSegment::DeepCopy | ( | const biorbd::rigidbody::NodeSegment & | other | ) |
Deep copy of the segment node.
other | The segment node to copy |
Definition at line 88 of file NodeSegment.cpp.
bool biorbd::rigidbody::NodeSegment::isAnatomical | ( | ) | const |
Return if node is anatomical.
Definition at line 99 of file NodeSegment.cpp.
bool biorbd::rigidbody::NodeSegment::isAxisKept | ( | unsigned int | i | ) | const |
Check if axis is kept.
Definition at line 131 of file NodeSegment.cpp.
bool biorbd::rigidbody::NodeSegment::isAxisRemoved | ( | unsigned int | i | ) | const |
Check if axis is removed.
Definition at line 126 of file NodeSegment.cpp.
bool biorbd::rigidbody::NodeSegment::isTechnical | ( | ) | const |
Return if node is technical.
Definition at line 106 of file NodeSegment.cpp.
int biorbd::rigidbody::NodeSegment::nbAxesToRemove | ( | ) | const |
Return the number of axes to remove.
Definition at line 136 of file NodeSegment.cpp.
int biorbd::rigidbody::NodeSegment::parentId | ( | ) | const |
biorbd::rigidbody::NodeSegment biorbd::rigidbody::NodeSegment::removeAxes | ( | ) | const |
To remove axis.
Definition at line 117 of file NodeSegment.cpp.