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 &marchive) override | 
| Method to allow serialization of transient data to archives.  | |
| virtual void | ArchiveIN (ChArchiveIn &marchive) 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 (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 & | Constr_N (int i) | 
| Obtain the reference to the i-th scalar constraint data in the collection link mask.  | |
| void | ResetNconstr (int newnconstr) | 
| Utility: to change the size of the mask, reallocating constraints (all of type ChConstraintTwo).  More... | |
| 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.  | |
| int | GetMaskDoc () | 
| Count both bilaterals and unilaterals.  | |
| int | GetMaskDoc_c () | 
| Count only bilaterals.  | |
| int | GetMaskDoc_d () | 
| Count only unilaterals.  | |
| ChConstraintTwoBodies * | GetActiveConstrByNum (int mnum) | 
| Get the i-th active scalar constraint (not active constr. won't be considered)  | |
| int | SetActiveRedundantByArray (int *mvector, int mcount) | 
| Sets some active constraints as redundant.  | |
| int | RestoreRedundant () | 
| Set lock =ON for constraints which were disabled because redundant.  | |
| int | SetAllDisabled (bool mdis) | 
| If SetAllDisabled(true), all the constraints are temporarily turned off (inactive) at once, because marked as 'disabled'.  More... | |
| 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 | |
  Public Attributes inherited from chrono::ChLinkMask | |
| int | nconstr | 
| number of scalar constraint equations.  | |
  Protected Attributes inherited from chrono::ChLinkMask | |
| std::vector< ChConstraintTwoBodies * > | constraints | 
| array of pointers to 'n' scalar constraints  | |
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