Open3D (C++ API)  0.17.0
DrawGeometry.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <Eigen/Core>
11 #include <functional>
12 #include <map>
13 #include <memory>
14 #include <string>
15 #include <vector>
16 
18 
19 namespace open3d {
20 namespace visualization {
21 
22 class Visualizer;
23 
45 bool DrawGeometries(const std::vector<std::shared_ptr<const geometry::Geometry>>
46  &geometry_ptrs,
47  const std::string &window_name = "Open3D",
48  int width = 640,
49  int height = 480,
50  int left = 50,
51  int top = 50,
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);
59 
72  const std::vector<std::shared_ptr<const geometry::Geometry>>
73  &geometry_ptrs,
74  const std::string &window_name = "Open3D",
75  int width = 640,
76  int height = 480,
77  int left = 50,
78  int top = 50,
79  const std::string &json_filename = "");
80 
93  const std::vector<std::shared_ptr<const geometry::Geometry>>
94  &geometry_ptrs,
95  std::function<bool(Visualizer *)> callback_func,
96  const std::string &window_name = "Open3D",
97  int width = 640,
98  int height = 480,
99  int left = 50,
100  int top = 50);
101 
114  const std::vector<std::shared_ptr<const geometry::Geometry>>
115  &geometry_ptrs,
116  const std::map<int, std::function<bool(Visualizer *)>> &key_to_callback,
117  const std::string &window_name = "Open3D",
118  int width = 640,
119  int height = 480,
120  int left = 50,
121  int top = 50);
122 
134  const std::vector<std::shared_ptr<const geometry::Geometry>>
135  &geometry_ptrs,
136  const std::string &window_name = "Open3D",
137  int width = 640,
138  int height = 480,
139  int left = 50,
140  int top = 50);
141 
143  const std::vector<std::shared_ptr<const geometry::Geometry>>
144  &geometry_ptrs,
145  const std::string &window_name = "Open3D",
146  int width = 640,
147  int height = 480,
148  int left = 50,
149  int top = 50);
150 
151 } // namespace visualization
152 } // namespace open3d
int width
Definition: FilePCD.cpp:52
int height
Definition: FilePCD.cpp:53
bool DrawGeometriesWithVertexSelection(const std::vector< std::shared_ptr< const geometry::Geometry >> &geometry_ptrs, const std::string &window_name, int width, int height, int left, int top)
Definition: DrawGeometry.cpp:227
bool DrawGeometriesWithAnimationCallback(const std::vector< std::shared_ptr< const geometry::Geometry >> &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:126
bool DrawGeometriesWithKeyCallbacks(const std::vector< std::shared_ptr< const geometry::Geometry >> &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:160
bool DrawGeometries(const std::vector< std::shared_ptr< const geometry::Geometry >> &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:25
bool DrawGeometriesWithCustomAnimation(const std::vector< std::shared_ptr< const geometry::Geometry >> &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:79
bool DrawGeometriesWithEditing(const std::vector< std::shared_ptr< const geometry::Geometry >> &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:197
Definition: PinholeCameraIntrinsic.cpp:16