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

◆ set_visible()

bool MayaFlux::Portal::Forma::Layer::set_visible ( uint32_t  id,
bool  visible 
)

Definition at line 91 of file Layer.cpp.

92{
93 if (!get(id))
94 return false;
95
96 for (uint32_t member : closure(id)) {
97 auto* el = get(member);
98 if (!el)
99 continue;
100
101 el->visible = visible;
102 el->buffer.set_visible(visible);
103 }
104 return true;
105}
std::vector< uint32_t > closure(uint32_t id) const
Return id plus every id transitively related to it.
Definition Layer.cpp:243
const Element * get(uint32_t id) const
Definition Layer.cpp:272

References closure(), and get().

Referenced by MayaFlux::Portal::Forma::Collapsible::attach(), MayaFlux::Portal::Forma::Collapsible::place(), and set_all_visible().

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