Open3D (C++ API)  0.18.0+252c867
Public Types | Public Member Functions
open3d::visualization::MessageProcessor Class Reference

#include <MessageProcessor.h>

Inheritance diagram for open3d::visualization::MessageProcessor:
open3d::io::rpc::MessageProcessorBase

Public Types

using OnGeometryFunc = std::function< void(std::shared_ptr< geometry::Geometry3D >, const std::string &, int, const std::string &)>
 

Public Member Functions

 MessageProcessor (gui::Window *window, OnGeometryFunc on_geometry)
 
std::shared_ptr< zmq::message_t > ProcessMessage (const io::rpc::messages::Request &req, const io::rpc::messages::SetMeshData &msg, const msgpack::object_handle &obj) override
 
- Public Member Functions inherited from open3d::io::rpc::MessageProcessorBase
 MessageProcessorBase ()
 Constructs a receiver listening on the specified address. More...
 
virtual ~MessageProcessorBase ()
 
virtual std::shared_ptr< zmq::message_t > ProcessMessage (const messages::Request &req, const messages::GetMeshData &msg, const msgpack::object_handle &obj)
 
virtual std::shared_ptr< zmq::message_t > ProcessMessage (const messages::Request &req, const messages::SetCameraData &msg, const msgpack::object_handle &obj)
 
virtual std::shared_ptr< zmq::message_t > ProcessMessage (const messages::Request &req, const messages::SetProperties &msg, const msgpack::object_handle &obj)
 
virtual std::shared_ptr< zmq::message_t > ProcessMessage (const messages::Request &req, const messages::SetActiveCamera &msg, const msgpack::object_handle &obj)
 
virtual std::shared_ptr< zmq::message_t > ProcessMessage (const messages::Request &req, const messages::SetTime &msg, const msgpack::object_handle &obj)
 

Detailed Description

MessageProcessor implementation which interfaces with the Open3DScene and a Window.

Member Typedef Documentation

◆ OnGeometryFunc

using open3d::visualization::MessageProcessor::OnGeometryFunc = std::function<void( std::shared_ptr<geometry::Geometry3D>, const std::string&, int, const std::string&)>

Constructor & Destructor Documentation

◆ MessageProcessor()

open3d::visualization::MessageProcessor::MessageProcessor ( gui::Window window,
OnGeometryFunc  on_geometry 
)
inline

Member Function Documentation

◆ ProcessMessage()

std::shared_ptr< zmq::message_t > open3d::visualization::MessageProcessor::ProcessMessage ( const io::rpc::messages::Request req,
const io::rpc::messages::SetMeshData msg,
const msgpack::object_handle &  obj 
)
overridevirtual

Function for processing a msg.

Parameters
reqThe Request object that accompanies the msg object.
msgThe message to be processed
objThe handle to the object from which the msg was unpacked. Can be used for custom unpacking.

Reimplemented from open3d::io::rpc::MessageProcessorBase.


The documentation for this class was generated from the following files: