Public Member Functions | |
virtual ParticleNodeState * | clone ()=0 |
virtual void | write (ImageCacheWriteI *)=0 |
virtual bool | read (ImageCacheReadI *)=0 |
virtual | ~ParticleNodeState () |
ParticleNodeState is used for nodes to store state that should be preserved with the particle system, and serialised/ unserialised from disk with the cache.
For example, the Emitter uses this to keep track of which vertex it has emitted from in the 'in order' option.
DD::Image::ParticleNodeState::~ParticleNodeState | ( | ) | [virtual] |
Destructor
virtual ParticleNodeState* DD::Image::ParticleNodeState::clone | ( | ) | [pure virtual] |
Should create a deep copy of itself.
virtual void DD::Image::ParticleNodeState::write | ( | ImageCacheWriteI * | ) | [pure virtual] |
Should write out all data to the passed-in file
virtual bool DD::Image::ParticleNodeState::read | ( | ImageCacheReadI * | ) | [pure virtual] |
Should clear its state and read in data from the file. File pointer will point at the position that write() had been called from. Should returns false in case of failure (including under-run)