14 namespace visualization {
15 class SelectionPolygon;
16 class PointCloudPicker;
31 bool use_dialog =
true,
32 const std::string &directory =
"")
44 bool AddGeometry(std::shared_ptr<const geometry::Geometry> geometry_ptr,
45 bool reset_bounding_box =
true)
override;
74 std::shared_ptr<glsl::SelectionPolygonRenderer>
79 std::shared_ptr<glsl::PointCloudPickerRenderer>
The main Visualizer class.
Definition: Visualizer.h:43
Visualizer with editing capabilities.
Definition: VisualizerWithEditing.h:21
SelectionMode selection_mode_
Definition: VisualizerWithEditing.h:76
double voxel_size_
Definition: VisualizerWithEditing.h:86
void SaveCroppingResult(const std::string &filename="")
Definition: VisualizerWithEditing.cpp:670
std::shared_ptr< SelectionPolygon > selection_polygon_ptr_
Definition: VisualizerWithEditing.h:73
void KeyPressCallback(GLFWwindow *window, int key, int scancode, int action, int mods) override
Definition: VisualizerWithEditing.cpp:274
std::shared_ptr< geometry::Geometry > editing_geometry_ptr_
Definition: VisualizerWithEditing.h:83
void UpdateWindowTitle() override
Definition: VisualizerWithEditing.cpp:133
~VisualizerWithEditing() override
Definition: VisualizerWithEditing.h:36
std::shared_ptr< const geometry::Geometry > original_geometry_ptr_
Definition: VisualizerWithEditing.h:82
bool InitViewControl() override
Function to initialize ViewControl.
Definition: VisualizerWithEditing.cpp:261
bool InitRenderOption() override
Function to initialize RenderOption.
Definition: VisualizerWithEditing.cpp:268
VisualizerWithEditing & operator=(const VisualizerWithEditing &)=delete
std::shared_ptr< geometry::Geometry > GetCroppedGeometry() const
Definition: VisualizerWithEditing.cpp:247
void InvalidatePicking()
Definition: VisualizerWithEditing.cpp:663
std::shared_ptr< PointCloudPicker > pointcloud_picker_ptr_
Definition: VisualizerWithEditing.h:78
void WindowResizeCallback(GLFWwindow *window, int w, int h) override
Definition: VisualizerWithEditing.cpp:494
std::string default_directory_
Definition: VisualizerWithEditing.h:88
void InvalidateSelectionPolygon()
Definition: VisualizerWithEditing.cpp:655
std::shared_ptr< glsl::SelectionPolygonRenderer > selection_polygon_renderer_ptr_
Definition: VisualizerWithEditing.h:75
int PickPoint(double x, double y)
Definition: VisualizerWithEditing.cpp:177
SelectionMode
Definition: VisualizerWithEditing.h:23
void MouseButtonCallback(GLFWwindow *window, int button, int action, int mods) override
Definition: VisualizerWithEditing.cpp:539
std::vector< size_t > & GetPickedPoints()
Definition: VisualizerWithEditing.cpp:243
bool use_dialog_
Definition: VisualizerWithEditing.h:87
std::shared_ptr< glsl::GeometryRenderer > editing_geometry_renderer_ptr_
Definition: VisualizerWithEditing.h:84
void MouseMoveCallback(GLFWwindow *window, double x, double y) override
Definition: VisualizerWithEditing.cpp:501
void PrintVisualizerHelp() override
Definition: VisualizerWithEditing.cpp:107
bool AddGeometry(std::shared_ptr< const geometry::Geometry > geometry_ptr, bool reset_bounding_box=true) override
Definition: VisualizerWithEditing.cpp:30
VisualizerWithEditing(const VisualizerWithEditing &)=delete
unsigned int crop_action_count_
Definition: VisualizerWithEditing.h:89
void MouseScrollCallback(GLFWwindow *window, double x, double y) override
Definition: VisualizerWithEditing.cpp:529
void BuildUtilities() override
Definition: VisualizerWithEditing.cpp:142
std::shared_ptr< glsl::PointCloudPickerRenderer > pointcloud_picker_renderer_ptr_
Definition: VisualizerWithEditing.h:80
VisualizerWithEditing(double voxel_size=-1.0, bool use_dialog=true, const std::string &directory="")
Definition: VisualizerWithEditing.h:30
Definition: PinholeCameraIntrinsic.cpp:16