|  | YARP Yet Another Robot Platform |  | 
 
 
 
Go to the documentation of this file.
   20 const std::map<std::pair<int, int>, 
size_t> 
offsetMap = {
 
  119     char* tmpSrc = 
const_cast<char*
>(source);
 
  120     char* tmpDst = 
const_cast<char*
>(dst);
 
  121     if (recipe.empty()) {
 
  124     yCAssert(POINTCLOUDBASE, tmpSrc && tmpDst);
 
  128     for (
size_t i = 0; i < numPts; i++) {
 
  129         for (
int j : recipe) {
 
  133                 std::memcpy(tmpDst + i * sizeDst + offset, tmpSrc, sizeToRead);
 
  137             tmpSrc += sizeToRead;
 
  146     std::vector<int> 
ret;
 
  170     auto it = 
offsetMap.find(std::make_pair(type_composite, type_basic));
 
  
 
virtual std::vector< int > getComposition(int type_composite) const
virtual int getPointType() const
#define YARP_LOG_COMPONENT(name,...)
@ PCL_POINT_XYZ_NORMAL_RGBA
virtual size_t size() const =0
const std::map< int, size_t > sizeMap
yarp::os::Type getType() const override
static Type byName(const char *name)
const std::map< std::pair< int, int >, size_t > offsetMap
yarp::sig::PointCloudNetworkHeader header
virtual void copyFromRawData(const char *dst, const char *source, std::vector< int > &recipe)
virtual size_t pointType2Size(int type) const
#define yCAssert(component, x)
virtual size_t getOffset(int type_composite, int type_basic) const
virtual size_t height() const
virtual bool isOrganized() const
virtual size_t width() const
const std::map< int, std::vector< int > > compositionMap