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

Method setValue

src/IECore/CompoundParameter.cpp:176–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void CompoundParameter::setValue( ObjectPtr value )
177{
178 Parameter::setValue( value );
179 CompoundObjectPtr tValue = runTimeCast<CompoundObject>( value );
180 if( tValue )
181 {
182 ParameterMap::iterator it;
183 for( it=m_namesToParameters.begin(); it!=m_namesToParameters.end(); it++ )
184 {
185 CompoundObject::ObjectMap::iterator oIt = tValue->members().find( it->first );
186 if( oIt!=tValue->members().end() )
187 {
188 it->second->setValue( oIt->second );
189 }
190 }
191 }
192}
193
194Object *CompoundParameter::getValue()
195{

Callers 6

testPresetsMethod · 0.95
testLateValidationMethod · 0.95
testAdoptChildPresetsMethod · 0.95
setParameterValueMethod · 0.45

Calls 4

setValueFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45

Tested by 4

testPresetsMethod · 0.76
testLateValidationMethod · 0.76
testAdoptChildPresetsMethod · 0.76