Open3D (C++ API)  0.17.0
Loading...
Searching...
No Matches
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
21namespace zmq {
22class message_t;
23}
24
25namespace open3d {
26namespace io {
27namespace rpc {
28
29namespace messages {
30struct Status;
31}
32
46bool 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
66bool 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
86bool 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
146bool 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
184bool 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
197bool SetTime(int time,
198 std::shared_ptr<ConnectionBase> connection =
199 std::shared_ptr<ConnectionBase>());
200
208bool 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 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 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 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