#include <mesh_client.h>

Public Types | |
| enum | Type : char { UINT = 0, FLOAT = 1, UCHAR = 2 } |
| Defines the data type of the transferred channel to decode the byte buffer. More... | |
Public Member Functions | |
| bool | addChannel (const std::string group, const std::string name, const lvr2::FloatChannel &channel) |
| addChannel Writes a float attribute channel from the given group with the given name More... | |
| bool | addChannel (const std::string group, const std::string name, const lvr2::IndexChannel &channel) |
| addChannel Writes an index attribute channel from the given group with the given name More... | |
| bool | addChannel (const std::string group, const std::string name, const lvr2::UCharChannel &channel) |
| addChannel Writes an unsigned char attribute channel from the given group with the given name More... | |
| void | addFilter (std::string channel, float min_value, float max_value) |
| bool | addIndices (const lvr2::IndexChannel &channel_ptr) |
| Persistence layer interface, Writes the face indices of the mesh to the persistence layer. More... | |
| bool | addVertices (const lvr2::FloatChannel &channel_ptr) |
| Persistence layer interface, Writes the vertices of the mesh to the persistence layer. More... | |
| std::string | buildJson (const std::string &attribute_name) |
| Builds a JSON string containing the set bounding box and the attribute name and the attribute group. More... | |
| bool | getChannel (const std::string group, const std::string name, lvr2::FloatChannelOptional &channel) |
| getChannel Reads a float attribute channel in the given group with the given name More... | |
| bool | getChannel (const std::string group, const std::string name, lvr2::IndexChannelOptional &channel) |
| getChannel Reads an index attribute channel in the given group with the given name More... | |
| bool | getChannel (const std::string group, const std::string name, lvr2::UCharChannelOptional &channel) |
| getChannel Reads an unsigned char attribute channel in the given group with the given name More... | |
| lvr2::IndexChannelOptional | getIndices () |
| Persistence layer interface, Accesses the face indices of the mesh in the persistence layer. More... | |
| lvr2::FloatChannelOptional | getVertices () |
| Persistence layer interface, Accesses the vertices of the mesh in the persistence layer. More... | |
| MeshClient (const std::string &srv_url, const std::string &server_username, const std::string &server_password, const std::string &mesh_layer) | |
| Constructs a mesh client which receaves. More... | |
| void | setBoundingBox (float min_x, float min_y, float min_z, const float max_x, const float max_y, const float max_z) |
| sets the Bounding box for the query which is send to the server More... | |
Public Member Functions inherited from lvr2::AttributeMeshIOBase | |
| bool | addAttributeMap (const MapT &map, const std::string &name) |
| bool | addDenseAttributeMap (const BaseMesh< BaseVecT > &mesh, const MapT &map, const std::string &name) |
| bool | addDenseAttributeMap (const MapT &map, const std::string &name) |
| bool | addMesh (const HalfEdgeMesh< BaseVec > &hem) |
| boost::optional< MapT > | getAttributeMap (const std::string &name) |
| boost::optional< MapT > | getDenseAttributeMap (const std::string &name) |
| boost::optional< HalfEdgeMesh< BaseVec > > | getMesh () |
Public Member Functions inherited from lvr2::MeshGeometryIO | |
| virtual bool | addIndices (const IndexChannel &channel_ptr)=0 |
Public Member Functions inherited from lvr2::GroupedChannelIO | |
| virtual bool | addChannel (const std::string group, const std::string name, const IndexChannel &channel)=0 |
| virtual bool | addChannel (const std::string group, const std::string name, const IndexChannel &channel)=0 |
| virtual bool | getChannel (const std::string group, const std::string name, IndexChannelOptional &channel)=0 |
| virtual bool | getChannel (const std::string group, const std::string name, IndexChannelOptional &channel)=0 |
| virtual bool | getChannel (const std::string group, const std::string name, UCharChannelOptional &channel)=0 |
| virtual bool | getChannel (const std::string group, const std::string name, UCharChannelOptional &channel)=0 |
Private Member Functions | |
| std::unique_ptr< std::string > | requestChannel (std::string channel) |
Private Attributes | |
| std::array< float, 6 > | bounding_box_ |
| std::map< std::string, lvr2::FloatChannel > | float_channels |
| std::map< std::string, lvr2::IndexChannel > | index_channels |
| std::map< std::string, std::pair< float, float > > | mesh_filters_ |
| std::string | mesh_layer_ |
| std::string | server_password_ |
| std::string | server_url_ |
| std::string | server_username_ |
| std::map< std::string, lvr2::UCharChannel > | uchar_channels |
Definition at line 52 of file mesh_client.h.
| enum mesh_client::MeshClient::Type : char |
Defines the data type of the transferred channel to decode the byte buffer.
| Enumerator | |
|---|---|
| UINT | |
| FLOAT | |
| UCHAR | |
Definition at line 80 of file mesh_client.h.
| mesh_client::MeshClient::MeshClient | ( | const std::string & | srv_url, |
| const std::string & | server_username, | ||
| const std::string & | server_password, | ||
| const std::string & | mesh_layer | ||
| ) |
Constructs a mesh client which receaves.
| srv_url | The url of the server, use http://localhost/my/path/to/mesh if the server is used locally. |
Definition at line 44 of file mesh_client.cpp.
|
virtual |
addChannel Writes a float attribute channel from the given group with the given name
| group | The associated attribute group |
| name | The associated attribute name |
| channel | The pointer to the float channel which should be written |
Implements lvr2::GroupedChannelIO.
Definition at line 286 of file mesh_client.cpp.
|
virtual |
addChannel Writes an index attribute channel from the given group with the given name
| group | The associated attribute group |
| name | The associated attribute name |
| channel | The pointer to the index channel which should be written |
Implements lvr2::GroupedChannelIO.
|
virtual |
addChannel Writes an unsigned char attribute channel from the given group with the given name
| group | The associated attribute group |
| name | The associated attribute name |
| channel | The pointer to the unsigned char channel which should be written |
Implements lvr2::GroupedChannelIO.
| void mesh_client::MeshClient::addFilter | ( | std::string | channel, |
| float | min_value, | ||
| float | max_value | ||
| ) |
Definition at line 64 of file mesh_client.cpp.
| bool mesh_client::MeshClient::addIndices | ( | const lvr2::IndexChannel & | channel_ptr | ) |
Persistence layer interface, Writes the face indices of the mesh to the persistence layer.
Definition at line 189 of file mesh_client.cpp.
|
virtual |
Persistence layer interface, Writes the vertices of the mesh to the persistence layer.
Implements lvr2::MeshGeometryIO.
Definition at line 183 of file mesh_client.cpp.
| std::string mesh_client::MeshClient::buildJson | ( | const std::string & | attribute_name | ) |
Builds a JSON string containing the set bounding box and the attribute name and the attribute group.
| attribute_name | The name of the corresponding attribute to be requested from the server |
Definition at line 69 of file mesh_client.cpp.
|
virtual |
getChannel Reads a float attribute channel in the given group with the given name
| group | The associated attribute group |
| name | The associated attribute name |
| channel | The pointer to the float channel |
Implements lvr2::GroupedChannelIO.
Definition at line 195 of file mesh_client.cpp.
| bool mesh_client::MeshClient::getChannel | ( | const std::string | group, |
| const std::string | name, | ||
| lvr2::IndexChannelOptional & | channel | ||
| ) |
getChannel Reads an index attribute channel in the given group with the given name
| group | The associated attribute group |
| name | The associated attribute name |
| channel | The pointer to the index channel |
Definition at line 226 of file mesh_client.cpp.
| bool mesh_client::MeshClient::getChannel | ( | const std::string | group, |
| const std::string | name, | ||
| lvr2::UCharChannelOptional & | channel | ||
| ) |
getChannel Reads an unsigned char attribute channel in the given group with the given name
| group | The associated attribute group |
| name | The associated attribute name |
| channel | The pointer to the unsigned char channel |
Definition at line 256 of file mesh_client.cpp.
|
virtual |
Persistence layer interface, Accesses the face indices of the mesh in the persistence layer.
Implements lvr2::MeshGeometryIO.
Definition at line 153 of file mesh_client.cpp.
|
virtual |
Persistence layer interface, Accesses the vertices of the mesh in the persistence layer.
Implements lvr2::MeshGeometryIO.
Definition at line 123 of file mesh_client.cpp.
|
private |
Definition at line 304 of file mesh_client.cpp.
| void mesh_client::MeshClient::setBoundingBox | ( | float | min_x, |
| float | min_y, | ||
| float | min_z, | ||
| const float | max_x, | ||
| const float | max_y, | ||
| const float | max_z | ||
| ) |
sets the Bounding box for the query which is send to the server
Definition at line 53 of file mesh_client.cpp.
|
private |
Definition at line 177 of file mesh_client.h.
|
private |
Definition at line 170 of file mesh_client.h.
|
private |
Definition at line 169 of file mesh_client.h.
|
private |
Definition at line 178 of file mesh_client.h.
|
private |
Definition at line 176 of file mesh_client.h.
|
private |
Definition at line 174 of file mesh_client.h.
|
private |
Definition at line 172 of file mesh_client.h.
|
private |
Definition at line 173 of file mesh_client.h.
|
private |
Definition at line 168 of file mesh_client.h.