chrono::ChLinkMaskLF Class Reference
Description
Specialized ChLinkMask class, for constraint equations of the ChLinkLock link.
#include <ChLinkMask.h>
Inheritance diagram for chrono::ChLinkMaskLF:

Collaboration diagram for chrono::ChLinkMaskLF:

Public Member Functions | |
| ChLinkMaskLF () | |
| Create a ChLinkMaskLF which has 7 scalar constraints of class ChConstraintTwoBodies(). More... | |
| ChLinkMaskLF (const ChLinkMaskLF &other) | |
| ChLinkMaskLF & | operator= (const ChLinkMaskLF &other) |
| Assignment operator. | |
| void | SetLockMask (bool x, bool y, bool z, bool e0, bool e1, bool e2, bool e3) |
| Set all mask data at once. | |
| ChConstraintTwoBodies & | Constr_X () |
| Obtain the reference to specific scalar constraint data in the collection of this link mask. | |
| ChConstraintTwoBodies & | Constr_Y () |
| ChConstraintTwoBodies & | Constr_Z () |
| ChConstraintTwoBodies & | Constr_E0 () |
| ChConstraintTwoBodies & | Constr_E1 () |
| ChConstraintTwoBodies & | Constr_E2 () |
| ChConstraintTwoBodies & | Constr_E3 () |
| virtual void | ArchiveOut (ChArchiveOut &archive_out) override |
| Method to allow serialization of transient data to archives. | |
| virtual void | ArchiveIn (ChArchiveIn &archive_in) override |
| Method to allow deserialization of transient data from archives. | |
Public Member Functions inherited from chrono::ChLinkMask | |
| ChLinkMask () | |
| Build a link mask with no constraints. | |
| ChLinkMask (unsigned int mnconstr) | |
| Build a link mask with a default array of mnconstr constraints of class ChConstraintTwoBodies(). | |
| ChLinkMask (const ChLinkMask &source) | |
| Copy constructor. | |
| virtual | ~ChLinkMask () |
| Destructor. | |
| ChLinkMask & | operator= (const ChLinkMask &other) |
| Assignment operator. | |
| void | SetTwoBodiesVariables (ChVariables *var1, ChVariables *var2) |
| Set references to variables of two connected bodies to all constraints at once, therefore also sets all the constraints as active. | |
| ChConstraintTwoBodies & | GetConstraint (unsigned int i) |
| Obtain the reference to the i-th scalar constraint data in the collection link mask. | |
| ChConstraintTwoBodies * | GetActiveConstraint (unsigned int mnum) |
| Get the i-th active scalar constraint (inactive constraints won't be considered) | |
| void | AddConstraint (ChConstraintTwoBodies *aconstr) |
| Add a ChConstraintTwoBodies to mask (NOTE: later, the constraint will be automatically deleted when the mask will be deleted) | |
| bool | IsEqual (ChLinkMask &mask2) |
| To compare two masks, return true if equal. | |
| unsigned int | GetNumConstraints () |
| Get the number of constraints. | |
| void | SetNumConstraints (unsigned int newnconstr) |
| Set a new number of constraints. More... | |
| unsigned int | GetNumConstraintsActive () |
| Get the number of active constraints. | |
| unsigned int | GetNumConstraintsBilateralActive () |
| Get the number of active bilateral constraints. | |
| unsigned int | GetNumConstraintsUnilateralActive () |
| Get the number of active unilateral constraints. | |
| unsigned int | SetAllDisabled (bool mdis) |
| If SetAllDisabled(true), all the constraints are temporarily turned off (inactive) at once, because marked as 'disabled'. More... | |
| unsigned int | SetAllBroken (bool mdis) |
| If SetAllBroken(true), all the constraints are temporarily turned off (broken) at once, because marked as 'broken'. More... | |
Additional Inherited Members | |
Protected Attributes inherited from chrono::ChLinkMask | |
| std::vector< ChConstraintTwoBodies * > | constraints |
| array of pointers to 'n' scalar constraints | |
| unsigned int | nconstr |
| number of scalar constraint equations. | |
Constructor & Destructor Documentation
◆ ChLinkMaskLF()
| chrono::ChLinkMaskLF::ChLinkMaskLF | ( | ) |
Create a ChLinkMaskLF which has 7 scalar constraints of class ChConstraintTwoBodies().
This is useful in case it must be used for the ChLinkLock link.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/physics/ChLinkMask.h
- /builds/uwsbel/chrono/src/chrono/physics/ChLinkMask.cpp
Public Member Functions inherited from