#include <PeriodicVmdReporter.h>
Public Member Functions | |
PeriodicVmdReporter (const CompoundSystem &system, Real interval, int localSocketNumber, bool blockWaitingForVmdConnection=false) | |
void | handleEvent (const State &state) const |
This method is invoked to handle the event. |
PeriodicVmdReporter | ( | const CompoundSystem & | system, | |
Real | interval, | |||
int | localSocketNumber, | |||
bool | blockWaitingForVmdConnection = false | |||
) | [inline] |
void handleEvent | ( | const State & | state | ) | const [inline, virtual] |
This method is invoked to handle the event.
It is given a State which describes the system at the time when the event occurs.
Implements EventReporter.
References c, VmdConnection::checkForConnection(), VmdConnection::clientIsConnected(), CompoundSystem::getCompound(), CompoundSystem::getNumCompounds(), VmdConnection::getSocketNumber(), Stage::Position, VmdConnection::sendCoordinates(), Compound::writePdb(), x, and y.