-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement roundtrip-ready
DisconnectedSpace
archetype (#2833)
What the title says. This does **not** migrate off of the legacy `DisconnectedSpace`, that's for a future PR. Part of #2791 ### What ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/2833) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/2833) - [Docs preview](https://rerun.io/preview/pr%3Acmc%2Froundtrippable_disconnected_transform/docs) - [Examples preview](https://rerun.io/preview/pr%3Acmc%2Froundtrippable_disconnected_transform/examples)
- Loading branch information
Showing
56 changed files
with
931 additions
and
84 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
crates/re_types/definitions/rerun/archetypes/disconnected_space.fbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
include "fbs/attributes.fbs"; | ||
|
||
include "rerun/datatypes.fbs"; | ||
include "rerun/components.fbs"; | ||
|
||
namespace rerun.archetypes; | ||
|
||
/// Specifies that the entity path at which this is logged is disconnected from its parent. | ||
/// | ||
/// This is useful for specifying that a subgraph is independent of the rest of the scene. | ||
/// | ||
/// If a transform or pinhole is logged on the same path, this archetype's components | ||
/// will be ignored. | ||
/// | ||
/// \py Example | ||
/// \py ------- | ||
/// \py | ||
/// \py ```python | ||
/// \py \include:../../../../../docs/code-examples/disconnected_space_v2.py | ||
/// \py ``` | ||
/// | ||
/// \rs ## Example | ||
/// \rs | ||
/// \rs ```ignore | ||
/// \rs \include:../../../../../docs/code-examples/disconnected_space_v2.rs | ||
/// \rs ``` | ||
table DisconnectedSpace ( | ||
"attr.rust.derive": "Copy, PartialEq, Eq", | ||
order: 100 | ||
) { | ||
disconnected_space: rerun.components.DisconnectedSpace ("attr.rerun.component_required", required, order: 1000); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
crates/re_types/definitions/rerun/components/disconnected_space.fbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
include "arrow/attributes.fbs"; | ||
include "python/attributes.fbs"; | ||
include "rust/attributes.fbs"; | ||
|
||
include "rerun/datatypes.fbs"; | ||
include "rerun/attributes.fbs"; | ||
|
||
namespace rerun.components; | ||
|
||
// --- | ||
|
||
/// Specifies that the entity path at which this is logged is disconnected from its parent. | ||
/// | ||
/// This is useful for specifying that a subgraph is independent of the rest of the scene. | ||
/// | ||
/// If a transform or pinhole is logged on the same path, this component will be ignored. | ||
struct DisconnectedSpace ( | ||
"attr.python.aliases": "bool", | ||
"attr.python.array_aliases": "bool, npt.NDArray[np.bool_]", | ||
"attr.rerun.legacy_fqname": "rerun.disconnected_space", | ||
"attr.rust.derive": "Copy, PartialEq, Eq", | ||
order: 100 | ||
) { | ||
is_disconnected: bool (order: 100); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.