MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ hit_test_all() [2/2]

std::vector< uint32_t > MayaFlux::Portal::Forma::Layer::hit_test_all ( glm::vec2  ndc) const

Return all interactive, visible elements containing ndc, ordered back-to-front.

Definition at line 126 of file Layer.cpp.

127{
128 std::vector<uint32_t> result;
129 for (const auto& m_element : std::views::reverse(m_elements)) {
130 if (test_element(m_element, ndc))
131 result.push_back(m_element.id);
132 }
133 return result;
134}
std::vector< Element > m_elements
Definition Layer.hpp:280
static bool test_element(const Element &el, glm::vec2 ndc) noexcept
Definition Layer.cpp:219
void reverse(std::vector< double > &data)
Reverse time order of single-channel data (in-place)
Definition Yantra.cpp:614

References m_elements, and test_element().

Referenced by hit_test_all().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: