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

Method save

src/IECoreScene/DiskPrimitive.cpp:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void DiskPrimitive::save( IECore::Object::SaveContext *context ) const
137{
138 Primitive::save(context);
139 IndexedIOPtr container = context->container( staticTypeName(), m_ioVersion );
140
141 container->write( g_radiusEntry, m_radius );
142 container->write( g_zEntry, m_z );
143 container->write( g_thetaMaxEntry, m_thetaMax );
144}
145
146void DiskPrimitive::load( IECore::Object::LoadContextPtr context )
147{

Callers 1

testSaveAndLoadMethod · 0.95

Calls 2

containerMethod · 0.80
writeMethod · 0.45

Tested by 1

testSaveAndLoadMethod · 0.76