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

Function Sbk_EffectFunc_getColor

Engine/Qt4/NatronEngine/effect_wrapper.cpp:472–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472static PyObject* Sbk_EffectFunc_getColor(PyObject* self)
473{
474 ::Effect* cppSelf = 0;
475 SBK_UNUSED(cppSelf)
476 if (!Shiboken::Object::isValid(self))
477 return 0;
478 cppSelf = ((::Effect*)Shiboken::Conversions::cppPointer(SbkNatronEngineTypes[SBK_EFFECT_IDX], (SbkObject*)self));
479 PyObject* pyResult = 0;
480
481 // Call function/method
482 {
483
484 if (!PyErr_Occurred()) {
485 // getColor(double*,double*,double*)const
486 // Begin code injection
487
488 double r,g,b;
489 cppSelf->getColor(&r,&g,&b);
490 pyResult = PyTuple_New(3);
491 PyTuple_SET_ITEM(pyResult, 0, Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<double>(), &r));
492 PyTuple_SET_ITEM(pyResult, 1, Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<double>(), &g));
493 PyTuple_SET_ITEM(pyResult, 2, Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<double>(), &b));
494 return pyResult;
495
496 // End of code injection
497
498
499 }
500 }
501
502 if (PyErr_Occurred() || !pyResult) {
503 Py_XDECREF(pyResult);
504 return 0;
505 }
506 return pyResult;
507}
508
509static PyObject* Sbk_EffectFunc_getCurrentTime(PyObject* self)
510{

Callers

nothing calls this directly

Calls 2

isValidFunction · 0.85
getColorMethod · 0.45

Tested by

no test coverage detected