Automatically sort the features

This commit is contained in:
Daniel Girardeau-Montaut
2019-03-25 22:45:39 +01:00
parent 42bd0a52e4
commit 35489dacb5
5 changed files with 17 additions and 4 deletions
+2 -2
View File
@@ -155,7 +155,7 @@ bool Tools::LoadClassifierCloudLabels(QString filename, QSet<QString>& labels, Q
return true;
}
static bool CreateFeaturesFromCommand(const QString& command, int lineNumber, const Tools::NamedClouds& clouds, std::vector<Feature::Shared>& rawFeatures, std::vector<double>& scales)
static bool CreateFeaturesFromCommand(const QString& command, QString corePointsRole, int lineNumber, const Tools::NamedClouds& clouds, std::vector<Feature::Shared>& rawFeatures, std::vector<double>& scales)
{
QStringList tokens = command.split('_');
if (tokens.empty())
@@ -771,7 +771,7 @@ static bool LoadFileCommon( const QString& filename,
{
QString command = line.mid(8);
if (!CreateFeaturesFromCommand(command, lineNumber, clouds, rawFeatures, scales))
if (!CreateFeaturesFromCommand(command, corePoints ? corePoints->role : QString(), lineNumber, clouds, rawFeatures, scales))
{
//error message already issued
//return false;