ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
MessageUtils.cpp File Reference
Include dependency graph for MessageUtils.cpp:

Go to the source code of this file.

Namespaces

 cloudViewer
 Generic file read and write utility for python interface.
 
 cloudViewer::io
 
 cloudViewer::io::rpc
 

Functions

std::shared_ptr< messages::Status > cloudViewer::io::rpc::UnpackStatusFromReply (const zmq::message_t &msg, size_t &offset, bool &ok)
 
bool cloudViewer::io::rpc::ReplyIsOKStatus (const zmq::message_t &msg)
 Convenience function for checking if the message is an OK. More...
 
bool cloudViewer::io::rpc::ReplyIsOKStatus (const zmq::message_t &msg, size_t &offset)
 
std::string cloudViewer::io::rpc::CreateSerializedRequestMessage (const std::string &msg_id)
 Creates a serialized Request message for testing purposes. More...
 
std::tuple< const void *, size_t > cloudViewer::io::rpc::GetZMQMessageDataAndSize (const zmq::message_t &msg)
 
std::tuple< int32_t, std::string > cloudViewer::io::rpc::GetStatusCodeAndStr (const messages::Status &status)
 
std::shared_ptr< zmq::message_t > cloudViewer::io::rpc::CreateStatusOKMsg ()
 
static core::Tensor cloudViewer::io::rpc::ArrayToTensor (const messages::Array &array)
 
static std::map< std::string, messages::Array > cloudViewer::io::rpc::TensorMapToArrayMap (const t::geometry::TensorMap &tensor_map)
 Converts a TensorMap to an Array map. More...
 
static Material cloudViewer::io::rpc::GetMaterialFromMeshData (const messages::MeshData &mesh_data, std::string &errstr)
 
std::shared_ptr< t::geometry::Geometry > cloudViewer::io::rpc::MeshDataToGeometry (const messages::MeshData &mesh_data)
 
static void cloudViewer::io::rpc::AddMaterialToMeshData (messages::MeshData &mesh_data, const Material &material)
 
messages::MeshData cloudViewer::io::rpc::GeometryToMeshData (const t::geometry::TriangleMesh &trimesh)
 
messages::MeshData cloudViewer::io::rpc::GeometryToMeshData (const t::geometry::PointCloud &pcd)
 
messages::MeshData cloudViewer::io::rpc::GeometryToMeshData (const t::geometry::LineSet &ls)
 
std::tuple< std::string, double, std::shared_ptr< t::geometry::Geometry > > cloudViewer::io::rpc::DataBufferToMetaGeometry (std::string &data)