diff --git a/Applications/DataExplorer/DataView/TranslateDataDialog.cpp b/Applications/DataExplorer/DataView/TranslateDataDialog.cpp index 53ea36df07314eebc05da4e34088ef2b403227e1..d5a5057253e687ac9883e62c6242d47e9da7c582 100644 --- a/Applications/DataExplorer/DataView/TranslateDataDialog.cpp +++ b/Applications/DataExplorer/DataView/TranslateDataDialog.cpp @@ -24,6 +24,18 @@ #include "MeshModel.h" #include "MeshToolsLib/MeshEditing/moveMeshNodes.h" +namespace +{ +std::vector<std::string> getSelectedObjects( + QStringList const& list) +{ + std::vector<std::string> indexList; + std::transform(list.begin(), list.end(), std::back_inserter(indexList), + [](auto const& index) { return index.toStdString(); }); + return indexList; +} +} // namespace + TranslateDataDialog::TranslateDataDialog(MeshModel* mesh_model, GEOModels* geo_models, QDialog* parent) @@ -151,7 +163,7 @@ void TranslateDataDialog::accept() displacement[2]); std::vector<std::string> const selectedData = - this->getSelectedObjects(_selData.stringList()); + getSelectedObjects(_selData.stringList()); auto const geoNames = _geo_models->getGeometryNames(); @@ -167,13 +179,4 @@ void TranslateDataDialog::accept() } this->done(QDialog::Accepted); -} - -std::vector<std::string> TranslateDataDialog::getSelectedObjects( - QStringList list) -{ - std::vector<std::string> indexList; - std::transform(list.begin(), list.end(), std::back_inserter(indexList), - [](auto const& index) { return index.toStdString(); }); - return indexList; } \ No newline at end of file diff --git a/Applications/DataExplorer/DataView/TranslateDataDialog.h b/Applications/DataExplorer/DataView/TranslateDataDialog.h index b5fb8bd8e7ce60fa748fd11ae5c165393b7fbbcb..3b44516c7f1ac401874d22411193a75836b26e91 100644 --- a/Applications/DataExplorer/DataView/TranslateDataDialog.h +++ b/Applications/DataExplorer/DataView/TranslateDataDialog.h @@ -43,7 +43,6 @@ public: QDialog* parent = nullptr); private: - std::vector<std::string> getSelectedObjects(QStringList list); void moveGeometry(Eigen::Vector3d const& displacement, std::string const& name); void moveMesh(Eigen::Vector3d const& displacement, std::string const& name);