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

Function getNumKeys

Engine/OfxParamInstance.cpp:125–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123/// in a generalized manner
124namespace OfxKeyFrame {
125static
126OfxStatus
127getNumKeys(KnobI* knob,
128 unsigned int &nKeys,
129 int startDim = -1,
130 int endDim = -1)
131{
132 OfxKeyFramesSet keyframes;
133
134 getOfxKeyFrames(knob, keyframes, startDim, endDim);
135 nKeys = (unsigned int)keyframes.size();
136
137 return kOfxStatOK;
138}
139
140static
141OfxStatus

Callers 1

getNumKeysMethod · 0.85

Calls 2

getOfxKeyFramesFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected