Skip to content
Snippets Groups Projects
Commit 4eb53ba6 authored by Karsten Rink's avatar Karsten Rink Committed by GitHub
Browse files

Merge pull request #1787 from TomFischer/ImproveUsabilityOfProperties

[MeL] Another Properties::getPropertyVectorNames().
parents a9621576 a0597b2b
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,18 @@ std::vector<std::string> Properties::getPropertyVectorNames() const
return names;
}
std::vector<std::string> Properties::getPropertyVectorNames(
MeshLib::MeshItemType t) const
{
std::vector<std::string> names;
for (auto p : _properties)
{
if (p.second->getMeshItemType() == t)
names.push_back(p.first);
}
return names;
}
Properties Properties::excludeCopyProperties(
std::vector<std::size_t> const& exclude_elem_ids,
std::vector<std::size_t> const& exclude_node_ids) const
......
......@@ -103,6 +103,8 @@ public:
bool hasPropertyVector(std::string const& name) const;
std::vector<std::string> getPropertyVectorNames() const;
std::vector<std::string> getPropertyVectorNames(
MeshLib::MeshItemType t) const;
/** copy all PropertyVector objects stored in the (internal) map but only
* those nodes/elements of a PropertyVector whose ids are not in the vectors
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment