Open3D (C++ API)  0.18.0+fcc396e
DummyMessageProcessor.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <msgpack.hpp>
11 
14 
15 namespace open3d {
16 namespace io {
17 namespace rpc {
18 
22 public:
24 
25  std::shared_ptr<zmq::message_t> ProcessMessage(
26  const messages::Request& req,
27  const messages::SetMeshData& msg,
28  const msgpack::object_handle& obj) override {
29  return CreateStatusOKMsg();
30  }
31  std::shared_ptr<zmq::message_t> ProcessMessage(
32  const messages::Request& req,
33  const messages::GetMeshData& msg,
34  const msgpack::object_handle& obj) override {
35  return CreateStatusOKMsg();
36  }
37  std::shared_ptr<zmq::message_t> ProcessMessage(
38  const messages::Request& req,
39  const messages::SetCameraData& msg,
40  const msgpack::object_handle& obj) override {
41  return CreateStatusOKMsg();
42  }
43  std::shared_ptr<zmq::message_t> ProcessMessage(
44  const messages::Request& req,
45  const messages::SetProperties& msg,
46  const msgpack::object_handle& obj) override {
47  return CreateStatusOKMsg();
48  }
49  std::shared_ptr<zmq::message_t> ProcessMessage(
50  const messages::Request& req,
51  const messages::SetActiveCamera& msg,
52  const msgpack::object_handle& obj) override {
53  return CreateStatusOKMsg();
54  }
55  std::shared_ptr<zmq::message_t> ProcessMessage(
56  const messages::Request& req,
57  const messages::SetTime& msg,
58  const msgpack::object_handle& obj) override {
59  return CreateStatusOKMsg();
60  }
61 };
62 
63 } // namespace rpc
64 } // namespace io
65 } // namespace open3d
Definition: DummyMessageProcessor.h:21
std::shared_ptr< zmq::message_t > ProcessMessage(const messages::Request &req, const messages::GetMeshData &msg, const msgpack::object_handle &obj) override
Definition: DummyMessageProcessor.h:31
std::shared_ptr< zmq::message_t > ProcessMessage(const messages::Request &req, const messages::SetCameraData &msg, const msgpack::object_handle &obj) override
Definition: DummyMessageProcessor.h:37
std::shared_ptr< zmq::message_t > ProcessMessage(const messages::Request &req, const messages::SetActiveCamera &msg, const msgpack::object_handle &obj) override
Definition: DummyMessageProcessor.h:49
DummyMessageProcessor()
Definition: DummyMessageProcessor.h:23
std::shared_ptr< zmq::message_t > ProcessMessage(const messages::Request &req, const messages::SetMeshData &msg, const msgpack::object_handle &obj) override
Definition: DummyMessageProcessor.h:25
std::shared_ptr< zmq::message_t > ProcessMessage(const messages::Request &req, const messages::SetProperties &msg, const msgpack::object_handle &obj) override
Definition: DummyMessageProcessor.h:43
std::shared_ptr< zmq::message_t > ProcessMessage(const messages::Request &req, const messages::SetTime &msg, const msgpack::object_handle &obj) override
Definition: DummyMessageProcessor.h:55
Definition: MessageProcessorBase.h:40
std::shared_ptr< zmq::message_t > CreateStatusOKMsg()
Definition: MessageUtils.cpp:83
Definition: PinholeCameraIntrinsic.cpp:16
struct for defining a "get_mesh_data" message, which requests mesh data.
Definition: Messages.h:410
Definition: Messages.h:508
Definition: Messages.h:391
Definition: Messages.h:478