|
WSF
|
#include <WsfSinglePlatformObserver.hpp>

Public Member Functions | |
| virtual | ~WsfSinglePlatformObserver () |
| virtual void | OnPlatformDeleting (double aSimTime, WsfPlatform *aPlatformPtr) |
| Called before the platform is actually deleted. | |
| virtual void | OnPlatformDeleted (double aSimTime, WsfPlatform *aPlatformPtr) |
| Called just before the platform is removed from the simulation. | |
| virtual void | OnPlatformUpdated (double aSimTime, WsfPlatform *aPlatformPtr) |
| Called after each mover update. | |
A light-weight observer of a single platform.
A object may register an instance of this class with a particular platform in order to receive notification of the events defined by the virtual methods. Unlike the simulation observers which receive notification of ALL occurrences of a subscribed event, this is directed at observing a SINGLE platform. It is lighter weight and faster, but the user must take care to follow the process described below.
The typical use is to subclass this, define one or more of the virtual methods and attach to the platform using WsfPlatform::AttachObserver(). Once an object attaches, it MUST detach from the platform using WsfPlatform::DetachObserver prior to its destruction.
|
inlinevirtual |
|
inlinevirtual |
Called just before the platform is removed from the simulation.
Reimplemented in WsfChaffCloud, and WsfTowedMover.
|
inlinevirtual |
Called before the platform is actually deleted.
|
inlinevirtual |
Called after each mover update.
Reimplemented in WsfArticulatedPart, WsfChaffCloud, WsfChaffEjector, WsfEM_Antenna, WsfFuel, WsfNavigationErrors, WsfOffsetMover, and WsfTowedMover.