MCPcopy Create free account
hub / github.com/ImageEngine/cortex / set

Method set

src/IECoreScene/TransformStack.cpp:109–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void TransformStack::set( const Imath::M44f &matrix )
110{
111 Samples &samples = m_stack.top();
112 if( m_motionIndex >= 0 )
113 {
114 if( m_motionIndex >= (int)samples.size() )
115 {
116 throw Exception( "TransformStack::set() called too many times for motion block" );
117 }
118 samples[m_motionIndex++].matrix = matrix;
119 }
120 else
121 {
122 for( Samples::iterator it = samples.begin(), eIt = samples.end(); it != eIt; ++it )
123 {
124 it->matrix = matrix;
125 }
126 }
127}
128
129void TransformStack::concatenate( const Imath::M44f &matrix )
130{

Callers 15

writeSampleMethod · 0.45
writeSampleMethod · 0.45
writeTransformMethod · 0.45
writeBoundMethod · 0.45
setPropertyMethod · 0.45
writeSetMethod · 0.45
setPropertyFunction · 0.45
writeArbGeomParamMethod · 0.45
writeSampleMethod · 0.45
writeSampleInternalMethod · 0.45
testMethod · 0.45

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 15

testMethod · 0.36
testSetMethod · 0.36
testSetLimitsCostMethod · 0.36
testSignedScaledMethod · 0.36
addLinearTestMethod · 0.36
addCubicTestMethod · 0.36
addLinearMatrixTestMethod · 0.36
addCubicMatrixTestMethod · 0.36
addTestMethod · 0.36
addSimpleMethod · 0.36