 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
20 namespace visualization {
46 const std::vector<std::shared_ptr<const ccHObject>> &geometry_ptrs,
47 const std::string &window_name =
"cloudViewer",
52 bool point_show_normal =
false,
53 bool mesh_show_wireframe =
false,
54 bool mesh_show_back_face =
false,
55 Eigen::Vector3d *lookat =
nullptr,
56 Eigen::Vector3d *up =
nullptr,
57 Eigen::Vector3d *front =
nullptr,
58 double *zoom =
nullptr);
72 const std::vector<std::shared_ptr<const ccHObject>> &geometry_ptrs,
73 const std::string &window_name =
"CloudViewer",
78 const std::string &json_filename =
"");
92 const std::vector<std::shared_ptr<const ccHObject>> &geometry_ptrs,
93 std::function<
bool(Visualizer *)> callback_func,
94 const std::string &window_name =
"CloudViewer",
112 const std::vector<std::shared_ptr<const ccHObject>> &geometry_ptrs,
113 const std::map<
int, std::function<
bool(Visualizer *)>> &key_to_callback,
114 const std::string &window_name =
"CloudViewer",
131 const std::vector<std::shared_ptr<const ccHObject>> &geometry_ptrs,
132 const std::string &window_name =
"CloudViewer",
139 const std::vector<std::shared_ptr<const ccHObject>> &geometry_ptrs,
140 const std::string &window_name =
"CloudViewer",
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
void Run()
Function to activate the window.
Definition: Visualizer.cpp:289
void RegisterKeyCallback(int key, std::function< bool(Visualizer *)> callback)
Definition: VisualizerWithKeyCallback.cpp:41
RenderOption & GetRenderOption()
Function to retrieve the associated RenderOption.
Definition: Visualizer.h:177
void SetUp(const Eigen::Vector3d &up)
Definition: ViewControl.cpp:115
bool DrawGeometriesWithKeyCallbacks(const std::vector< std::shared_ptr< const ccHObject >> &geometry_ptrs, const std::map< int, std::function< bool(Visualizer *)>> &key_to_callback, const std::string &window_name, int width, int height, int left, int top)
Function to draw a list of geometry.
Definition: DrawGeometry.cpp:163
virtual bool AddGeometry(std::shared_ptr< const ccHObject > geometry_ptr, bool reset_bounding_box=true)
Function to add geometry to the scene and create corresponding shaders.
Definition: Visualizer.cpp:336
Visualizer with editing capabilities.
Definition: VisualizerWithEditing.h:21
bool mesh_show_wireframe_
Definition: RenderOption.h:192
void UpdateWindowTitle() override
Definition: VisualizerWithCustomAnimation.cpp:57
Definition: VisualizerWithVertexSelection.h:22
int width
Definition: FileIOFactory.cpp:142
Definition: VisualizerWithCustomAnimation.h:15
int height
Definition: FileIOFactory.cpp:143
Visualizer with custom key callack capabilities.
Definition: VisualizerWithKeyCallback.h:20
bool AddGeometry(std::shared_ptr< const ccHObject > geometry_ptr, bool reset_bounding_box=true) override
Function to add geometry to the scene and create corresponding shaders.
Definition: VisualizerWithVertexSelection.cpp:82
bool DrawGeometriesWithEditing(const std::vector< std::shared_ptr< const ccHObject >> &geometry_ptrs, const std::string &window_name, int width, int height, int left, int top)
Function to draw a list of geometry.
Definition: DrawGeometry.cpp:199
bool DrawGeometriesWithVertexSelection(const std::vector< std::shared_ptr< const ccHObject >> &geometry_ptrs, const std::string &window_name, int width, int height, int left, int top)
Definition: DrawGeometry.cpp:228
void SetFront(const Eigen::Vector3d &front)
Definition: ViewControl.cpp:120
bool point_show_normal_
Whether to show normal for PointCloud.
Definition: RenderOption.h:182
void SetZoom(const double zoom)
Definition: ViewControl.cpp:125
void DestroyVisualizerWindow()
Function to destroy a window.
Definition: Visualizer.cpp:235
ViewControl & GetViewControl()
Function to retrieve the associated ViewControl.
Definition: Visualizer.h:175
bool AddGeometry(std::shared_ptr< const ccHObject > geometry_ptr, bool reset_bounding_box=true) override
Function to add geometry to the scene and create corresponding shaders.
Definition: VisualizerWithEditing.cpp:32
Definition: ViewControlWithCustomAnimation.h:17
bool DrawGeometriesWithCustomAnimation(const std::vector< std::shared_ptr< const ccHObject >> &geometry_ptrs, const std::string &window_name, int width, int height, int left, int top, const std::string &json_filename)
Function to draw a list of geometry objects with a GUI that supports animation.
Definition: DrawGeometry.cpp:84
bool DrawGeometriesWithAnimationCallback(const std::vector< std::shared_ptr< const ccHObject >> &geometry_ptrs, std::function< bool(Visualizer *)> callback_func, const std::string &window_name, int width, int height, int left, int top)
Function to draw a list of geometry objects with a customized animation callback function.
Definition: DrawGeometry.cpp:130
bool CreateVisualizerWindow(const std::string &window_name="CloudViewer", 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.
Definition: Visualizer.cpp:95
View controller for visualizer.
Definition: ViewControl.h:25
void SetLookat(const Eigen::Vector3d &lookat)
Definition: ViewControl.cpp:110
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
#define LogWarning(...)
Definition: Logging.h:72
The main Visualizer class.
Definition: Visualizer.h:45
bool mesh_show_back_face_
Whether to show back faces for TriangleMesh.
Definition: RenderOption.h:190
bool DrawGeometries(const std::vector< std::shared_ptr< const ccHObject >> &geometry_ptrs, const std::string &window_name, int width, int height, int left, int top, bool point_show_normal, bool mesh_show_wireframe, bool mesh_show_back_face, Eigen::Vector3d *lookat, Eigen::Vector3d *up, Eigen::Vector3d *front, double *zoom)
Function to draw a list of geometry objects.
Definition: DrawGeometry.cpp:32
void RegisterAnimationCallback(std::function< bool(Visualizer *)> callback_func)
Function to register a callback function for animation.
Definition: Visualizer.cpp:249