本文整理汇总了C++中dimension::IdList::push_back方法的典型用法代码示例。如果您正苦于以下问题:C++ IdList::push_back方法的具体用法?C++ IdList::push_back怎么用?C++ IdList::push_back使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dimension::IdList
的用法示例。
在下文中一共展示了IdList::push_back方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: usedDims
Dimension::IdList LasHeader::usedDims() const
{
using namespace Dimension;
Dimension::Id::Enum dims[] = { Id::ReturnNumber, Id::NumberOfReturns,
Id::X, Id::Y, Id::Z, Id::Intensity, Id::ScanChannel,
Id::ScanDirectionFlag, Id::EdgeOfFlightLine, Id::Classification,
Id::UserData, Id::ScanAngleRank, Id::PointSourceId };
// This mess is because MSVC doesn't support initializer lists.
Dimension::IdList ids;
std::copy(std::begin(dims), std::end(dims), std::back_inserter(ids));
if (hasTime())
ids.push_back(Id::GpsTime);
if (hasColor())
{
ids.push_back(Id::Red);
ids.push_back(Id::Green);
ids.push_back(Id::Blue);
}
if (hasInfrared())
ids.push_back(Id::Infrared);
return ids;
}
示例2: getDefaultDimensions
Dimension::IdList FauxReader::getDefaultDimensions()
{
Dimension::IdList ids;
ids.push_back(Dimension::Id::X);
ids.push_back(Dimension::Id::Y);
ids.push_back(Dimension::Id::Z);
ids.push_back(Dimension::Id::OffsetTime);
return ids;
}
示例3:
Dimension::IdList Ilvis2Reader::getDefaultDimensions()
{
using namespace pdal::Dimension;
Dimension::IdList ids;
ids.push_back(Id::GpsTime);
ids.push_back(Id::Y);
ids.push_back(Id::X);
ids.push_back(Id::Z);
return ids;
}
示例4: getDefaultDimensions
Dimension::IdList Reader::getDefaultDimensions()
{
Dimension::IdList ids;
using namespace Dimension;
ids.push_back(Id::OffsetTime);
ids.push_back(Id::Y);
ids.push_back(Id::X);
ids.push_back(Id::Z);
ids.push_back(Id::StartPulse);
ids.push_back(Id::ReflectedPulse);
ids.push_back(Id::ScanAngleRank);
ids.push_back(Id::Pitch);
ids.push_back(Id::Roll);
ids.push_back(Id::Pdop);
ids.push_back(Id::PulseWidth);
ids.push_back(Id::GpsTime);
return ids;
}
示例5: getDefaultDimensions
Dimension::IdList OptechReader::getDefaultDimensions()
{
Dimension::IdList dims;
dims.push_back(Dimension::Id::X);
dims.push_back(Dimension::Id::Y);
dims.push_back(Dimension::Id::Z);
dims.push_back(Dimension::Id::GpsTime);
dims.push_back(Dimension::Id::ReturnNumber);
dims.push_back(Dimension::Id::NumberOfReturns);
dims.push_back(Dimension::Id::EchoRange);
dims.push_back(Dimension::Id::Intensity);
dims.push_back(Dimension::Id::ScanAngleRank);
return dims;
}
示例6: loadBpfDimensions
void BpfWriter::loadBpfDimensions(PointLayoutPtr layout)
{
Dimension::IdList dims;
if (m_outputDims.size())
{
for (std::string& s : m_outputDims)
{
Dimension::Id::Enum id = layout->findDim(s);
if (id == Dimension::Id::Unknown)
{
std::ostringstream oss;
oss << "Invalid dimension '" << s << "' specified for "
"'output_dims' option.";
throw pdal_error(oss.str());
}
dims.push_back(id);
}
}
else
dims = layout->dims();
// Verify that we have X, Y and Z and that they're the first three
// dimensions.
std::sort(dims.begin(), dims.end());
if (dims.size() < 3 || dims[0] != Dimension::Id::X ||
dims[1] != Dimension::Id::Y || dims[2] != Dimension::Id::Z)
{
throw pdal_error("Missing one of dimensions X, Y or Z. "
"Can't write BPF.");
}
for (auto id : dims)
{
BpfDimension dim;
dim.m_id = id;
dim.m_label = layout->dimName(id);
m_dims.push_back(dim);
}
}
示例7: getDefaultDimensions
Dimension::IdList QfitReader::getDefaultDimensions()
{
Dimension::IdList ids;
ids.push_back(Dimension::Id::OffsetTime);
ids.push_back(Dimension::Id::Y);
ids.push_back(Dimension::Id::X);
ids.push_back(Dimension::Id::Z);
ids.push_back(Dimension::Id::StartPulse);
ids.push_back(Dimension::Id::ReflectedPulse);
ids.push_back(Dimension::Id::ScanAngleRank);
ids.push_back(Dimension::Id::Pitch);
ids.push_back(Dimension::Id::Roll);
ids.push_back(Dimension::Id::Pdop);
ids.push_back(Dimension::Id::PulseWidth);
ids.push_back(Dimension::Id::PassiveSignal);
ids.push_back(Dimension::Id::PassiveY);
ids.push_back(Dimension::Id::PassiveX);
ids.push_back(Dimension::Id::PassiveZ);
return ids;
}