Horizon
selection_filter.hpp
1 #pragma once
2 #include <map>
3 #include "common/common.hpp"
4 
5 namespace horizon {
7 public:
8  SelectionFilter(const class CanvasGL &c) : ca(c)
9  {
10  }
11  bool can_select(const class SelectableRef &sel) const;
12 
13  class ObjectFilter {
14  public:
15  std::map<int, bool> layers;
16  bool other_layers = false;
17  };
18 
19  std::map<ObjectType, ObjectFilter> object_filter;
20 
21 private:
22  const CanvasGL &ca;
23 };
24 } // namespace horizon
horizon::SelectionFilter
Definition: selection_filter.hpp:6
horizon::SelectionFilter::ObjectFilter
Definition: selection_filter.hpp:13
horizon::CanvasGL
Definition: canvas_gl.hpp:18
horizon::SelectableRef
Definition: selectables.hpp:33