![]() |
VR-Link API Documentation for DIS
|
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 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. | |
| virtual void | setAttributeRecords (const std::vector< DtStandardVariableRecord * > &records) |
| Get/Set records Note that these methods will actually add/subtract/query into every beam in this Emitter System. | |
| virtual const std::vector < DtStandardVariableRecord * > | attributeRecords (unsigned int recordType=0) const |
| virtual void | getAttributeRecords (std::vector< DtStandardVariableRecord * > &vec, unsigned int recordType=0) const |
| virtual void | addAttributeRecord (DtStandardVariableRecord *record) |
| virtual void | clearAttributeRecords () |
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 DtVector32 &position) |
| Set the position of the object relative to the entity. | |
| virtual const DtVector32 & | relativePosition () const |
| Get the position of the object relative to the entity. | |
Public Member Functions inherited from DtStateRepository | |
| DtStateRepository () | |
| default constructor | |
| DtStateRepository (const DtStateRepository &orig) | |
| copy constructor | |
| 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 | setAttributeRecords (const std::vector< DtStandardVariableRecord * > &records, const DtSimulationAddress &address) |
| virtual void | setSimAddr (const DtSimulationAddress &id) |
| Get/Set default simulation address. Set by VR-Link for publishers (based on exercise connection) | |
| virtual const DtSimulationAddress & | simAddr () const |
| virtual unsigned int | numberOfAttributeRecords () 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 |
| DtVector32 | myRelativePosition |
Static Protected Attributes | |
| static DtBeamStateRepCreator | theBeamStateRepCreator |
Additional Inherited Members | |
Public Attributes inherited from DtStateRepository | |
| DtGlobalObjectDesignator | myGlobalId |
| DtSimulationAddress | myDefaultSimulationAddress |
| std::map< DtSimulationAddress, std::vector < DtStandardVariableRecord * > > | myRecordsMap |
Static Public Attributes inherited from DtStateRepository | |
| static bool | theAllowCoupledPdusFlag |
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 |
Reimplemented from DtStateRepository.
|
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 |
Reimplemented from DtStateRepository.
|
virtual |
Returns DtList of DtEmitterBeamStateRepositories.
|
virtual |
|
virtual |
Return a pointer to the first BeamSR with specified beamID.
|
virtual |
Reimplemented from DtStateRepository.
|
virtual |
Return a copy/empty object of the same type as this.
Reimplemented from DtEmbeddedSystemRepository.
|
static |
Reimplemented from DtEmbeddedSystemRepository.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented from DtStateRepository.
| 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 |
Get/Set records Note that these methods will actually add/subtract/query into every beam in this Emitter System.
Reimplemented from DtStateRepository.
|
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 |