Repository navigation
FanForceField Extension #3244
|
What is the return type of getValue()? In other words, if I were to specify force[i] by creating a similar object as d_force, how would you do it? Can you point me to the correct documentation as well? Thanks! |
Replies: 1 comment 1 reply
|
Dear @YanzhouWang Welcome on the SOFA forum 🙌 ! A more complete doc page explains how to : ➡️ You will see from this page that the |
Dear @YanzhouWang
Welcome on the SOFA forum 🙌 !
A Data as explained on the Lexicography doc page is a public attribute of a Component (C++ class) visible to the user in the SOFA user interface. For a physical model or an algorithm, a Data is a parameter available for the user (e.g. the total mass
totalMassin a mass component). Data may be defined by the user (some are compulsory – a.k.a. required – else a warning will be sent), accessed and modified.A more complete doc page explains how to :
➡️ You will see from this page that the
getValue()function aims at obtain a read-only access to a Data. The returned type is therefore …