6 #ifndef YARP_SIG_POINTCLOUDBASE_H
7 #define YARP_SIG_POINTCLOUDBASE_H
48 virtual size_t size()
const = 0;
65 virtual size_t height()
const;
70 virtual size_t width()
const;
75 virtual int getPointType()
const;
82 virtual bool isOrganized()
const;
89 return header.isDense != 0;
95 virtual void copyFromRawData(
const char* dst,
const char* source, std::vector<int>& recipe);
97 virtual std::vector<int> getComposition(
int type_composite)
const;
99 virtual size_t pointType2Size(
int type)
const;
101 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
virtual const char * getRawData() const =0
Get the pointer to the data.
bool write(yarp::os::ConnectionWriter &writer) const override=0
Write this object to a network connection.
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.
The main, catch-all namespace for YARP.