#include <SceneWidget.h>
|
enum | Controls {
ROTATE_CAMERA,
FLY,
ROTATE_SUN,
ROTATE_IBL,
ROTATE_MODEL
} |
|
enum | Quality { Quality::FAST,
Quality::BEST
} |
|
enum | CameraPreset { CameraPreset::PLUS_X,
CameraPreset::PLUS_Y,
CameraPreset::PLUS_Z
} |
|
enum | DrawResult { DrawResult::NONE,
DrawResult::REDRAW,
DrawResult::RELAYOUT
} |
|
enum | EventResult { EventResult::IGNORED,
EventResult::CONSUMED,
EventResult::DISCARD
} |
|
◆ CameraPreset
Enumerator |
---|
PLUS_X | |
PLUS_Y | |
PLUS_Z | |
◆ Controls
Enumerator |
---|
ROTATE_CAMERA | |
FLY | |
ROTATE_SUN | |
ROTATE_IBL | |
ROTATE_MODEL | |
◆ Quality
◆ SceneWidget()
open3d::visualization::gui::SceneWidget::SceneWidget |
( |
| ) |
|
|
explicit |
◆ ~SceneWidget()
open3d::visualization::gui::SceneWidget::~SceneWidget |
( |
| ) |
|
|
override |
◆ 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.
◆ EnableSceneCaching()
void open3d::visualization::gui::SceneWidget::EnableSceneCaching |
( |
bool |
enable | ) |
|
Enable (or disable) caching of scene to improve UI responsiveness when dealing with large scenes (especially point clouds)
◆ ForceRedraw()
void open3d::visualization::gui::SceneWidget::ForceRedraw |
( |
| ) |
|
Forces the scene to redraw regardless of Renderer caching settings.
◆ GetRenderQuality()
◆ GetRenderView()
rendering::View * open3d::visualization::gui::SceneWidget::GetRenderView |
( |
| ) |
const |
◆ GetScene()
◆ GoToCameraPreset()
void open3d::visualization::gui::SceneWidget::GoToCameraPreset |
( |
CameraPreset |
preset | ) |
|
◆ Key()
◆ Layout()
void open3d::visualization::gui::SceneWidget::Layout |
( |
const Theme & |
theme | ) |
|
|
overridevirtual |
◆ Mouse()
◆ SetFrame()
void open3d::visualization::gui::SceneWidget::SetFrame |
( |
const Rect & |
f | ) |
|
|
overridevirtual |
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 from open3d::visualization::gui::Widget.
◆ SetOnCameraChanged()
◆ SetOnSunDirectionChanged()
void open3d::visualization::gui::SceneWidget::SetOnSunDirectionChanged |
( |
std::function< void(const Eigen::Vector3f &)> |
on_dir_changed | ) |
|
Enables changing the directional light with the mouse. SceneWidget will update the light's direction, so onDirChanged is only needed if other things need to be updated (like a UI).
◆ SetRenderQuality()
void open3d::visualization::gui::SceneWidget::SetRenderQuality |
( |
Quality |
level | ) |
|
◆ SetScene()
◆ SetupCamera()
void open3d::visualization::gui::SceneWidget::SetupCamera |
( |
float |
verticalFoV, |
|
|
const geometry::AxisAlignedBoundingBox & |
geometry_bounds, |
|
|
const Eigen::Vector3f & |
center_of_rotation |
|
) |
| |
◆ SetViewControls()
void open3d::visualization::gui::SceneWidget::SetViewControls |
( |
Controls |
mode | ) |
|
◆ ShowSkybox()
void open3d::visualization::gui::SceneWidget::ShowSkybox |
( |
bool |
is_on | ) |
|
Enables showing the skybox while in skybox ROTATE_IBL mode.
◆ Tick()
The documentation for this class was generated from the following files: