Open3D (C++ API)
0.17.0
cpp
open3d
visualization
gui
StackedWidget.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - Open3D: www.open3d.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2023 www.open3d.org
5
// SPDX-License-Identifier: MIT
6
// ----------------------------------------------------------------------------
7
8
#pragma once
9
10
#include "
open3d/visualization/gui/Widget.h
"
11
12
namespace
open3d
{
13
namespace
visualization {
14
namespace
gui {
15
18
class
StackedWidget
:
public
Widget
{
19
using
Super
=
Widget
;
20
21
public
:
22
StackedWidget
();
23
virtual
~StackedWidget
();
24
26
void
SetSelectedIndex
(
int
index);
28
int
GetSelectedIndex
()
const
;
29
30
Size
CalcPreferredSize
(
const
LayoutContext
&
context
,
31
const
Constraints
& constraints)
const override
;
32
33
void
Layout
(
const
LayoutContext
&
context
)
override
;
34
35
Widget::DrawResult
Draw
(
const
DrawContext
&
context
)
override
;
36
37
private
:
38
struct
Impl
;
39
std::unique_ptr<Impl> impl_;
40
};
41
42
}
// namespace gui
43
}
// namespace visualization
44
}
// namespace open3d
Widget.h
context
ImGuiContext * context
Definition:
Window.cpp:76
open3d::visualization::gui::StackedWidget
Definition:
StackedWidget.h:18
open3d::visualization::gui::StackedWidget::~StackedWidget
virtual ~StackedWidget()
Definition:
StackedWidget.cpp:22
open3d::visualization::gui::StackedWidget::Layout
void Layout(const LayoutContext &context) override
Definition:
StackedWidget.cpp:41
open3d::visualization::gui::StackedWidget::Draw
Widget::DrawResult Draw(const DrawContext &context) override
Definition:
StackedWidget.cpp:50
open3d::visualization::gui::StackedWidget::SetSelectedIndex
void SetSelectedIndex(int index)
Sets the index of the child to draw.
Definition:
StackedWidget.cpp:24
open3d::visualization::gui::StackedWidget::CalcPreferredSize
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
Definition:
StackedWidget.cpp:30
open3d::visualization::gui::StackedWidget::StackedWidget
StackedWidget()
Definition:
StackedWidget.cpp:20
open3d::visualization::gui::StackedWidget::GetSelectedIndex
int GetSelectedIndex() const
Returns the index of the selected child.
Definition:
StackedWidget.cpp:28
open3d::visualization::gui::Widget
Definition:
Widget.h:49
open3d::visualization::gui::Widget::Widget
Widget()
Definition:
Widget.cpp:34
open3d::visualization::gui::Widget::DrawResult
DrawResult
Definition:
Widget.h:95
open3d
Definition:
PinholeCameraIntrinsic.cpp:16
open3d::visualization::gui::DrawContext
Definition:
Widget.h:37
open3d::visualization::gui::LayoutContext
Definition:
Widget.h:32
open3d::visualization::gui::Size
Definition:
Gui.h:22
open3d::visualization::gui::StackedWidget::Impl
Definition:
StackedWidget.cpp:16
open3d::visualization::gui::Widget::Constraints
Definition:
Widget.h:84
Generated by
1.9.1