The PointCloudBase class. More...
#include <yarp/sig/PointCloudBase.h>
Public Member Functions | |
virtual | ~PointCloudBase ()=default |
virtual size_t | wireSizeBytes () const =0 |
Get the size of the data + the header in terms of number of bytes. More... | |
virtual size_t | dataSizeBytes () const =0 |
Get the size of the data in terms of number of bytes. More... | |
virtual size_t | size () const =0 |
virtual const char * | getRawData () const =0 |
Get the pointer to the data. More... | |
bool | read (yarp::os::ConnectionReader &connection) override=0 |
Read this object from a network connection. More... | |
bool | write (yarp::os::ConnectionWriter &writer) const override=0 |
Write this object to a network connection. More... | |
virtual int | getBottleTag () const =0 |
virtual size_t | height () const |
virtual size_t | width () const |
virtual int | getPointType () const |
yarp::os::Type | getType () const override |
virtual bool | isOrganized () const |
virtual bool | isDense () const |
Public Member Functions inherited from yarp::os::PortReader | |
virtual | ~PortReader () |
Destructor. More... | |
virtual Type | getReadType () const |
Public Member Functions inherited from yarp::os::PortWriter | |
virtual | ~PortWriter () |
Destructor. More... | |
virtual void | onCompletion () const |
This is called when the port has finished all writing operations. More... | |
virtual void | onCommencement () const |
This is called when the port is about to begin writing operations. More... | |
virtual yarp::os::Type | getWriteType () const |
Protected Member Functions | |
PointCloudBase ()=default | |
virtual void | copyFromRawData (const char *dst, const char *source, std::vector< int > &recipe) |
virtual std::vector< int > | getComposition (int type_composite) const |
virtual size_t | pointType2Size (int type) const |
virtual size_t | getOffset (int type_composite, int type_basic) const |
Protected Attributes | |
yarp::sig::PointCloudNetworkHeader | header |
Additional Inherited Members | |
Static Public Member Functions inherited from yarp::os::Portable | |
static bool | copyPortable (const PortWriter &writer, PortReader &reader) |
Copy one portable to another, via writing and reading. More... | |
The PointCloudBase class.
A Base class for a yarp::sig::PointCloud<T>, provide default implementation for some methods and hides some internal implementation to the user. It can't be instantiated, only inherited.
Definition at line 28 of file PointCloudBase.h.
|
virtualdefault |
|
protecteddefault |
|
protectedvirtual |
Definition at line 117 of file PointCloudBase.cpp.
|
pure virtual |
Get the size of the data in terms of number of bytes.
Implemented in yarp::sig::PointCloud< T >.
|
pure virtual |
Implemented in yarp::sig::PointCloud< T >.
|
protectedvirtual |
Definition at line 143 of file PointCloudBase.cpp.
|
protectedvirtual |
Definition at line 167 of file PointCloudBase.cpp.
|
virtual |
Definition at line 102 of file PointCloudBase.cpp.
|
pure virtual |
Get the pointer to the data.
Implemented in yarp::sig::PointCloud< T >.
|
overridevirtual |
Reimplemented from yarp::os::Portable.
Definition at line 107 of file PointCloudBase.cpp.
|
virtual |
Definition at line 92 of file PointCloudBase.cpp.
|
inlinevirtual |
Definition at line 90 of file PointCloudBase.h.
|
virtual |
Definition at line 112 of file PointCloudBase.cpp.
|
protectedvirtual |
Definition at line 155 of file PointCloudBase.cpp.
|
overridepure virtual |
Read this object from a network connection.
Override this for your particular class.
reader | an interface to the network connection for reading |
Implements yarp::os::Portable.
Implemented in yarp::sig::PointCloud< T >.
|
pure virtual |
Implemented in yarp::sig::PointCloud< T >.
|
virtual |
Definition at line 97 of file PointCloudBase.cpp.
|
pure virtual |
Get the size of the data + the header in terms of number of bytes.
Implemented in yarp::sig::PointCloud< T >.
|
overridepure virtual |
Write this object to a network connection.
Override this for your particular class. Be aware that depending on the nature of the connections a port has, and what protocol they use, and how efficient the YARP implementation is, this method may be called once, twice, or many times, as the result of a single call to Port::write
writer | an interface to the network connection for writing |
Implements yarp::os::Portable.
Implemented in yarp::sig::PointCloud< T >.
|
protected |
Definition at line 106 of file PointCloudBase.h.