-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for entities as reference frames #5817
Conversation
We can now succesfully translate from any input frame to FIXED or INERTIAL. Output frames are still a problem. Cleaned up some tests and added outputFrame tests that currently fail.
…y/unknown) reference frames Modified CzmlDataSource to process ‘#id’ and null referenceFrames. Added OrientationProperty (convertToReferenceFrame) Modified PositionProperty (convertToReferenceFrame) Added ReferenceEntity Added OrientationPropertySpec Fixed PositionPropertySpec tests and added new tests.
…renceFrames # Conflicts: # Source/DataSources/CzmlDataSource.js
Supporting a "null" reference frame is unnecessary, since `new Entity()` without a position property suffices as an arbitrary reference frame.
Removed allocations within convertToReferenceFrame for PositionProperty and OrientationProperty
@speigg, thanks for the pull request! Maintainers, we have a signed CLA from @speigg, so you can review this at any time. I noticed that CHANGES.md has not been updated. If this change updates the public API in any way, fixes a bug, or makes any non-trivial update, please add a bullet point to I am a bot who helps you make Cesium awesome! Thanks again. |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
Adding this capability is definitely desired. This has been on my list to look at but I don't know when I'll get to it. We need to ensure that it's added in way that enables it to work seamlessly and correctly across our product lines (Components/STK Desktop -> CZML -> Cesium). When I have availability I expect I'll pick up from where this PR currently stands. |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
4 similar comments
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
2 similar comments
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
@shunter any idea when you might be able to work on this? Should we park this on a branch? |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
8 similar comments
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @speigg! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
@cesium-concierge stop |
So will there be a convertToReferenceFrame() method for orientation?? or only for position?? |
I'm closing this for now as it's quite out of date with main. If we wish to revisit this in the future, let's open a fresh PR. Thanks all. |
Based on previous pull request #2998, with optimizations to eliminate allocations.
This PR is based on the
referenceFrames
branch, and adds support for constructing trees of entities by allowing entities to be used as reference frames themselves (see #1045). The root reference frame for any tree is eitherFIXED
,INERTIAL
, or an entity with an undefined position (an arbitrary frame).For example:
PositionProperty.convertToReferenceFrame
has been rewritten to support converting positions between any two reference frames, including any two entities. Likewise,OrientationProperty.convertToReferenceFrame
has been added to convert orientations between any two reference frames.ReferenceEntity
class is added to support the '#id' notation for entities as reference frames in CzmlDataSource when the specified Entity does not yet exist in the EntityCollection (https://github.com/AnalyticalGraphicsInc/cesium/wiki/CZML-Content#position).Specs have been added for
PositionProperty
andOrientationProperty
.JSHint passes.
Summary of Changes:
referenceFrames
branchFeatures not included:
getValueInReferenceFrame
does not yet exist for theorientation
property on theEntity
class (the more cumbersomeOrientationProperty.convertToReferenceFrame
has to be used to convert orientations between reference frames instead). It seems that having agetValueInReferenceFrame
method for orientation properties would require adding many new *OrientationProperty classes, the equivalent of all the *PositionProperty classes.