#include <ImageLabel.h>
◆ ImageLabel() [1/4]
open3d::gui::ImageLabel::ImageLabel |
( |
| ) |
|
◆ ImageLabel() [2/4]
open3d::gui::ImageLabel::ImageLabel |
( |
const char * |
image_path | ) |
|
|
explicit |
Uses image from the specified path. Each ImageLabel will use one draw call.
◆ ImageLabel() [3/4]
open3d::gui::ImageLabel::ImageLabel |
( |
visualization::TextureHandle |
texture_id, |
|
|
float |
u0 = 0.0f , |
|
|
float |
v0 = 0.0f , |
|
|
float |
u1 = 1.0f , |
|
|
float |
v1 = 1.0f |
|
) |
| |
|
explicit |
Uses an existing texture, using texture coordinates (u0, v0) to (u1, v1). Does not deallocate texture on destruction. This is useful for using an icon atlas to reduce draw calls.
◆ ImageLabel() [4/4]
open3d::gui::ImageLabel::ImageLabel |
( |
std::shared_ptr< UIImage > |
image | ) |
|
◆ ~ImageLabel()
open3d::gui::ImageLabel::~ImageLabel |
( |
| ) |
|
◆ CalcPreferredSize()
Size open3d::gui::ImageLabel::CalcPreferredSize |
( |
const Theme & |
theme | ) |
const |
|
overridevirtual |
◆ Draw()
Draws the widget. If this is a Dear ImGUI widget, this is where the actual event processing happens. Return NONE if no action needs to be taken, REDRAW if the widget needs to be redrawn (e.g. its value changed), and RELAYOUT if the widget wishes to change size.
Reimplemented from open3d::gui::Widget.
◆ GetImage()
std::shared_ptr<UIImage> open3d::gui::ImageLabel::GetImage |
( |
| ) |
const |
◆ Layout()
void open3d::gui::ImageLabel::Layout |
( |
const Theme & |
theme | ) |
|
|
overridevirtual |
◆ SetImage()
void open3d::gui::ImageLabel::SetImage |
( |
std::shared_ptr< UIImage > |
image | ) |
|
The documentation for this class was generated from the following files:
- /home/travis/build/intel-isl/Open3D/cpp/open3d/visualization/gui/ImageLabel.h
- /home/travis/build/intel-isl/Open3D/cpp/open3d/visualization/gui/ImageLabel.cpp