MCPcopy Create free account
hub / github.com/MrKepzie/Natron / getAvailableLayers

Method getAvailableLayers

Engine/PyNode.cpp:1001–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

999}
1000
1001std::list<ImageLayer>
1002Effect::getAvailableLayers(int inputNb) const
1003{
1004 std::list<ImageLayer> ret;
1005
1006 if ( !getInternalNode() ) {
1007 return ret;
1008 }
1009 double time(getInternalNode()->getApp()->getTimeLine()->currentFrame());
1010
1011 std::list<ImagePlaneDesc> availComps;
1012 getInternalNode()->getEffectInstance()->getAvailableLayers(time, ViewIdx(0), inputNb, &availComps);
1013 for (std::list<ImagePlaneDesc>::iterator it = availComps.begin(); it != availComps.end(); ++it) {
1014 ret.push_back(ImageLayer(*it));
1015 }
1016
1017
1018 return ret;
1019}
1020
1021double
1022Effect::getFrameRate() const

Callers 9

treeRecurseFunctorMethod · 0.45
getInputImageInternalMethod · 0.45
makeInfoForInputMethod · 0.45
onLayerChangedMethod · 0.45
onOutputLayerChangedMethod · 0.45

Calls 9

getEffectInstanceMethod · 0.80
ViewIdxClass · 0.70
ImageLayerClass · 0.70
currentFrameMethod · 0.45
getTimeLineMethod · 0.45
getAppMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected