Open3D (C++ API)
0.18.0+252c867
|
#include <VisualizerWithVertexSelection.h>
Data Structures | |
struct | PickedPoint |
Public Types | |
enum class | SelectionMode { None = 0 , Point = 1 , Rectangle = 2 , Moving = 3 } |
Public Member Functions | |
VisualizerWithVertexSelection () | |
~VisualizerWithVertexSelection () override | |
VisualizerWithVertexSelection (const VisualizerWithVertexSelection &)=delete | |
VisualizerWithVertexSelection & | operator= (const VisualizerWithVertexSelection &)=delete |
bool | AddGeometry (std::shared_ptr< const geometry::Geometry > geometry_ptr, bool reset_bounding_box=true) override |
Function to add geometry to the scene and create corresponding shaders. More... | |
bool | UpdateGeometry (std::shared_ptr< const geometry::Geometry > geometry_ptr=nullptr) override |
Function to update geometry. More... | |
void | PrintVisualizerHelp () override |
void | UpdateWindowTitle () override |
void | BuildUtilities () override |
void | SetPointSize (double size) |
std::vector< int > | PickPoints (double x, double y, double w, double h) |
std::vector< PickedPoint > | GetPickedPoints () const |
void | ClearPickedPoints () |
void | AddPickedPoints (const std::vector< int > indices) |
void | RemovePickedPoints (const std::vector< int > indices) |
void | RegisterSelectionChangedCallback (std::function< void()> f) |
void | RegisterSelectionMovingCallback (std::function< void()> f) |
void | RegisterSelectionMovedCallback (std::function< void()> f) |
![]() | |
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) |
Function to create a window and initialize GLFW. More... | |
void | DestroyVisualizerWindow () |
Function to destroy a window. More... | |
void | RegisterAnimationCallback (std::function< bool(Visualizer *)> callback_func) |
Function to register a callback function for animation. More... | |
void | Run () |
Function to activate the window. More... | |
void | Close () |
Function to to notify the window to be closed. More... | |
bool | WaitEvents () |
Function to process the event queue and return if the window is closed. More... | |
bool | PollEvents () |
virtual bool | RemoveGeometry (std::shared_ptr< const geometry::Geometry > geometry_ptr, bool reset_bounding_box=true) |
Function to remove geometry from the scene. More... | |
virtual bool | ClearGeometries () |
virtual bool | HasGeometry () const |
virtual void | UpdateRender () |
Function to inform render needed to be updated. More... | |
virtual void | SetFullScreen (bool fullscreen) |
Functions to change between fullscreen and windowed modes. More... | |
virtual void | ToggleFullScreen () |
virtual bool | IsFullScreen () |
ViewControl & | GetViewControl () |
Function to retrieve the associated ViewControl. More... | |
RenderOption & | GetRenderOption () |
Function to retrieve the associated RenderOption. More... | |
std::shared_ptr< geometry::Image > | CaptureScreenFloatBuffer (bool do_render=true) |
Function to capture screen and store RGB in a float buffer. More... | |
void | CaptureScreenImage (const std::string &filename="", bool do_render=true) |
Function to capture and save a screen image. More... | |
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) |
Function to capture and save local point cloud. More... | |
void | CaptureRenderOption (const std::string &filename="") |
void | ResetViewPoint (bool reset_bounding_box=false) |
Function to reset view point. More... | |
const std::string & | GetWindowName () const |
std::string | GetViewStatus () |
Get the current view status as a json string of ViewTrajectory. More... | |
void | SetViewStatus (const std::string &view_status_str) |
Set the current view status from a json string of ViewTrajectory. More... | |
Protected Types | |
enum | DragType { DRAG_MOVING , DRAG_END } |
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 () |
float | GetDepth (int winX, int winY) |
Eigen::Vector3d | CalcDragDelta (double winX, double winY) |
void | DragSelectedPoints (const Eigen::Vector3d &delta, DragType type) |
const std::vector< Eigen::Vector3d > * | GetGeometryPoints (std::shared_ptr< const geometry::Geometry > geometry) |
![]() | |
virtual bool | InitOpenGL () |
Function to initialize OpenGL. More... | |
virtual void | Render (bool render_screen=false) |
void | CopyViewStatusToClipboard () |
Copy the current view status to clipboard. More... | |
void | CopyViewStatusFromClipboard () |
Apply the view point from clipboard. More... | |
virtual void | WindowRefreshCallback (GLFWwindow *window) |
Callback functions. More... | |
virtual void | WindowCloseCallback (GLFWwindow *window) |
Function to notify the window to be closed. More... | |
|
inline |
|
inlineoverride |
|
delete |
|
overridevirtual |
Function to add geometry to the scene and create corresponding shaders.
geometry_ptr | The Geometry object. |
reset_bounding_box | Reset viewpoint to view all geometries. |
Reimplemented from open3d::visualization::Visualizer.
void open3d::visualization::VisualizerWithVertexSelection::AddPickedPoints | ( | const std::vector< int > | indices | ) |
|
overridevirtual |
Reimplemented from open3d::visualization::Visualizer.
|
protected |
void open3d::visualization::VisualizerWithVertexSelection::ClearPickedPoints | ( | ) |
|
protected |
|
protected |
|
protected |
std::vector< VisualizerWithVertexSelection::PickedPoint > open3d::visualization::VisualizerWithVertexSelection::GetPickedPoints | ( | ) | const |
|
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 |
std::vector< int > open3d::visualization::VisualizerWithVertexSelection::PickPoints | ( | double | x, |
double | y, | ||
double | w, | ||
double | h | ||
) |
|
overridevirtual |
Reimplemented from open3d::visualization::Visualizer.
void open3d::visualization::VisualizerWithVertexSelection::RegisterSelectionChangedCallback | ( | std::function< void()> | f | ) |
void open3d::visualization::VisualizerWithVertexSelection::RegisterSelectionMovedCallback | ( | std::function< void()> | f | ) |
void open3d::visualization::VisualizerWithVertexSelection::RegisterSelectionMovingCallback | ( | std::function< void()> | f | ) |
Do not change the number of vertices in geometry, but can change the vertex values and call UpdateGeometry().
void open3d::visualization::VisualizerWithVertexSelection::RemovePickedPoints | ( | const std::vector< int > | indices | ) |
void open3d::visualization::VisualizerWithVertexSelection::SetPointSize | ( | double | size | ) |
|
overridevirtual |
Function to update geometry.
This function must be called when geometry has been changed. Otherwise the behavior of Visualizer is undefined. If called without an argument, updates all geometries, otherwise only updates the geometry specified.
Reimplemented from open3d::visualization::Visualizer.
|
overridevirtual |
Reimplemented from open3d::visualization::Visualizer.
|
overrideprotectedvirtual |
Reimplemented from open3d::visualization::Visualizer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |