Open3D (C++ API)  0.18.0
RemoteFunctions.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 <array>
11 #include <map>
12 
14 #include "open3d/core/Tensor.h"
20 
21 namespace zmq {
22 class message_t;
23 }
24 
25 namespace open3d {
26 namespace io {
27 namespace rpc {
28 
29 namespace messages {
30 struct Status;
31 }
32 
46 bool SetPointCloud(const geometry::PointCloud& pcd,
47  const std::string& path = "",
48  int time = 0,
49  const std::string& layer = "",
50  std::shared_ptr<ConnectionBase> connection =
51  std::shared_ptr<ConnectionBase>());
52 
66 bool SetTriangleMesh(const geometry::TriangleMesh& mesh,
67  const std::string& path = "",
68  int time = 0,
69  const std::string& layer = "",
70  std::shared_ptr<ConnectionBase> connection =
71  std::shared_ptr<ConnectionBase>());
72 
86 bool SetTriangleMesh(const t::geometry::TriangleMesh& mesh,
87  const std::string& path = "",
88  int time = 0,
89  const std::string& layer = "",
90  std::shared_ptr<ConnectionBase> connection =
91  std::shared_ptr<ConnectionBase>());
92 
146 bool SetMeshData(
147  const std::string& path = "",
148  int time = 0,
149  const std::string& layer = "",
150  const core::Tensor& vertices = core::Tensor({0}, core::Float32),
151  const std::map<std::string, core::Tensor>& vertex_attributes =
152  std::map<std::string, core::Tensor>(),
153  const core::Tensor& faces = core::Tensor({0}, core::Int32),
154  const std::map<std::string, core::Tensor>& face_attributes =
155  std::map<std::string, core::Tensor>(),
156  const core::Tensor& lines = core::Tensor({0}, core::Int32),
157  const std::map<std::string, core::Tensor>& line_attributes =
158  std::map<std::string, core::Tensor>(),
159  const std::string& material = "",
160  const std::map<std::string, float>& material_scalar_attributes =
161  std::map<std::string, float>(),
162  const std::map<std::string, std::array<float, 4>>&
163  material_vector_attributes =
164  std::map<std::string, std::array<float, 4>>(),
165  const std::map<std::string, t::geometry::Image>& texture_maps =
166  std::map<std::string, t::geometry::Image>(),
167  const std::string& o3d_type = "",
168  std::shared_ptr<ConnectionBase> connection =
169  std::shared_ptr<ConnectionBase>());
170 
184 bool SetLegacyCamera(const camera::PinholeCameraParameters& camera,
185  const std::string& path = "",
186  int time = 0,
187  const std::string& layer = "",
188  std::shared_ptr<ConnectionBase> connection =
189  std::shared_ptr<ConnectionBase>());
190 
197 bool SetTime(int time,
198  std::shared_ptr<ConnectionBase> connection =
199  std::shared_ptr<ConnectionBase>());
200 
208 bool SetActiveCamera(const std::string& path,
209  std::shared_ptr<ConnectionBase> connection =
210  std::shared_ptr<ConnectionBase>());
211 
212 } // namespace rpc
213 } // namespace io
214 } // namespace open3d
const Dtype Int32
Definition: Dtype.cpp:46
const Dtype Float32
Definition: Dtype.cpp:42
bool SetPointCloud(const geometry::PointCloud &pcd, const std::string &path, int time, const std::string &layer, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:25
bool SetTime(int time, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:395
bool SetMeshData(const std::string &path, int time, const std::string &layer, const core::Tensor &vertices, const std::map< std::string, core::Tensor > &vertex_attributes, const core::Tensor &faces, const std::map< std::string, core::Tensor > &face_attributes, const core::Tensor &lines, const std::map< std::string, core::Tensor > &line_attributes, const std::string &material, const std::map< std::string, float > &material_scalar_attributes, const std::map< std::string, std::array< float, 4 >> &material_vector_attributes, const std::map< std::string, t::geometry::Image > &texture_maps, const std::string &o3d_type, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:187
bool SetLegacyCamera(const camera::PinholeCameraParameters &camera, const std::string &path, int time, const std::string &layer, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:338
bool SetTriangleMesh(const geometry::TriangleMesh &mesh, const std::string &path, int time, const std::string &layer, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:66
bool SetActiveCamera(const std::string &path, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:412
Definition: PinholeCameraIntrinsic.cpp:16
Definition: ConnectionBase.h:12