![]() |
VR-Forces 5.0.2 Developer's Guide
|
Interface provided to terrain feature's state change functions.
Provides a view into events which have applied to the terrain feature.
Public Types | |
| typedef boost::function< void(const DtDynamicTerrainChange &)> | IterateRequestCallback |
Public Member Functions | |
| virtual | ~DtDynamicTerrainIndex () |
| virtual void | iterateRequests (const IterateRequestCallback &callback) const =0 |
| virtual const DtDynamicTerrainChange * | firstChange () const =0 |
| virtual int | size () const =0 |
| virtual bool | addValue (const boost::shared_ptr< DtDynamicTerrainFeature::Link > &link, const DtString &key)=0 |
| typedef boost::function<void (const DtDynamicTerrainChange&)> makVrv::DtDynamicTerrainIndex::IterateRequestCallback |
|
virtual |
Virtual destructor.
|
pure virtual |
Call the supplied callback on all the events. Systems which can deform terrain in detailed ways can reconstruct any set of changes by finding the events they are capable of supporting and applying them in order.
|
pure virtual |
Return the most recent event. Many features only care about the latest event that applied to them (i.e are they in a damaged state?). If this function returns null then there are no events the feature should revert to its default state.
|
pure virtual |
Returns the total number of events in the change list.
|
pure virtual |
Add a linked change request to this index.