Skip to content
Snippets Groups Projects
Commit 260e8d25 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ProjectionsSet rm member fcts

parent 683a576d
No related branches found
No related tags found
1 merge request!2381rm class and source pair ProjectionsSet
...@@ -16,13 +16,3 @@ ...@@ -16,13 +16,3 @@
#include "GUI/Model/Mask/MaskItems.h" #include "GUI/Model/Mask/MaskItems.h"
ProjectionsSet::ProjectionsSet() = default; ProjectionsSet::ProjectionsSet() = default;
QVector<const LineItem*> ProjectionsSet::projectionsOfType(Qt::Orientation projectionType) const
{
if (projectionType == Qt::Horizontal)
return projections<HorizontalLineItem>();
else if (projectionType == Qt::Vertical)
return projections<VerticalLineItem>();
else
ASSERT_NEVER;
}
...@@ -26,18 +26,6 @@ class LineItem; ...@@ -26,18 +26,6 @@ class LineItem;
class ProjectionsSet : public MasksSet { class ProjectionsSet : public MasksSet {
public: public:
ProjectionsSet(); ProjectionsSet();
QVector<const LineItem*> projectionsOfType(Qt::Orientation projectionType) const;
private:
template <typename LineType> QVector<const LineItem*> projections() const
{
QVector<const LineItem*> result;
for (const auto* proj : m_mask_items)
if (const auto* line_item = dynamic_cast<const LineType*>(proj))
result.push_back(line_item);
return result;
}
}; };
......
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