33 namespace visualization {
34 class SelectionPolygon;
35 class PointCloudPicker;
50 bool use_dialog =
true,
51 const std::string &directory =
"")
63 bool AddGeometry(std::shared_ptr<const geometry::Geometry> geometry_ptr,
64 bool reset_bounding_box =
true)
override;
92 std::shared_ptr<glsl::SelectionPolygonRenderer>
97 std::shared_ptr<glsl::PointCloudPickerRenderer>
void WindowResizeCallback(GLFWwindow *window, int w, int h) override
Definition: VisualizerWithEditing.cpp:476
std::shared_ptr< geometry::Geometry > editing_geometry_ptr_
Definition: VisualizerWithEditing.h:101
void InvalidatePicking()
Definition: VisualizerWithEditing.cpp:645
VisualizerWithEditing & operator=(const VisualizerWithEditing &)=delete
std::vector< size_t > & GetPickedPoints()
Definition: VisualizerWithEditing.cpp:258
void UpdateWindowTitle() override
Definition: VisualizerWithEditing.cpp:146
bool AddGeometry(std::shared_ptr< const geometry::Geometry > geometry_ptr, bool reset_bounding_box=true) override
Definition: VisualizerWithEditing.cpp:49
void MouseButtonCallback(GLFWwindow *window, int button, int action, int mods) override
Definition: VisualizerWithEditing.cpp:521
SelectionMode selection_mode_
Definition: VisualizerWithEditing.h:94
double voxel_size
Definition: FilePLY.cpp:286
void BuildUtilities() override
Definition: VisualizerWithEditing.cpp:155
std::shared_ptr< PointCloudPicker > pointcloud_picker_ptr_
Definition: VisualizerWithEditing.h:96
std::string default_directory_
Definition: VisualizerWithEditing.h:106
unsigned int crop_action_count_
Definition: VisualizerWithEditing.h:107
SelectionMode
Definition: VisualizerWithEditing.h:42
~VisualizerWithEditing() override
Definition: VisualizerWithEditing.h:55
bool use_dialog_
Definition: VisualizerWithEditing.h:105
void SaveCroppingResult(const std::string &filename="")
Definition: VisualizerWithEditing.cpp:652
void MouseScrollCallback(GLFWwindow *window, double x, double y) override
Definition: VisualizerWithEditing.cpp:511
VisualizerWithEditing(double voxel_size=-1.0, bool use_dialog=true, const std::string &directory="")
Definition: VisualizerWithEditing.h:49
void PrintVisualizerHelp() override
Definition: VisualizerWithEditing.cpp:120
Definition: Open3DViewer.h:29
std::shared_ptr< glsl::PointCloudPickerRenderer > pointcloud_picker_renderer_ptr_
Definition: VisualizerWithEditing.h:98
The main Visualizer class.
Definition: Visualizer.h:60
bool InitRenderOption() override
Function to initialize RenderOption.
Definition: VisualizerWithEditing.cpp:269
std::shared_ptr< SelectionPolygon > selection_polygon_ptr_
Definition: VisualizerWithEditing.h:91
std::shared_ptr< glsl::GeometryRenderer > editing_geometry_renderer_ptr_
Definition: VisualizerWithEditing.h:102
std::shared_ptr< const geometry::Geometry > original_geometry_ptr_
Definition: VisualizerWithEditing.h:100
std::shared_ptr< glsl::SelectionPolygonRenderer > selection_polygon_renderer_ptr_
Definition: VisualizerWithEditing.h:93
Visualizer with editing capabilities.
Definition: VisualizerWithEditing.h:40
void InvalidateSelectionPolygon()
Definition: VisualizerWithEditing.cpp:637
int PickPoint(double x, double y)
Definition: VisualizerWithEditing.cpp:192
double voxel_size_
Definition: VisualizerWithEditing.h:104
void KeyPressCallback(GLFWwindow *window, int key, int scancode, int action, int mods) override
Definition: VisualizerWithEditing.cpp:275
void MouseMoveCallback(GLFWwindow *window, double x, double y) override
Definition: VisualizerWithEditing.cpp:483
bool InitViewControl() override
Function to initialize ViewControl.
Definition: VisualizerWithEditing.cpp:262