6#ifndef YARP_SIG_POINTCLOUDBASE_H
7#define YARP_SIG_POINTCLOUDBASE_H
47 virtual size_t size()
const = 0;
64 virtual size_t height()
const;
69 virtual size_t width()
const;
74 virtual int getPointType()
const;
81 virtual bool isOrganized()
const;
88 return header.isDense != 0;
94 virtual void copyFromRawData(
const char* dst,
const char* source, std::vector<int>& recipe);
96 virtual std::vector<int> getComposition(
int type_composite)
const;
98 virtual size_t pointType2Size(
int type)
const;
100 virtual size_t getOffset(
int type_composite,
int type_basic)
const;
An interface for reading from a network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
The PointCloudBase class.
virtual size_t size() const =0
yarp::sig::PointCloudNetworkHeader header
virtual bool isDense() const
virtual ~PointCloudBase()=default
bool write(yarp::os::ConnectionWriter &writer) const override=0
Write this object to a network connection.
virtual const char * getRawData() const =0
Get the pointer to the data.
virtual int getBottleTag() const =0
virtual size_t dataSizeBytes() const =0
Get the size of the data in terms of number of bytes.
bool read(yarp::os::ConnectionReader &connection) override=0
Read this object from a network connection.
virtual size_t wireSizeBytes() const =0
Get the size of the data + the header in terms of number of bytes.