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

Method save

src/IECoreScene/SpherePrimitive.cpp:166–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void SpherePrimitive::save( IECore::Object::SaveContext *context ) const
167{
168 Primitive::save(context);
169 IndexedIOPtr container = context->container( staticTypeName(), m_ioVersion );
170
171 container->write( g_radiusEntry, m_radius );
172 container->write( g_zMinEntry, m_zMin );
173 container->write( g_zMaxEntry, m_zMax );
174 container->write( g_thetaMaxEntry, m_thetaMax );
175}
176
177void SpherePrimitive::load( IECore::Object::LoadContextPtr context )
178{

Callers

nothing calls this directly

Calls 2

containerMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected