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);
50 void UpdateImage(std::shared_ptr<geometry::Image> image);
54 void UpdateImage(std::shared_ptr<t::geometry::Image> image);
82 const Rect& frame)
const;
86 std::unique_ptr<Impl> impl_;
The Image class stores image with customizable width, height, num of channels and bytes per channel.
Definition Image.h:34
The Image class stores image with customizable rows, cols, channels, dtype and device.
Definition Image.h:29
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.
Definition UIImage.h:59
@ ANY
No scaling, fixed size.
Definition UIImage.h:58
@ NONE
Definition UIImage.h:57
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 BoundingVolume.cpp:19
Definition BoundingVolume.cpp:16
Definition BoundingVolume.cpp:15
Definition Application.cpp:55
REHandle< EntityType::Texture > TextureHandle
Definition RendererHandle.h:136
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