 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
26 class MessageProcessorBase;
44 ZMQReceiver(
const std::string& address =
"tcp://127.0.0.1:51454",
69 const std::string address_;
71 std::shared_ptr<zmq::context_t> context_;
72 std::unique_ptr<zmq::socket_t> socket_;
76 std::atomic<bool> loop_running_;
77 std::atomic<int> mainloop_error_code_;
78 std::runtime_error mainloop_exception_;
79 std::shared_ptr<MessageProcessorBase> processor_;
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
Class for the server side receiving requests from a client.
Definition: ZMQReceiver.h:39
void SetMessageProcessor(std::shared_ptr< MessageProcessorBase > processor)
Sets the message processor object which will process incoming messages.
Definition: ZMQReceiver.cpp:212
int offset
Definition: FileIOFactory.cpp:135
static Status ErrorUnpackingFailed()
Definition: Messages.h:531
static Status ErrorUnsupportedMsgId()
Definition: Messages.h:528
static std::string MsgId()
Definition: Messages.h:523
#define PROCESS_MESSAGE(MSGTYPE)
virtual ~ZMQReceiver()
Definition: ZMQReceiver.cpp:43
std::shared_ptr< zmq::context_t > GetZMQContext()
Returns the zeromq context for this process.
Definition: ZMQContext.cpp:22
core::Tensor result
Definition: VtkUtils.cpp:76
Definition: ConnectionBase.h:12
int size
Definition: FileIOFactory.cpp:130
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:202
bool SetActiveCamera(const std::string &path, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:427
#define LogDebug(...)
Definition: Logging.h:90
void Stop()
Definition: ZMQReceiver.cpp:69
Definition: Messages.h:522
#define LogError(...)
Definition: Logging.h:60
#define LogInfo(...)
Definition: Logging.h:81
void Start()
Starts the receiver mainloop in a new thread.
Definition: ZMQReceiver.cpp:45
Definition: Messages.h:515
std::runtime_error GetLastError()
Returns the last error from the mainloop thread.
Definition: ZMQReceiver.cpp:86
bool SetTime(int time, std::shared_ptr< ConnectionBase > connection)
Definition: RemoteFunctions.cpp:410
ZMQReceiver(const std::string &address="tcp://127.0.0.1:51454", int timeout=10000)
Definition: ZMQReceiver.cpp:35
ZMQReceiver & operator=(const ZMQReceiver &)=delete