Template Struct InstanceFilterBase

Struct Documentation

template<typename T>
struct InstanceFilterBase

Instance filter base class.

Public Functions

virtual bool operator()(const T &obj) const = 0

Returns true if the input obj matches the filter conditions.

Parameters:

obj[in] input geometry object to filter or not.

Returns:

true if the obj matches the filter conditions

template<typename Allocator>
inline std::vector<size_t> apply(const std::vector<T, Allocator> &object_vector) const

Apply the filter on the given vector of objects and returns the list of indexes of the objects matching the filter conditions.

Parameters:

object_vector[in] vector of objects.

Returns:

the list of indexes of the objects matching the filter conditions.