Open3D (C++ API)
|
#include <VisualizerWithEditing.h>
Public Types | |
enum | SelectionMode { SelectionMode::None = 0, SelectionMode::Rectangle = 1, SelectionMode::Polygon = 2 } |
Public Member Functions | |
VisualizerWithEditing (double voxel_size=-1.0, bool use_dialog=true, const std::string &directory="") | |
~VisualizerWithEditing () override | |
VisualizerWithEditing (const VisualizerWithEditing &)=delete | |
VisualizerWithEditing & | operator= (const VisualizerWithEditing &)=delete |
bool | AddGeometry (std::shared_ptr< const geometry::Geometry > geometry_ptr, bool reset_bounding_box=true) override |
void | PrintVisualizerHelp () override |
void | UpdateWindowTitle () override |
void | BuildUtilities () override |
int | PickPoint (double x, double y) |
std::vector< size_t > & | GetPickedPoints () |
![]() | |
Visualizer () | |
virtual | ~Visualizer () |
Visualizer (Visualizer &&)=delete | |
Visualizer (const Visualizer &)=delete | |
Visualizer & | operator= (const Visualizer &)=delete |
bool | CreateVisualizerWindow (const std::string &window_name="Open3D", const int width=640, const int height=480, const int left=50, const int top=50, const bool visible=true) |
void | DestroyVisualizerWindow () |
void | RegisterAnimationCallback (std::function< bool(Visualizer *)> callback_func) |
void | Run () |
void | Close () |
Function to to notify the window to be closed. More... | |
bool | WaitEvents () |
bool | PollEvents () |
virtual bool | RemoveGeometry (std::shared_ptr< const geometry::Geometry > geometry_ptr, bool reset_bounding_box=true) |
virtual bool | ClearGeometries () |
virtual bool | UpdateGeometry (std::shared_ptr< const geometry::Geometry > geometry_ptr=nullptr) |
virtual bool | HasGeometry () const |
virtual void | UpdateRender () |
Function to set the redraw flag as dirty. More... | |
ViewControl & | GetViewControl () |
RenderOption & | GetRenderOption () |
std::shared_ptr< geometry::Image > | CaptureScreenFloatBuffer (bool do_render=true) |
void | CaptureScreenImage (const std::string &filename="", bool do_render=true) |
std::shared_ptr< geometry::Image > | CaptureDepthFloatBuffer (bool do_render=true) |
void | CaptureDepthImage (const std::string &filename="", bool do_render=true, double depth_scale=1000.0) |
void | CaptureDepthPointCloud (const std::string &filename="", bool do_render=true, bool convert_to_world_coordinate=false) |
void | CaptureRenderOption (const std::string &filename="") |
void | ResetViewPoint (bool reset_bounding_box=false) |
const std::string & | GetWindowName () const |
Protected Member Functions | |
bool | InitViewControl () override |
Function to initialize ViewControl. More... | |
bool | InitRenderOption () override |
Function to initialize RenderOption. More... | |
void | WindowResizeCallback (GLFWwindow *window, int w, int h) override |
void | MouseMoveCallback (GLFWwindow *window, double x, double y) override |
void | MouseScrollCallback (GLFWwindow *window, double x, double y) override |
void | MouseButtonCallback (GLFWwindow *window, int button, int action, int mods) override |
void | KeyPressCallback (GLFWwindow *window, int key, int scancode, int action, int mods) override |
void | InvalidateSelectionPolygon () |
void | InvalidatePicking () |
void | SaveCroppingResult (const std::string &filename="") |
![]() | |
virtual bool | InitOpenGL () |
Function to initialize OpenGL. More... | |
virtual void | Render () |
void | CopyViewStatusToClipboard () |
void | CopyViewStatusFromClipboard () |
virtual void | WindowRefreshCallback (GLFWwindow *window) |
virtual void | WindowCloseCallback (GLFWwindow *window) |
|
inline |
|
inlineoverride |
|
delete |
|
overridevirtual |
Function to add geometry to the scene and create corresponding shaders
Reimplemented from open3d::visualization::Visualizer.
|
overridevirtual |
Reimplemented from open3d::visualization::Visualizer.
std::vector< size_t > & open3d::visualization::VisualizerWithEditing::GetPickedPoints | ( | ) |
|
overrideprotectedvirtual |
Function to initialize RenderOption.
Reimplemented from open3d::visualization::Visualizer.
|
overrideprotectedvirtual |
Function to initialize ViewControl.
Reimplemented from open3d::visualization::Visualizer.
|
protected |
|
protected |
|
overrideprotectedvirtual |
Reimplemented from open3d::visualization::Visualizer.
|
overrideprotectedvirtual |
Reimplemented from open3d::visualization::Visualizer.
|
overrideprotectedvirtual |
Reimplemented from open3d::visualization::Visualizer.
|
overrideprotectedvirtual |
Reimplemented from open3d::visualization::Visualizer.
|
delete |
int open3d::visualization::VisualizerWithEditing::PickPoint | ( | double | x, |
double | y | ||
) |
|
overridevirtual |
Reimplemented from open3d::visualization::Visualizer.
|
protected |
|
overridevirtual |
Reimplemented from open3d::visualization::Visualizer.
|
overrideprotectedvirtual |
Reimplemented from open3d::visualization::Visualizer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |