#include <RadioButton.h>
◆ Type
VERT radio buttons will be layout vertically, each item takes a line. HORIZ radio buttons will be layout horizontally, all items will be in the same line.
◆ RadioButton()
open3d::visualization::gui::RadioButton::RadioButton |
( |
Type |
type | ) |
|
|
explicit |
◆ ~RadioButton()
open3d::visualization::gui::RadioButton::~RadioButton |
( |
| ) |
|
|
overridedefault |
◆ CalcPreferredSize()
◆ 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::visualization::gui::Widget.
◆ GetSelectedIndex()
int open3d::visualization::gui::RadioButton::GetSelectedIndex |
( |
| ) |
const |
◆ GetSelectedValue()
const char * open3d::visualization::gui::RadioButton::GetSelectedValue |
( |
| ) |
const |
◆ SetItems()
void open3d::visualization::gui::RadioButton::SetItems |
( |
const std::vector< std::string > & |
items | ) |
|
◆ SetOnSelectionChanged()
void open3d::visualization::gui::RadioButton::SetOnSelectionChanged |
( |
std::function< void(int)> |
callback | ) |
|
callback to be invoked while selected index is changed. A SetSelectedIndex will not trigger this callback.
◆ SetSelectedIndex()
void open3d::visualization::gui::RadioButton::SetSelectedIndex |
( |
int |
index | ) |
|
The documentation for this class was generated from the following files: