Open3D (C++ API)  0.16.1
RemoteFunctions.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------------
2// - Open3D: www.open3d.org -
3// ----------------------------------------------------------------------------
4// The MIT License (MIT)
5//
6// Copyright (c) 2018-2021 www.open3d.org
7//
8// Permission is hereby granted, free of charge, to any person obtaining a copy
9// of this software and associated documentation files (the "Software"), to deal
10// in the Software without restriction, including without limitation the rights
11// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12// copies of the Software, and to permit persons to whom the Software is
13// furnished to do so, subject to the following conditions:
14//
15// The above copyright notice and this permission notice shall be included in
16// all copies or substantial portions of the Software.
17//
18// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24// IN THE SOFTWARE.
25// ----------------------------------------------------------------------------
26
27#pragma once
28
29#include <array>
30#include <map>
31
33#include "open3d/core/Tensor.h"
39
40namespace zmq {
41class message_t;
42}
43
44namespace open3d {
45namespace io {
46namespace rpc {
47
48namespace messages {
49struct Status;
50}
51
65bool SetPointCloud(const geometry::PointCloud& pcd,
66 const std::string& path = "",
67 int time = 0,
68 const std::string& layer = "",
69 std::shared_ptr<ConnectionBase> connection =
70 std::shared_ptr<ConnectionBase>());
71
85bool SetTriangleMesh(const geometry::TriangleMesh& mesh,
86 const std::string& path = "",
87 int time = 0,
88 const std::string& layer = "",
89 std::shared_ptr<ConnectionBase> connection =
90 std::shared_ptr<ConnectionBase>());
91
105bool SetTriangleMesh(const t::geometry::TriangleMesh& mesh,
106 const std::string& path = "",
107 int time = 0,
108 const std::string& layer = "",
109 std::shared_ptr<ConnectionBase> connection =
110 std::shared_ptr<ConnectionBase>());
111
165bool SetMeshData(
166 const std::string& path = "",
167 int time = 0,
168 const std::string& layer = "",
169 const core::Tensor& vertices = core::Tensor({0}, core::Float32),
170 const std::map<std::string, core::Tensor>& vertex_attributes =
171 std::map<std::string, core::Tensor>(),
172 const core::Tensor& faces = core::Tensor({0}, core::Int32),
173 const std::map<std::string, core::Tensor>& face_attributes =
174 std::map<std::string, core::Tensor>(),
175 const core::Tensor& lines = core::Tensor({0}, core::Int32),
176 const std::map<std::string, core::Tensor>& line_attributes =
177 std::map<std::string, core::Tensor>(),
178 const std::string& material = "",
179 const std::map<std::string, float>& material_scalar_attributes =
180 std::map<std::string, float>(),
181 const std::map<std::string, std::array<float, 4>>&
182 material_vector_attributes =
183 std::map<std::string, std::array<float, 4>>(),
184 const std::map<std::string, t::geometry::Image>& texture_maps =
185 std::map<std::string, t::geometry::Image>(),
186 const std::string& o3d_type = "",
187 std::shared_ptr<ConnectionBase> connection =
188 std::shared_ptr<ConnectionBase>());
189
203bool SetLegacyCamera(const camera::PinholeCameraParameters& camera,
204 const std::string& path = "",
205 int time = 0,
206 const std::string& layer = "",
207 std::shared_ptr<ConnectionBase> connection =
208 std::shared_ptr<ConnectionBase>());
209
216bool SetTime(int time,
217 std::shared_ptr<ConnectionBase> connection =
218 std::shared_ptr<ConnectionBase>());
219
227bool SetActiveCamera(const std::string& path,
228 std::shared_ptr<ConnectionBase> connection =
229 std::shared_ptr<ConnectionBase>());
230
231} // namespace rpc
232} // namespace io
233} // namespace open3d
const Dtype Int32
Definition: Dtype.cpp:65
const Dtype Float32
Definition: Dtype.cpp:61
bool SetPointCloud(const geometry::PointCloud &pcd, const std::string &path, int time, const std::string &layer, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:44
bool SetTime(int time, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:414
bool SetLegacyCamera(const camera::PinholeCameraParameters &camera, const std::string &path, int time, const std::string &layer, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:357
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:206
bool SetTriangleMesh(const geometry::TriangleMesh &mesh, const std::string &path, int time, const std::string &layer, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:85
bool SetActiveCamera(const std::string &path, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:431
Definition: PinholeCameraIntrinsic.cpp:35
Definition: ConnectionBase.h:31