![]() |
VR-Forces 4.0.4 Class Documentation
|
DtSetSpeedRequest is used to set the speed for an entity. More...

Public Member Functions | |
| DtSetSpeedRequest () | |
| default constructor | |
| DtSetSpeedRequest (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0) | |
| constructor If you have a request 'put' itself, the writeName will preface it. | |
| DtSetSpeedRequest (const DtString &writeName, const DtSetSpeedRequest &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| copy constructor | |
| const DtSetSpeedRequest & | operator= (const DtSetSpeedRequest &orig) |
| assignment operator | |
| virtual | ~DtSetSpeedRequest () |
| virtual int | type () const |
| Returns DtSetSpeedRequestType. | |
| virtual DtSetDataRequest * | clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const |
| Creates a copy of the request. | |
| virtual DtString | stringRep () const |
| Get a readable string representation of this setDataRequest. | |
| virtual DtReal | speed () const |
| In meters/second. | |
| virtual void | setSpeed (DtReal speed) |
| virtual int | netRepSize () const |
| Returns the size of the full network representation padded to an 8-byte boundary. | |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) |
| Fills in the task from the network buffer. | |
| virtual bool | setToNet () |
| Fills in the network buffer (created by base class simTask) with the task contents. | |
Static Public Member Functions | |
| static DtSetDataRequest * | creator () |
Protected Attributes | |
| DtRwReal | mySpeed |
DtSetSpeedRequest is used to set the speed for an entity.
It inherits read/writableness from DtSetDataRequest, and includes the speed (in m/s) to use.
set-data-request-type: DtSetSpeedRequestType
parameters: speed - Speed in meters per second.
default constructor
| DtSetSpeedRequest::DtSetSpeedRequest | ( | const DtString & | writeName, |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
constructor If you have a request 'put' itself, the writeName will preface it.
| DtSetSpeedRequest::DtSetSpeedRequest | ( | const DtString & | writeName, |
| const DtSetSpeedRequest & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
copy constructor
| virtual DtSetSpeedRequest::~DtSetSpeedRequest | ( | ) | [virtual] |
| const DtSetSpeedRequest& DtSetSpeedRequest::operator= | ( | const DtSetSpeedRequest & | orig | ) |
assignment operator
| virtual int DtSetSpeedRequest::type | ( | ) | const [virtual] |
Returns DtSetSpeedRequestType.
Implements DtSetDataRequest.
| virtual DtSetDataRequest* DtSetSpeedRequest::clone | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | const [virtual] |
Creates a copy of the request.
Implements DtSetDataRequest.
| virtual DtString DtSetSpeedRequest::stringRep | ( | ) | const [virtual] |
Get a readable string representation of this setDataRequest.
Implements DtSetDataRequest.
| virtual DtReal DtSetSpeedRequest::speed | ( | ) | const [virtual] |
In meters/second.
| virtual void DtSetSpeedRequest::setSpeed | ( | DtReal | speed | ) | [virtual] |
| virtual int DtSetSpeedRequest::netRepSize | ( | ) | const [virtual] |
Returns the size of the full network representation padded to an 8-byte boundary.
Reimplemented from DtSetDataRequest.
| virtual bool DtSetSpeedRequest::setFromNet | ( | const char * | contentBuffer, |
| unsigned | contentSize | ||
| ) | [virtual] |
Fills in the task from the network buffer.
Reimplemented from DtSetDataRequest.
| virtual bool DtSetSpeedRequest::setToNet | ( | ) | [virtual] |
Fills in the network buffer (created by base class simTask) with the task contents.
Reimplemented from DtSetDataRequest.
| static DtSetDataRequest* DtSetSpeedRequest::creator | ( | ) | [static] |
DtRwReal DtSetSpeedRequest::mySpeed [protected] |