ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
RemoteFunctions.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
11 #include <ecvMesh.h>
12 #include <ecvPointCloud.h>
13 
14 #include <array>
15 #include <map>
16 
21 
22 namespace zmq {
23 class message_t;
24 }
25 
26 namespace cloudViewer {
27 namespace io {
28 namespace rpc {
29 
30 namespace messages {
31 struct Status;
32 }
33 
47 bool SetPointCloud(const ccPointCloud& pcd,
48  const std::string& path = "",
49  int time = 0,
50  const std::string& layer = "",
51  std::shared_ptr<ConnectionBase> connection =
52  std::shared_ptr<ConnectionBase>());
53 
67 bool SetTriangleMesh(const ccMesh& mesh,
68  const std::string& path = "",
69  int time = 0,
70  const std::string& layer = "",
71  std::shared_ptr<ConnectionBase> connection =
72  std::shared_ptr<ConnectionBase>());
73 
88  const std::string& path = "",
89  int time = 0,
90  const std::string& layer = "",
91  std::shared_ptr<ConnectionBase> connection =
92  std::shared_ptr<ConnectionBase>());
93 
147 bool SetMeshData(
148  const std::string& path = "",
149  int time = 0,
150  const std::string& layer = "",
151  const core::Tensor& vertices = core::Tensor({0}, core::Float32),
152  const std::map<std::string, core::Tensor>& vertex_attributes =
153  std::map<std::string, core::Tensor>(),
154  const core::Tensor& faces = core::Tensor({0}, core::Int32),
155  const std::map<std::string, core::Tensor>& face_attributes =
156  std::map<std::string, core::Tensor>(),
157  const core::Tensor& lines = core::Tensor({0}, core::Int32),
158  const std::map<std::string, core::Tensor>& line_attributes =
159  std::map<std::string, core::Tensor>(),
160  const std::string& material = "",
161  const std::map<std::string, float>& material_scalar_attributes =
162  std::map<std::string, float>(),
163  const std::map<std::string, std::array<float, 4>>&
164  material_vector_attributes =
165  std::map<std::string, std::array<float, 4>>(),
166  const std::map<std::string, t::geometry::Image>& texture_maps =
167  std::map<std::string, t::geometry::Image>(),
168  const std::string& o3d_type = "",
169  std::shared_ptr<ConnectionBase> connection =
170  std::shared_ptr<ConnectionBase>());
171 
185 bool SetLegacyCamera(const camera::PinholeCameraParameters& camera,
186  const std::string& path = "",
187  int time = 0,
188  const std::string& layer = "",
189  std::shared_ptr<ConnectionBase> connection =
190  std::shared_ptr<ConnectionBase>());
191 
198 bool SetTime(int time,
199  std::shared_ptr<ConnectionBase> connection =
200  std::shared_ptr<ConnectionBase>());
201 
209 bool SetActiveCamera(const std::string& path,
210  std::shared_ptr<ConnectionBase> connection =
211  std::shared_ptr<ConnectionBase>());
212 
213 } // namespace rpc
214 } // namespace io
215 } // namespace cloudViewer
Triangular mesh.
Definition: ecvMesh.h:35
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
const Dtype Int32
Definition: Dtype.cpp:46
const Dtype Float32
Definition: Dtype.cpp:42
bool SetTriangleMesh(const ccMesh &mesh, const std::string &path, int time, const std::string &layer, std::shared_ptr< ConnectionBase > connection)
bool SetPointCloud(const ccPointCloud &pcd, const std::string &path, int time, const std::string &layer, std::shared_ptr< ConnectionBase > connection)
bool SetActiveCamera(const std::string &path, std::shared_ptr< ConnectionBase > connection)
bool SetLegacyCamera(const camera::PinholeCameraParameters &camera, const std::string &path, int time, const std::string &layer, std::shared_ptr< ConnectionBase > connection)
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)
bool SetTime(int time, std::shared_ptr< ConnectionBase > connection)
static const std::string path
Definition: PointCloud.cpp:59
Generic file read and write utility for python interface.