MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / addPositionInteract

Method addPositionInteract

Engine/NodeOverlay.cpp:294–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292
293
294void
295Node::addPositionInteract(const KnobDoublePtr& position,
296 const KnobBoolPtr& interactive)
297{
298 assert( QThread::currentThread() == qApp->thread() );
299 if ( appPTR->isBackground() ) {
300 return;
301 }
302
303 HostOverlayKnobsPositionPtr knobs = std::make_shared<HostOverlayKnobsPosition>();
304 knobs->addKnob(position, HostOverlayKnobsPosition::eKnobsEnumerationPosition);
305 if (interactive) {
306 knobs->addKnob(interactive, HostOverlayKnobsPosition::eKnobsEnumerationInteractive);
307 }
308 NodeGuiIPtr nodeGui = getNodeGui();
309 if (!nodeGui) {
310 _imp->nativeOverlays.push_back(knobs);
311 } else {
312 nodeGui->addDefaultInteract(knobs);
313 }
314}
315
316
317void

Callers 1

Calls 4

addDefaultInteractMethod · 0.80
isBackgroundMethod · 0.45
addKnobMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected