MayaFlux 1.0.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 front-to-back (topmost first, matching hit_test).

Definition at line 179 of file Layer.cpp.

180{
181 std::vector<uint32_t> result;
182 for (const auto& m_element : std::views::reverse(m_elements)) {
183 if (test_element(m_element, ndc))
184 result.push_back(m_element.id);
185 }
186 return result;
187}
std::vector< Element > m_elements
Definition Layer.hpp:313
static bool test_element(const Element &el, glm::vec2 ndc) noexcept
Definition Layer.cpp:295
void reverse(std::span< double > data) noexcept
Reverse temporal order in-place.
Definition Transform.cpp:90

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: