Open3D (C++ API)
0.12.0
|
#include <O3DVisualizer.h>
Data Structures | |
struct | DrawObject |
struct | Impl |
struct | UIState |
Public Types | |
enum | Shader { Shader::STANDARD, Shader::UNLIT, Shader::NORMALS, Shader::DEPTH } |
enum | TickResult { TickResult::NO_CHANGE, TickResult::REDRAW } |
Public Member Functions | |
O3DVisualizer (const std::string &title, int width, int height) | |
virtual | ~O3DVisualizer () |
void | AddAction (const std::string &name, std::function< void(O3DVisualizer &)> callback) |
void | SetBackground (const Eigen::Vector4f &bg_color, std::shared_ptr< geometry::Image > bg_image=nullptr) |
void | SetShader (Shader shader) |
void | AddGeometry (const std::string &name, std::shared_ptr< geometry::Geometry3D > geom, rendering::Material *material=nullptr, const std::string &group="", double time=0.0, bool is_visible=true) |
void | AddGeometry (const std::string &name, std::shared_ptr< t::geometry::Geometry > tgeom, rendering::Material *material=nullptr, const std::string &group="", double time=0.0, bool is_visible=true) |
void | RemoveGeometry (const std::string &name) |
void | ShowGeometry (const std::string &name, bool show) |
DrawObject | GetGeometry (const std::string &name) const |
void | SetupCamera (float fov, const Eigen::Vector3f ¢er, const Eigen::Vector3f &eye, const Eigen::Vector3f &up) |
void | ResetCameraToDefault () |
void | ShowSettings (bool show) |
void | ShowSkybox (bool show) |
void | ShowAxes (bool show) |
void | SetPointSize (int point_size) |
void | SetLineWidth (int line_width) |
void | EnableGroup (const std::string &group, bool enable) |
std::vector< O3DVisualizerSelections::SelectionSet > | GetSelectionSets () const |
double | GetAnimationFrameDelay () const |
void | SetAnimationFrameDelay (double secs) |
double | GetAnimationTimeStep () const |
void | SetAnimationTimeStep (double time_step) |
double | GetAnimationDuration () const |
void | SetAnimationDuration (double sec) |
double | GetCurrentTime () const |
void | SetCurrentTime (double t) |
bool | GetIsAnimating () const |
void | SetAnimating (bool is_animating) |
void | SetOnAnimationFrame (std::function< void(O3DVisualizer &, double)> cb) |
void | SetOnAnimationTick (std::function< TickResult(O3DVisualizer &, double, double)> cb) |
void | ExportCurrentImage (const std::string &path) |
UIState | GetUIState () const |
rendering::Open3DScene * | GetScene () const |
void | StartRPCInterface (const std::string &address, int timeout) |
Starts the RPC interface. See io/rpc/ReceiverBase for the parameters. More... | |
void | StopRPCInterface () |
Public Member Functions inherited from open3d::visualization::gui::Window | |
Window (const std::string &title, int flags=0) | |
Window (const std::string &title, int width, int height, int flags=0) | |
Window (const std::string &title, int x, int y, int width, int height, int flags=0) | |
virtual | ~Window () |
const Theme & | GetTheme () const |
visualization::rendering::Renderer & | GetRenderer () const |
Rect | GetOSFrame () const |
void | SetOSFrame (const Rect &r) |
const char * | GetTitle () const |
void | SetTitle (const char *title) |
void | SizeToFit () |
void | SetSize (const Size &size) |
Sets the size of the window in pixels. Includes menubar on Linux. More... | |
Size | GetSize () const |
Rect | GetContentRect () const |
float | GetScaling () const |
Returns the scaling factor from OS pixels to device pixels. More... | |
Point | GlobalToWindowCoord (int global_x, int global_y) |
Returns the global point (in OS pixels) in window local coordinates. More... | |
bool | IsVisible () const |
void | Show (bool vis=true) |
void | Close () |
void | SetNeedsLayout () |
Instructs the window to relayout before the next draw. More... | |
void | PostRedraw () |
void | SetTopmost (bool topmost) |
void | RaiseToTop () const |
bool | IsActiveWindow () const |
void | SetFocusWidget (Widget *w) |
Sets. More... | |
void | AddChild (std::shared_ptr< Widget > w) |
void | SetOnMenuItemActivated (Menu::ItemId item_id, std::function< void()> callback) |
void | SetOnTickEvent (std::function< bool()> callback) |
void | ShowDialog (std::shared_ptr< Dialog > dlg) |
void | CloseDialog () |
Closes the dialog. More... | |
void | ShowMessageBox (const char *title, const char *message) |
void | DestroyWindow () |
Protected Member Functions | |
void | Layout (const gui::Theme &theme) |
Protected Member Functions inherited from open3d::visualization::gui::Window | |
virtual Size | CalcPreferredSize () |
virtual void | OnMenuItemSelected (Menu::ItemId item_id) |
virtual void | OnDragDropped (const char *path) |
const std::vector< std::shared_ptr< Widget > > & | GetChildren () const |
Additional Inherited Members | |
Static Public Attributes inherited from open3d::visualization::gui::Window | |
static const int | FLAG_HIDDEN = (1 << 0) |
static const int | FLAG_TOPMOST = (1 << 1) |
open3d::visualization::visualizer::O3DVisualizer::O3DVisualizer | ( | const std::string & | title, |
int | width, | ||
int | height | ||
) |
|
virtual |
void open3d::visualization::visualizer::O3DVisualizer::AddAction | ( | const std::string & | name, |
std::function< void(O3DVisualizer &)> | callback | ||
) |
void open3d::visualization::visualizer::O3DVisualizer::AddGeometry | ( | const std::string & | name, |
std::shared_ptr< geometry::Geometry3D > | geom, | ||
rendering::Material * | material = nullptr , |
||
const std::string & | group = "" , |
||
double | time = 0.0 , |
||
bool | is_visible = true |
||
) |
void open3d::visualization::visualizer::O3DVisualizer::AddGeometry | ( | const std::string & | name, |
std::shared_ptr< t::geometry::Geometry > | tgeom, | ||
rendering::Material * | material = nullptr , |
||
const std::string & | group = "" , |
||
double | time = 0.0 , |
||
bool | is_visible = true |
||
) |
void open3d::visualization::visualizer::O3DVisualizer::EnableGroup | ( | const std::string & | group, |
bool | enable | ||
) |
void open3d::visualization::visualizer::O3DVisualizer::ExportCurrentImage | ( | const std::string & | path | ) |
double open3d::visualization::visualizer::O3DVisualizer::GetAnimationDuration | ( | ) | const |
double open3d::visualization::visualizer::O3DVisualizer::GetAnimationFrameDelay | ( | ) | const |
double open3d::visualization::visualizer::O3DVisualizer::GetAnimationTimeStep | ( | ) | const |
double open3d::visualization::visualizer::O3DVisualizer::GetCurrentTime | ( | ) | const |
O3DVisualizer::DrawObject open3d::visualization::visualizer::O3DVisualizer::GetGeometry | ( | const std::string & | name | ) | const |
bool open3d::visualization::visualizer::O3DVisualizer::GetIsAnimating | ( | ) | const |
Open3DScene * open3d::visualization::visualizer::O3DVisualizer::GetScene | ( | ) | const |
std::vector< O3DVisualizerSelections::SelectionSet > open3d::visualization::visualizer::O3DVisualizer::GetSelectionSets | ( | ) | const |
O3DVisualizer::UIState open3d::visualization::visualizer::O3DVisualizer::GetUIState | ( | ) | const |
|
protectedvirtual |
Lays out all the widgets in the window. If all children of the window are layouts, this function does not need to be overriden.
Reimplemented from open3d::visualization::gui::Window.
void open3d::visualization::visualizer::O3DVisualizer::RemoveGeometry | ( | const std::string & | name | ) |
void open3d::visualization::visualizer::O3DVisualizer::ResetCameraToDefault | ( | ) |
void open3d::visualization::visualizer::O3DVisualizer::SetAnimating | ( | bool | is_animating | ) |
void open3d::visualization::visualizer::O3DVisualizer::SetAnimationDuration | ( | double | sec | ) |
void open3d::visualization::visualizer::O3DVisualizer::SetAnimationFrameDelay | ( | double | secs | ) |
void open3d::visualization::visualizer::O3DVisualizer::SetAnimationTimeStep | ( | double | time_step | ) |
void open3d::visualization::visualizer::O3DVisualizer::SetBackground | ( | const Eigen::Vector4f & | bg_color, |
std::shared_ptr< geometry::Image > | bg_image = nullptr |
||
) |
void open3d::visualization::visualizer::O3DVisualizer::SetCurrentTime | ( | double | t | ) |
void open3d::visualization::visualizer::O3DVisualizer::SetLineWidth | ( | int | line_width | ) |
void open3d::visualization::visualizer::O3DVisualizer::SetOnAnimationFrame | ( | std::function< void(O3DVisualizer &, double)> | cb | ) |
void open3d::visualization::visualizer::O3DVisualizer::SetOnAnimationTick | ( | std::function< TickResult(O3DVisualizer &, double, double)> | cb | ) |
void open3d::visualization::visualizer::O3DVisualizer::SetPointSize | ( | int | point_size | ) |
void open3d::visualization::visualizer::O3DVisualizer::SetShader | ( | Shader | shader | ) |
void open3d::visualization::visualizer::O3DVisualizer::SetupCamera | ( | float | fov, |
const Eigen::Vector3f & | center, | ||
const Eigen::Vector3f & | eye, | ||
const Eigen::Vector3f & | up | ||
) |
void open3d::visualization::visualizer::O3DVisualizer::ShowAxes | ( | bool | show | ) |
void open3d::visualization::visualizer::O3DVisualizer::ShowGeometry | ( | const std::string & | name, |
bool | show | ||
) |
void open3d::visualization::visualizer::O3DVisualizer::ShowSettings | ( | bool | show | ) |
void open3d::visualization::visualizer::O3DVisualizer::ShowSkybox | ( | bool | show | ) |
void open3d::visualization::visualizer::O3DVisualizer::StartRPCInterface | ( | const std::string & | address, |
int | timeout | ||
) |
Starts the RPC interface. See io/rpc/ReceiverBase for the parameters.
void open3d::visualization::visualizer::O3DVisualizer::StopRPCInterface | ( | ) |