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

Method setIncrement

Engine/KnobTypes.cpp:97–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void
98KnobInt::setIncrement(int incr,
99 int index)
100{
101 if (incr <= 0) {
102 qDebug() << "Attempting to set the increment of an int param to a value lesser or equal to 0";
103
104 return;
105 }
106
107 if ( index >= (int)_increments.size() ) {
108 throw std::runtime_error("KnobInt::setIncrement , dimension out of range");
109 }
110 _increments[index] = incr;
111 Q_EMIT incrementChanged(_increments[index], index);
112}
113
114void
115KnobInt::setIncrement(const std::vector<int> &incr)

Callers 7

OfxIntegerInstanceMethod · 0.45
OfxDoubleInstanceMethod · 0.45
OfxDouble2DInstanceMethod · 0.45
OfxInteger2DInstanceMethod · 0.45
OfxDouble3DInstanceMethod · 0.45
OfxInteger3DInstanceMethod · 0.45
RotoContextPrivateMethod · 0.45

Calls 2

getDimensionFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected