Skip to content

Commit

Permalink
better entity names
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Sep 23, 2024
1 parent 8b2e9a8 commit afca1d7
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 45 deletions.
4 changes: 2 additions & 2 deletions crates/store/re_types/src/archetypes/asset_video.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/store/re_types/src/archetypes/video_frame_reference.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions docs/snippets/all/archetypes/video_manual_frames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,8 @@ int main(int argc, char* argv[]) {
rec.log_static("video_asset", rerun::AssetVideo::from_file(path).value_or_throw());

// Create two entities, showing the same video frozen at different times.
rec.log(
"frame_at_one_second",
rerun::VideoFrameReference(1.0s).with_video_reference("video_asset")
);
rec.log(
"frame_at_two_second",
rerun::VideoFrameReference(2.0s).with_video_reference("video_asset")
);
rec.log("frame_1s", rerun::VideoFrameReference(1.0s).with_video_reference("video_asset"));
rec.log("frame_2s", rerun::VideoFrameReference(2.0s).with_video_reference("video_asset"));

// TODO(#5520): log blueprint once supported
}
8 changes: 3 additions & 5 deletions docs/snippets/all/archetypes/video_manual_frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,19 @@

# Create two entities, showing the same video frozen at different times.
rr.log(
"frame_at_one_second",
"frame_1s",
rr.VideoFrameReference(
timestamp=rr.components.VideoTimestamp(seconds=1.0),
video_reference="video_asset",
),
)
rr.log(
"frame_at_two_second",
"frame_2s",
rr.VideoFrameReference(
timestamp=rr.components.VideoTimestamp(seconds=2.0),
video_reference="video_asset",
),
)

# Send blueprint that shows two 2D views next to each other.
rr.send_blueprint(
rrb.Horizontal(rrb.Spatial2DView(origin="frame_at_one_second"), rrb.Spatial2DView(origin="frame_at_two_second"))
)
rr.send_blueprint(rrb.Horizontal(rrb.Spatial2DView(origin="frame_1s"), rrb.Spatial2DView(origin="frame_2s")))
4 changes: 2 additions & 2 deletions docs/snippets/all/archetypes/video_manual_frames.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ fn main() -> anyhow::Result<()> {

// Create two entities, showing the same video frozen at different times.
rec.log(
"frame_at_one_second",
"frame_1s",
&rerun::VideoFrameReference::new(rerun::components::VideoTimestamp::from_seconds(1.0))
.with_video_reference("video_asset"),
)?;
rec.log(
"frame_at_two_second",
"frame_2s",
&rerun::VideoFrameReference::new(rerun::components::VideoTimestamp::from_seconds(2.0))
.with_video_reference("video_asset"),
)?;
Expand Down
10 changes: 2 additions & 8 deletions rerun_cpp/src/rerun/archetypes/asset_video.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions rerun_cpp/src/rerun/archetypes/video_frame_reference.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions rerun_py/rerun_sdk/rerun/archetypes/asset_video.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions rerun_py/rerun_sdk/rerun/archetypes/video_frame_reference.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit afca1d7

Please sign in to comment.