-
Notifications
You must be signed in to change notification settings - Fork 22
/
ObjectSelector.hpp
67 lines (54 loc) · 1.42 KB
/
ObjectSelector.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef AVANGO_TOOLS_OBJECTSELECTOR_HPP
#define AVANGO_TOOLS_OBJECTSELECTOR_HPP
/**
* \file
* \ingroup av_tools
*/
#include <avango/tools/Selector.hpp>
#include <avango/tools/windows_specific_tools.hpp>
namespace av
{
namespace tools
{
/**
* ObjectSelector class selects targets from given av::FieldContainers.
*
* \ingroup av_tools
*/
class AV_TOOLS_DLL ObjectSelector : public Selector
{
AV_FC_DECLARE();
public:
/**
* Constructor.
*/
ObjectSelector();
protected:
/**
* Destructor made protected to prevent allocation on stack.
*/
virtual ~ObjectSelector();
public:
/**
* Defines the input targets from which the objects are selected.
*/
MFTargetHolder Targets;
/**
* Defines the objects which may be selected. The output is in SelectedTargets.
*/
MFContainer SelectableObjects;
/**
* Defines additional selectable objects wihch may come as output from another Selector.
*/
MFTargetHolder SelectableTargets;
/* virtual */ void evaluate();
};
using SFObjectSelector = SingleField<Link<ObjectSelector>>;
using MFObjectSelector = MultiField<Link<ObjectSelector>>;
} // namespace tools
#ifdef AV_INSTANTIATE_FIELD_TEMPLATES
template class AV_TOOLS_DLL SingleField<Link<tools::ObjectSelector>>;
template class AV_TOOLS_DLL MultiField<Link<tools::ObjectSelector>>;
#endif
} // namespace av
#endif // AVANGO_TOOLS_OBJECTSELECTOR_HPP