Fill a buffer with point data specified by the dimension list. \param[in] dims List of dimensions/types to retrieve. \param[in] idx Index of point to get. \param[in] buf Pointer to buffer to fill.
| 236 | /// \param[in] idx Index of point to get. |
| 237 | /// \param[in] buf Pointer to buffer to fill. |
| 238 | void getPackedData(const DimTypeList& dims, char *buf) const |
| 239 | { |
| 240 | for (auto di = dims.begin(); di != dims.end(); ++di) |
| 241 | { |
| 242 | getField(buf, di->m_id, di->m_type); |
| 243 | buf += Dimension::size(di->m_type); |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | /// Load the point buffer from memory whose arrangement is specified |
| 248 | /// by the dimension list. |