![]() |
VR-Link API Documentation for HLA 1.3
|
Instances of DtEmitterSystemRepository are used to store state data for emitter systems in both HLA and DIS environments. More...
Inheritance diagram for DtEmitterSystemRepository:
Collaboration diagram for DtEmitterSystemRepository:Public Types | |
| typedef DtEmitterBeamRepository *(* | DtBeamStateRepCreator )() |
| Function prototype for functions that create Beam State Repositories. | |
Public Member Functions | |
| DtEmitterSystemRepository () | |
| default constructor | |
| virtual | ~DtEmitterSystemRepository () |
| destructor | |
| DtEmitterSystemRepository (const DtEmitterSystemRepository &orig) | |
| copy constructor | |
| DtEmitterSystemRepository & | operator= (const DtEmitterSystemRepository &orig) |
| assignment operator | |
| virtual DtStateRepository * | clone (bool copy=false) const |
| Return a copy/empty object of the same type as this. | |
| virtual void | setEmitterFunction (DtEmissionFunc function) |
| Set/Get the emitter function. | |
| virtual DtEmissionFunc | emitterFunction () const |
| virtual void | setEmitterName (DtEmitterSysName name) |
| Set/Get the emitter name. | |
| virtual DtEmitterSysName | emitterName () const |
| virtual void | setEmitterNumber (DtU8 number) |
| Set/Get the emitter number. | |
| virtual DtU8 | emitterNumber () const |
| virtual void | setEventId (const DtEventId &id) |
| Set/Get Event Id - not used until RPR 0.7. | |
| virtual const DtEventId & | eventId () const |
| virtual void | printData () const |
| Print data to the DtInfo stream. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print data to the specified stream. | |
| virtual DtEmitterBeamRepository * | beamSRById (DtU8 beamId, DtEmitterSysRetCode *retcode=NULL) |
| Return a pointer to the first BeamSR with specified beamID. | |
| virtual DtEmitterBeamRepository * | addBeam (DtU8 beamId=0, DtBeamType type=DtRegularBeam, DtEmitterSysRetCode *retcode=NULL) |
| Add/remove a new emitter beam within this system. | |
| virtual DtEmitterSysRetCode | removeBeam (DtU8 beamId) |
| removes an emitter beam, if there are duplicate beams it will remove the first beam with the given beamID. | |
| virtual DtEmitterSysRetCode | removeBeam (const DtGlobalObjectDesignator &id) |
| virtual int | numBeams () const |
| Returns number of beams. | |
| virtual const DtList * | beamList () const |
| Returns DtList of DtEmitterBeamStateRepositories. | |
| virtual DtList * | beamList () |
| bool | isMember (DtEmitterBeamRepository *bsr) const |
| Returns true if the give BSR is in this ESR's list of BSRs. | |
Public Member Functions inherited from DtEmbeddedSystemRepository | |
| DtEmbeddedSystemRepository () | |
| default constructor | |
| DtEmbeddedSystemRepository (const DtEmbeddedSystemRepository &orig) | |
| copy constructor | |
| virtual | ~DtEmbeddedSystemRepository () |
| destructor | |
| DtEmbeddedSystemRepository & | operator= (const DtEmbeddedSystemRepository &orig) |
| assignment operator | |
| virtual void | setEntityId (const DtEntityIdentifier &id) |
| Set the entity identifier. | |
| virtual const DtEntityIdentifier & | entityId () const |
| Get the entity identifier. | |
| virtual void | setHostId (const DtGlobalObjectDesignator &id) |
| Set the host identifier. | |
| virtual const DtGlobalObjectDesignator & | hostId () const |
| Get the host identifier. | |
| virtual void | setRelativePosition (const DtVector &position) |
| Set the position of the object relative to the entity. | |
| virtual const DtVector & | relativePosition () const |
| Get the position of the object relative to the entity. | |
Public Member Functions inherited from DtStateRepository | |
| virtual | ~DtStateRepository () |
| destructor | |
| DtStateRepository & | operator= (const DtStateRepository &orig) |
| assignment operator | |
| virtual void | setGlobalId (const DtGlobalObjectDesignator &id) |
| Get/Set global identifier, or name. | |
| virtual const DtGlobalObjectDesignator & | globalId () const |
| virtual void | setLocalId (const DtObjectId &id) |
| Get/Set local identifier, or handle. | |
| virtual const DtObjectId & | localId () const |
Static Public Member Functions | |
| static DtEmitterSystemRepository * | create () |
| static DtBeamStateRepCreator | setStateRepCreator (DtBeamStateRepCreator creator) |
| Give us a function to be used for creating Beam SRs. | |
Protected Member Functions | |
| virtual void | purgeBeamList () |
Protected Attributes | |
| DtEventId | myEventId |
| DtEmissionFunc | myEmitterFunction |
| DtEmitterSysName | myEmitterName |
| DtU8 | myEmitterNumber |
| DtList | myBeamList |
| List of beams in this system. | |
Protected Attributes inherited from DtEmbeddedSystemRepository | |
| DtEntityIdentifier | myEntityId |
| Embedded system class attributes. | |
| DtGlobalObjectDesignator | myHostId |
| DtVector | myRelativePosition |
Protected Attributes inherited from DtStateRepository | |
| DtGlobalObjectDesignator | myGlobalId |
| DtObjectId | myLocalId |
Static Protected Attributes | |
| static DtBeamStateRepCreator | theBeamStateRepCreator |
Instances of DtEmitterSystemRepository are used to store state data for emitter systems in both HLA and DIS environments.
| typedef DtEmitterBeamRepository*(* DtEmitterSystemRepository::DtBeamStateRepCreator)() |
Function prototype for functions that create Beam State Repositories.
| DtEmitterSystemRepository::DtEmitterSystemRepository | ( | ) |
default constructor
|
virtual |
destructor
| DtEmitterSystemRepository::DtEmitterSystemRepository | ( | const DtEmitterSystemRepository & | orig | ) |
copy constructor
|
virtual |
Add/remove a new emitter beam within this system.
If you add a beam with duplicate ID, retcode will be set to DtDuplicateBeam, and beamSRById will return the first beamSR with the given ID.
|
virtual |
Returns DtList of DtEmitterBeamStateRepositories.
|
virtual |
|
virtual |
Return a pointer to the first BeamSR with specified beamID.
|
virtual |
Return a copy/empty object of the same type as this.
Reimplemented from DtEmbeddedSystemRepository.
|
static |
Reimplemented from DtEmbeddedSystemRepository.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| bool DtEmitterSystemRepository::isMember | ( | DtEmitterBeamRepository * | bsr | ) | const |
Returns true if the give BSR is in this ESR's list of BSRs.
|
virtual |
Returns number of beams.
| DtEmitterSystemRepository& DtEmitterSystemRepository::operator= | ( | const DtEmitterSystemRepository & | orig | ) |
assignment operator
|
virtual |
Print data to the DtInfo stream.
Reimplemented from DtEmbeddedSystemRepository.
|
virtual |
Print data to the specified stream.
Reimplemented from DtEmbeddedSystemRepository.
|
protectedvirtual |
|
virtual |
removes an emitter beam, if there are duplicate beams it will remove the first beam with the given beamID.
This can cause crashes in HLA as this may not be the HLA object which was actually removed. It is safer in HLA to call removeBeam which takes a GlobalId
|
virtual |
|
virtual |
Set/Get the emitter function.
|
virtual |
Set/Get the emitter name.
|
virtual |
Set/Get the emitter number.
|
virtual |
Set/Get Event Id - not used until RPR 0.7.
|
static |
Give us a function to be used for creating Beam SRs.
|
protected |
List of beams in this system.
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |