#include <Widget.h>
◆ DrawResult
Enumerator |
---|
NONE | |
REDRAW | |
RELAYOUT | |
◆ EventResult
Enumerator |
---|
IGNORED | |
CONSUMED | |
DISCARD | |
◆ Widget() [1/2]
open3d::visualization::gui::Widget::Widget |
( |
| ) |
|
◆ Widget() [2/2]
open3d::visualization::gui::Widget::Widget |
( |
const std::vector< std::shared_ptr< Widget >> & |
children | ) |
|
|
explicit |
◆ ~Widget()
open3d::visualization::gui::Widget::~Widget |
( |
| ) |
|
|
virtual |
◆ AddChild()
void open3d::visualization::gui::Widget::AddChild |
( |
std::shared_ptr< Widget > |
child | ) |
|
◆ CalcPreferredSize()
Size open3d::visualization::gui::Widget::CalcPreferredSize |
( |
const Theme & |
theme | ) |
const |
|
virtual |
Reimplemented in open3d::visualization::gui::VGrid, open3d::visualization::gui::CollapsableVert, open3d::visualization::gui::TreeView, open3d::visualization::gui::Layout1D::Fixed, open3d::visualization::gui::ColormapTreeCell, open3d::visualization::gui::Layout1D, open3d::visualization::gui::LUTTreeCell, open3d::visualization::gui::Combobox, open3d::visualization::gui::Button, open3d::visualization::gui::FileDialog, open3d::visualization::gui::NumberEdit, open3d::visualization::gui::ImageLabel, open3d::visualization::gui::Slider, open3d::visualization::gui::CheckableTextTreeCell, open3d::visualization::gui::ListView, open3d::visualization::gui::TextEdit, open3d::visualization::gui::VectorEdit, open3d::visualization::gui::Label, open3d::visualization::gui::StackedWidget, open3d::visualization::gui::ColorEdit, open3d::visualization::gui::TabControl, open3d::visualization::gui::Checkbox, open3d::visualization::gui::Dialog, open3d::visualization::gui::ProgressBar, and open3d::visualization::SmallButton.
◆ 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 in open3d::visualization::gui::CollapsableVert, open3d::visualization::gui::TreeView, open3d::visualization::gui::SceneWidget, open3d::visualization::gui::Combobox, open3d::visualization::gui::Button, open3d::visualization::gui::ImageLabel, open3d::visualization::gui::NumberEdit, open3d::visualization::gui::Slider, open3d::visualization::gui::ListView, open3d::visualization::gui::TextEdit, open3d::visualization::gui::VectorEdit, open3d::visualization::gui::StackedWidget, open3d::visualization::gui::Label, open3d::visualization::gui::ColorEdit, open3d::visualization::gui::TabControl, open3d::visualization::gui::Checkbox, open3d::visualization::gui::Dialog, and open3d::visualization::gui::ProgressBar.
◆ DrawImGuiPopEnabledState()
void open3d::visualization::gui::Widget::DrawImGuiPopEnabledState |
( |
| ) |
|
|
protected |
◆ DrawImGuiPushEnabledState()
void open3d::visualization::gui::Widget::DrawImGuiPushEnabledState |
( |
| ) |
|
|
protected |
◆ GetBackgroundColor()
const Color & open3d::visualization::gui::Widget::GetBackgroundColor |
( |
| ) |
const |
◆ GetChildren()
const std::vector< std::shared_ptr< Widget > > open3d::visualization::gui::Widget::GetChildren |
( |
| ) |
const |
◆ GetFrame()
const Rect & open3d::visualization::gui::Widget::GetFrame |
( |
| ) |
const |
Returns the frame size in pixels.
◆ IsDefaultBackgroundColor()
bool open3d::visualization::gui::Widget::IsDefaultBackgroundColor |
( |
| ) |
const |
◆ IsEnabled()
bool open3d::visualization::gui::Widget::IsEnabled |
( |
| ) |
const |
◆ IsVisible()
bool open3d::visualization::gui::Widget::IsVisible |
( |
| ) |
const |
◆ Key()
◆ Layout()
void open3d::visualization::gui::Widget::Layout |
( |
const Theme & |
theme | ) |
|
|
virtual |
Reimplemented in open3d::visualization::gui::VGrid, open3d::visualization::gui::CollapsableVert, open3d::visualization::gui::TreeView, open3d::visualization::gui::SceneWidget, open3d::visualization::gui::ColormapTreeCell, open3d::visualization::gui::Layout1D, open3d::visualization::gui::LUTTreeCell, open3d::visualization::gui::ImageLabel, open3d::visualization::gui::CheckableTextTreeCell, open3d::visualization::gui::StackedWidget, open3d::visualization::gui::TabControl, and open3d::visualization::gui::Dialog.
◆ Mouse()
◆ SetBackgroundColor()
void open3d::visualization::gui::Widget::SetBackgroundColor |
( |
const Color & |
color | ) |
|
◆ SetEnabled()
void open3d::visualization::gui::Widget::SetEnabled |
( |
bool |
enabled | ) |
|
|
virtual |
◆ SetFrame()
void open3d::visualization::gui::Widget::SetFrame |
( |
const Rect & |
f | ) |
|
|
virtual |
The frame is in pixels. The size of a pixel varies on different and operatings sytems now frequently scale text sizes on high DPI monitors. Prefer using a Layout to using this function, but if you must use it, it is best to use a multiple of Window::GetTheme().fontSize, which represents 1em and is scaled according to the scaling factor of the window.
Reimplemented in open3d::visualization::gui::SceneWidget.
◆ SetVisible()
void open3d::visualization::gui::Widget::SetVisible |
( |
bool |
vis | ) |
|
|
virtual |
◆ Tick()
◆ Window
◆ DIM_GROW
constexpr int open3d::visualization::gui::Widget::DIM_GROW = 10000 |
|
static |
The documentation for this class was generated from the following files: