25 namespace visualization {
35 explicit UIImage(
const char* image_path);
36 explicit UIImage(std::shared_ptr<geometry::Image>
image);
37 explicit UIImage(std::shared_ptr<t::geometry::Image>
image);
86 std::unique_ptr<Impl> impl_;
Rect frame
Definition: BitmapWindowSystem.cpp:30
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:183
float scaling
Definition: Window.cpp:78
ImGuiContext * context
Definition: Window.cpp:76
UIImage(const char *image_path)
Definition: UIImage.cpp:56
Scaling GetScaling() const
Definition: UIImage.cpp:152
~UIImage()
Definition: UIImage.cpp:134
Size CalcPreferredSize(const LayoutContext &context, const Widget::Constraints &constraints) const
Definition: UIImage.cpp:154
void SetScaling(Scaling scaling)
Definition: UIImage.cpp:150
Scaling
Definition: UIImage.h:56
@ ASPECT
Scales to any size and aspect ratio.
@ ANY
No scaling, fixed size.
void UpdateImage(std::shared_ptr< geometry::Image > image)
Definition: UIImage.cpp:140
DrawParams CalcDrawParams(visualization::rendering::Renderer &renderer, const Rect &frame) const
Definition: UIImage.cpp:177
Definition: Renderer.h:55
Definition: PinholeCameraIntrinsic.cpp:16
visualization::rendering::TextureHandle texture
Definition: UIImage.h:78
float v1
Definition: UIImage.h:77
float pos_y
Definition: UIImage.h:71
float pos_x
Definition: UIImage.h:70
float width
Definition: UIImage.h:72
float height
Definition: UIImage.h:73
float u0
Definition: UIImage.h:74
bool image_size_changed
Definition: UIImage.h:79
float v0
Definition: UIImage.h:75
float u1
Definition: UIImage.h:76
Definition: UIImage.cpp:40