DD::Image::ParticleNodeState Class Reference

List of all members.

Public Member Functions

virtual ParticleNodeStateclone ()=0
virtual void write (ImageCacheWriteI *)=0
virtual bool read (ImageCacheReadI *)=0
virtual ~ParticleNodeState ()

Detailed Description

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.


Constructor & Destructor Documentation

DD::Image::ParticleNodeState::~ParticleNodeState ( ) [virtual]

Destructor


Member Function Documentation

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)