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

Method getRegionOfDefinition

Engine/PyNode.cpp:960–978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958}
959
960RectD
961Effect::getRegionOfDefinition(double time,
962 int view) const
963{
964 RectD rod;
965
966 if ( !getInternalNode() || !getInternalNode()->getEffectInstance() ) {
967 return rod;
968 }
969 U64 hash = getInternalNode()->getHashValue();
970 RenderScale s(1.);
971 bool isProject;
972 StatusEnum stat = getInternalNode()->getEffectInstance()->getRegionOfDefinition_public(hash, time, s, ViewIdx(view), &rod, &isProject);
973 if (stat != eStatusOK) {
974 return RectD();
975 }
976
977 return rod;
978}
979
980void
981Effect::setSubGraphEditable(bool editable)

Calls 5

getEffectInstanceMethod · 0.80
getHashValueMethod · 0.80
ViewIdxClass · 0.70
RectDClass · 0.70

Tested by

no test coverage detected