6#include "../datatypes/vec2d.hpp"
7#include "../result.hpp"
16 class FixedSizeListBuilder;
32 Resolution(
float width,
float height) : resolution{width, height} {}
36 : resolution{static_cast<float>(width), static_cast<float>(height)} {}
44 resolution = resolution_;
48 Resolution(std::array<float, 2> xy_) : resolution(xy_) {}
50 Resolution& operator=(std::array<float, 2> xy_) {
68 struct Loggable<components::Resolution> {
69 static constexpr const char Name[] =
"rerun.components.Resolution";
72 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
76 arrow::FixedSizeListBuilder* builder,
const components::Resolution* elements,
81 static Result<std::shared_ptr<arrow::Array>> to_arrow(
82 const components::Resolution* instances,
size_t num_instances
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:69
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Component: Pixel resolution width & height, e.g.
Definition resolution.hpp:23
Resolution(float width, float height)
Construct resolution from width and height floats.
Definition resolution.hpp:32
Resolution(int width, int height)
Construct resolution from width and height integers.
Definition resolution.hpp:35
Datatype: A vector in 2D space.
Definition vec2d.hpp:20