[Core] Merge Context into BaseContext - #6266
Conversation
- BaseContext is now a concrete class with Data members (is_activated, worldGravity_, dt_, time_, animate_, d_isSleeping, d_canChangeSleepingState) - All Context methods implemented in BaseContext - Node now inherits directly from BaseNode and BaseContext (instead of Context) - Context class kept as compatibility layer, inheriting from BaseContext - Updated includes in Contact.h, UniformMass.inl, VisualStyle.cpp, Main.cpp - Fixed casts in Node.cpp to use BaseContext instead of Context Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
|
[ci-depends-on] detected during build #5. To unlock the merge button, you must
|
|
[ci-depends-on] detected during build #6. To unlock the merge button, you must
|
|
Beware, sadly the PR does not compile on windows (on linux/clang it is ok), this is caused by a subtle problem related to a circular include dependency between BaseComponent and BaseContext. I'm not sure I will be able to fix that, any idea welcome. |
To fix compilation issue on windows.
|
[ci-depends-on] detected during build #7. To unlock the merge button, you must
|
|
[ci-depends-on] detected during build #8. To unlock the merge button, you must
|
|
[ci-build][with-all-tests] |
|
[ci-depends-on] detected during build #9. To unlock the merge button, you must
|
Co-authored-by: Alex Bilger <alxbilger@users.noreply.github.com>
|
[ci-depends-on] detected during build #10. To unlock the merge button, you must
|
|
[ci-depends-on] detected during build #11. To unlock the merge button, you must
|
|
[ci-build][with-all-tests] |
|
[ci-depends-on] detected during build #12. To unlock the merge button, you must
|
|
[ci-depends-on] detected during build #13. To unlock the merge button, you must
|
Co-authored-by: Frederick Roy <fredroy@users.noreply.github.com>
|
[ci-depends-on] detected during build #14. To unlock the merge button, you must
|
The Context class is the only implementation of BaseContext.
This extra layer is probably over-engineered, so I merge the two.
Ideally BaseContext should have been merged down into Context.... but given that it would generate a huge amount of code change I prefer to merge Context up in BaseContext.
[ci-depends-on https://github.com/sofa-framework/SofaPython3/pull/636]
[with-all-tests]
By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if