VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
emitterComponent.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 1992-2026 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
6 // emitterComponent.h - encapsulates radar emissions for DtVehicleSim
7 
8 #pragma once
9 
10 #include <vl/exerciseConn.h>
11 // Forward declarations to avoid heavy includes in header
14 class DtReflectedObject;
16 
17 class DtVehicleSim;
21 
23 public:
26 
29 
31 
32  void enable();
35  void disable();
37  void toggle();
39  void tick(double dt);
41 
43  void switchScanData();
44 
46  bool enabled() const;
47 
48 protected:
50 
51  static void emitterSystemUpdateCallback(DtReflectedEmitterSystem* obj, void* usr);
52  static void emitterSystemAdditionCallback(DtReflectedEmitterSystem* obj, void* usr);
53  static void emitterSystemRemovalCallback(DtReflectedEmitterSystem* obj, void* usr);
54  static bool emitterSystemDiscoveryCondition(DtReflectedObject* refObj, void* usr);
56 
58 
64 
66  DtString generateEmbeddedSystemName(const char* baseName);
67 
68 protected:
70 
75 
79  bool myEnabled;
81 };
void enable()
Lifecycle control for emitter system.
void onEmitterSystemUpdate(DtReflectedEmitterSystem *obj)
Instance-level handlers for reflected emitter lifecycle.
void onEmitterSystemRemoval(DtReflectedEmitterSystem *obj)
Instance-level handlers for reflected emitter lifecycle.
static void emitterSystemUpdateCallback(DtReflectedEmitterSystem *obj, void *usr)
Static callbacks used to hook reflected emitter systems.
DtExerciseConn * myExConn
Owning vehicle, shared context, emitter publisher, and reflection list.
Definition: emitterComponent.h:72
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:62
DtEmitterComponent(DtVehicleSim *owner, DtExerciseConn *conn, DtReflectedEntityList *rel, DtEntityStateRepository *esr)
Construct an emitter component bound to a vehicle and its state/network context.
bool onEmitterSystemDiscovery(DtReflectedEmitterSystem *refEmitter)
Instance-level handlers for reflected emitter lifecycle.
Part of the F18 example.
Definition: f18/vehicleSim.h:29
DtString generateEmbeddedSystemName(const char *baseName)
Generate a unique embedded-system name for this host.
DtEmitterSystemPublisher * myEmitterPub
Owning vehicle, shared context, emitter publisher, and reflection list.
Definition: emitterComponent.h:76
void disable()
Disable radar emissions and destroy the emitter system/beam.
bool enabled() const
Return true if emissions are currently enabled.
void tick(double dt)
Per-frame update; publishes emitter state when enabled.
static void emitterSystemAdditionCallback(DtReflectedEmitterSystem *obj, void *usr)
Static callbacks used to hook reflected emitter systems.
DtVehicleSim * myOwner
Owning vehicle, shared context, emitter publisher, and reflection list.
Definition: emitterComponent.h:71
Instances of DtReflectedEmitterSystemList manage the list of of remote EmitterSystems in the exercise...
Definition: reflectedEmitterSystemListHLA.h:21
DtEmitterBeamRepository * myBeam
Owning vehicle, shared context, emitter publisher, and reflection list.
Definition: emitterComponent.h:77
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:42
class DtReflectedObject:
Definition: reflectedObjectHLA.h:36
DtReflectedEntityList * myRel
Owning vehicle, shared context, emitter publisher, and reflection list.
Definition: emitterComponent.h:73
static void emitterSystemRemovalCallback(DtReflectedEmitterSystem *obj, void *usr)
Static callbacks used to hook reflected emitter systems.
class DtEmitterBeamRepository:
Definition: emitterBeamRepository.h:44
Instances of DtReflectedEntityList are used to manage remote entities from the network.
Definition: reflectedEntityListHLA.h:38
This file provides protocol to independence DtExerciseConn.
void toggle()
Toggle emissions on or off.
DtEntityStateRepository * myESR
Owning vehicle, shared context, emitter publisher, and reflection list.
Definition: emitterComponent.h:74
bool myEnabled
Owning vehicle, shared context, emitter publisher, and reflection list.
Definition: emitterComponent.h:79
void onEmitterSystemAddition(DtReflectedEmitterSystem *obj)
Instance-level handlers for reflected emitter lifecycle.
~DtEmitterComponent()
Destructor.
Instances of DtEmitterSystemPublisher are used for local or source simulations of emitter systems...
Definition: emitterSystemPublisherHLA.h:23
void switchScanData()
Change the radar beam scan pattern (for demo purposes)
Definition: emitterComponent.h:22
Instances of DtString are used to represent strings.
Definition: vlString.h:38
DtReflectedEmitterSystemList * myRefEmitList
Owning vehicle, shared context, emitter publisher, and reflection list.
Definition: emitterComponent.h:78
static bool emitterSystemDiscoveryCondition(DtReflectedObject *refObj, void *usr)
Static callbacks used to hook reflected emitter systems.
Instances of DtReflectedEmitterSystem represent EmitterSystem objects simulated by remote application...
Definition: reflectedEmitterSystemHLA.h:28

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)