本文整理汇总了C++中PointRef::setPointId方法的典型用法代码示例。如果您正苦于以下问题:C++ PointRef::setPointId方法的具体用法?C++ PointRef::setPointId怎么用?C++ PointRef::setPointId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PointRef
的用法示例。
在下文中一共展示了PointRef::setPointId方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: filter
void ColorizationFilter::filter(PointView& view)
{
PointRef point = view.point(0);
for (PointId idx = 0; idx < view.size(); ++idx)
{
point.setPointId(idx);
processOne(point);
}
}
示例2: read
point_count_t TileDBReader::read(PointViewPtr view, point_count_t count)
{
PointRef point = view->point(0);
PointId id;
for (id = 0; id < count; ++id)
{
point.setPointId(id);
if (!processOne(point))
break;
}
return id;
}
示例3: fillWriteBuf
point_count_t LasWriter::fillWriteBuf(const PointView& view,
PointId startId, std::vector<char>& buf)
{
point_count_t blocksize = buf.size() / m_lasHeader.pointLen();
blocksize = (std::min)(blocksize, view.size() - startId);
PointId lastId = startId + blocksize;
LeInserter ostream(buf.data(), buf.size());
PointRef point = (const_cast<PointView&>(view)).point(0);
for (PointId idx = startId; idx < lastId; idx++)
{
point.setPointId(idx);
fillPointBuf(point, ostream);
}
return blocksize;
}
示例4: PointRef
point_count_t Ilvis2Reader::read(PointViewPtr view, point_count_t count)
{
PointId idx = view->size();
point_count_t numRead = 0;
PointRef point = PointRef(*view, 0);
while (numRead < count)
{
point.setPointId(idx++);
if (!processOne(point))
break;
if (m_cb)
m_cb(*view, idx);
numRead++;
}
return numRead;
}