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

◆ root_node() [1/2]

InspectResult MayaFlux::Portal::Forma::Inspector::root_node ( Nodes::ProcessingToken  token,
Surface surface,
LayoutCursor cursor,
float  x_min = -0.95F,
float  x_max = 0.95F,
float  row_h = 0.05F,
int  depth = 0 
)

Inspect all RootNodes for a token.

For AUDIO_RATE: header shows token and channel count, each channel expanded as a nested root_node(token, channel) result. For all other tokens: delegates directly to root_node(token, 0).

Definition at line 182 of file NodeQuery.cpp.

187{
189 return root_node(token, 0, surface, cursor, x_min, x_max, row_h, depth);
190
191 auto channels = m_ngm.get_all_channels(token);
192 std::ranges::sort(channels);
193
194 InspectResult result;
195 for (const auto ch : channels) {
196 result.children.push_back(
197 root_node(token, ch, surface, cursor, x_min, x_max, row_h, depth));
198 }
199 return result;
200}
std::vector< unsigned int > get_all_channels(ProcessingToken token) const
Gets all channel indices for a given processing token.
Nodes::NodeGraphManager & m_ngm
InspectResult root_node(Nodes::ProcessingToken token, uint32_t channel, Surface &surface, LayoutCursor &cursor, float x_min=-0.95F, float x_max=0.95F, float row_h=0.05F, int depth=0)
Inspect a single RootNode for a specific token and channel.
@ AUDIO_RATE
Nodes that process at the audio sample rate.

References MayaFlux::Nodes::AUDIO_RATE, MayaFlux::Portal::Forma::InspectResult::children, MayaFlux::Nodes::NodeGraphManager::get_all_channels(), m_ngm, and root_node().

+ Here is the call graph for this function: