Load the point buffer from memory whose arrangement is specified by the dimension list. \param[in] dims Dimension/types of data in packed order \param[in] idx Index of point to write. \param[in] buf Packed data buffer.
| 307 | /// \param[in] idx Index of point to write. |
| 308 | /// \param[in] buf Packed data buffer. |
| 309 | void setPackedPoint(const DimTypeList& dims, PointId idx, const char *buf) |
| 310 | { |
| 311 | if (idx == m_index.size()) |
| 312 | addPoint(); |
| 313 | for (auto di = dims.begin(); di != dims.end(); ++di) |
| 314 | { |
| 315 | m_pointTable.setFieldInternal(di->m_id, idx, (const void *)buf); |
| 316 | buf += Dimension::size(di->m_type); |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | /// Provides access to the memory storing the point data. Though this |
| 321 | /// function is public, other access methods are safer and preferred. |