Skip to content

Commit

Permalink
Adding DefaultCamera
Browse files Browse the repository at this point in the history
  • Loading branch information
jviereck committed Nov 22, 2024
1 parent 97e944b commit 5f37812
Show file tree
Hide file tree
Showing 34 changed files with 952 additions and 3 deletions.

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
namespace rerun.blueprint.archetypes;


/// Defines a default camera view.
table DefaultCamera (
"attr.docs.category": "Spatial 3D",
"attr.docs.view_types": "Spatial3DView, Spatial2DView: if logged above active projection",
"attr.rust.derive": "Copy, PartialEq",
"attr.rerun.scope": "blueprint"
) {
/// Origin of the camera view.
origin: rerun.blueprint.components.CameraOrigin ("attr.rerun.component_optional", nullable, order: 1100);

/// Target of the camera view.
target: rerun.blueprint.components.CameraTarget ("attr.rerun.component_optional", nullable, order: 1200);
}

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
namespace rerun.blueprint.components;


/// Origin of a camera.
struct CameraOrigin (
"attr.rust.derive": "PartialEq, Copy",
"attr.rust.repr": "transparent",
"attr.rerun.scope": "blueprint"
) {
/// Position of the camera origin.
pos: rerun.datatypes.Vec3D (order: 100);
}


/// Target of a camera.
struct CameraTarget (
"attr.rust.derive": "PartialEq, Copy",
"attr.rust.repr": "transparent",
"attr.rerun.scope": "blueprint"
) {
/// Position of the camera target.
pos: rerun.datatypes.Vec3D (order: 100);
}

Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ table Spatial3DView (
/// If not specified, the default is to show the latest state of each component.
/// If a timeline is specified more than once, the first entry will be used.
time_ranges: rerun.blueprint.archetypes.VisibleTimeRanges (order: 10000);

/// Configures the default camera position of the 3D view.
default_camera: rerun.blueprint.archetypes.DefaultCamera (order: 20000);
}

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

198 changes: 198 additions & 0 deletions crates/store/re_types/src/blueprint/archetypes/default_camera.rs

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

2 changes: 2 additions & 0 deletions crates/store/re_types/src/blueprint/archetypes/mod.rs

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

2 changes: 2 additions & 0 deletions crates/store/re_types/src/blueprint/components/.gitattributes

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

Loading

0 comments on commit 5f37812

Please sign in to comment.