Horizon
Loading...
Searching...
No Matches
src
canvas
selection_filter.hpp
1
#pragma once
2
#include <map>
3
#include "common/common.hpp"
4
5
namespace
horizon {
6
class
SelectionFilter
{
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::CanvasGL
Definition
canvas_gl.hpp:20
horizon::SelectableRef
Definition
selectables.hpp:35
horizon::SelectionFilter::ObjectFilter
Definition
selection_filter.hpp:13
horizon::SelectionFilter
Definition
selection_filter.hpp:6
Generated by
1.9.8