Open3D (C++ API)  0.13.0
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions
open3d::visualization::Receiver Class Reference

Receiver implementation which interfaces with the Open3DScene and a Window. More...

#include <Receiver.h>

Inheritance diagram for open3d::visualization::Receiver:
open3d::io::rpc::ReceiverBase

Public Types

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

Public Member Functions

 Receiver (const std::string &address, int timeout, 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 MsgpackObject &obj) override
 
- Public Member Functions inherited from open3d::io::rpc::ReceiverBase
 ReceiverBase (const std::string &address="tcp://127.0.0.1:51454", int timeout=10000)
 
 ReceiverBase (const ReceiverBase &)=delete
 
ReceiverBaseoperator= (const ReceiverBase &)=delete
 
virtual ~ReceiverBase ()
 
void Start ()
 Starts the receiver mainloop in a new thread. More...
 
void Stop ()
 
std::runtime_error GetLastError ()
 Returns the last error from the mainloop thread. More...
 

Additional Inherited Members

- Protected Member Functions inherited from open3d::io::rpc::ReceiverBase
virtual std::shared_ptr< zmq::message_t > ProcessMessage (const messages::Request &req, const messages::GetMeshData &msg, const MsgpackObject &obj)
 
virtual std::shared_ptr< zmq::message_t > ProcessMessage (const messages::Request &req, const messages::SetCameraData &msg, const MsgpackObject &obj)
 
virtual std::shared_ptr< zmq::message_t > ProcessMessage (const messages::Request &req, const messages::SetProperties &msg, const MsgpackObject &obj)
 
virtual std::shared_ptr< zmq::message_t > ProcessMessage (const messages::Request &req, const messages::SetActiveCamera &msg, const MsgpackObject &obj)
 
virtual std::shared_ptr< zmq::message_t > ProcessMessage (const messages::Request &req, const messages::SetTime &msg, const MsgpackObject &obj)
 

Detailed Description

Receiver implementation which interfaces with the Open3DScene and a Window.

Member Typedef Documentation

◆ OnGeometryFunc

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

Constructor & Destructor Documentation

◆ Receiver()

open3d::visualization::Receiver::Receiver ( const std::string &  address,
int  timeout,
gui::Window window,
OnGeometryFunc  on_geometry 
)
inline

Member Function Documentation

◆ ProcessMessage()

std::shared_ptr< zmq::message_t > open3d::visualization::Receiver::ProcessMessage ( const io::rpc::messages::Request req,
const io::rpc::messages::SetMeshData msg,
const MsgpackObject obj 
)
overridevirtual

Function for processing a msg.

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

Reimplemented from open3d::io::rpc::ReceiverBase.


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