-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Codegen for space view python blueprint classes (#6100)
### What * Fixes #6081 Extends our codegen to accept a fourth object type, space views (in addition to datatypes/components/archetypes). Meaning we can do special codegen for space views now, making it easy to set them up consistently and define what properties a space view can be constructed from. Building up on the previous PR that exposed background3d color, this generates almost identical code now. Doesn't add yet any new view properties - this is going to happen in a follow-up PR since it requires getting a few more things serializable and subsequently also testing. ### 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 the web demo (if applicable): * Using examples from latest `main` build: [rerun.io/viewer](https://rerun.io/viewer/pr/6100?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [rerun.io/viewer](https://rerun.io/viewer/pr/6100?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG * [x] If applicable, add a new check to the [release checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)! - [PR Build Summary](https://build.rerun.io/pr/6100) - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html) To run all checks from `main`, comment on the PR with `@rerun-bot full-check`.
- Loading branch information
Showing
32 changed files
with
725 additions
and
271 deletions.
There are no files selected for viewing
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
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
9 changes: 9 additions & 0 deletions
9
crates/re_types/definitions/rerun/blueprint/views/bar_chart.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,9 @@ | ||
include "rerun/attributes.fbs"; | ||
|
||
namespace rerun.blueprint.views; | ||
|
||
/// A bar chart view. | ||
table BarChartView ( | ||
"attr.rerun.view_identifier": "BarChart" | ||
) { | ||
} |
9 changes: 9 additions & 0 deletions
9
crates/re_types/definitions/rerun/blueprint/views/spatial2d.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,9 @@ | ||
include "rerun/attributes.fbs"; | ||
|
||
namespace rerun.blueprint.views; | ||
|
||
/// A Spatial 2D view. | ||
table Spatial2DView ( | ||
"attr.rerun.view_identifier": "2D" | ||
) { | ||
} |
11 changes: 11 additions & 0 deletions
11
crates/re_types/definitions/rerun/blueprint/views/spatial3d.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,11 @@ | ||
include "rerun/attributes.fbs"; | ||
|
||
namespace rerun.blueprint.views; | ||
|
||
/// A Spatial 3D view. | ||
table Spatial3DView ( | ||
"attr.rerun.view_identifier": "3D" | ||
) { | ||
/// Configuration for the background of the 3D space view. | ||
background: rerun.blueprint.archetypes.Background3D (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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
include "rerun/attributes.fbs"; | ||
|
||
namespace rerun.blueprint.views; | ||
|
||
/// A tensor view. | ||
table TensorView ( | ||
"attr.rerun.view_identifier": "Tensor" | ||
) { | ||
} |
9 changes: 9 additions & 0 deletions
9
crates/re_types/definitions/rerun/blueprint/views/text_document.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,9 @@ | ||
include "rerun/attributes.fbs"; | ||
|
||
namespace rerun.blueprint.views; | ||
|
||
/// A text document view. | ||
table TextDocumentView ( | ||
"attr.rerun.view_identifier": "TextDocument" | ||
) { | ||
} |
9 changes: 9 additions & 0 deletions
9
crates/re_types/definitions/rerun/blueprint/views/text_log.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,9 @@ | ||
include "rerun/attributes.fbs"; | ||
|
||
namespace rerun.blueprint.views; | ||
|
||
/// A text log view. | ||
table TextLogView ( | ||
"attr.rerun.view_identifier": "TextLog" | ||
) { | ||
} |
9 changes: 9 additions & 0 deletions
9
crates/re_types/definitions/rerun/blueprint/views/time_series.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,9 @@ | ||
include "rerun/attributes.fbs"; | ||
|
||
namespace rerun.blueprint.views; | ||
|
||
/// A time series view. | ||
table TimeSeriesView ( | ||
"attr.rerun.view_identifier": "TimeSeries" | ||
) { | ||
} |
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
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
Oops, something went wrong.