VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedWaterSurfaceListDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
10 
11 #pragma once
12 
13 #if DtDIS
14 
17 #include <vl/metocPdu.h>
19 
21 class DtExerciseConn;
22 
23 
31 {
32 public:
35 
37  virtual ~DtReflectedWaterSurfaceList();
38 
39 private:
42 
45 
46 public:
47  virtual DtReflectedWaterSurface* first() const;
48  virtual DtReflectedWaterSurface* last() const;
49 
51  virtual void addWaterSurfaceAdditionCallback(
52  DtWaterSurfaceCallbackFunction cb, void* userData);
53  virtual void removeWaterSurfaceAdditionCallback(
54  DtWaterSurfaceCallbackFunction cb, void* userData);
55 
57  virtual void addWaterSurfaceRemovalCallback(
58  DtWaterSurfaceCallbackFunction cb, void* userData);
59  virtual void removeWaterSurfaceRemovalCallback(
60  DtWaterSurfaceCallbackFunction cb, void* userData);
61 
63  virtual void print();
64 
67  virtual DtReflectedWaterSurface* processWaterSurfaceState(
68  const DtMetocPdu& pdu);
69 
70 protected:
72  virtual DtReflectedObject* newReflectedObj(const DtStateMsg& msg);
73 
76 
79  virtual void objectAdded(DtReflectedObject* obj);
80 
83  virtual int acceptPdu(const DtStateMsg& msg) const;
84 
86  virtual const DtBaseHashKey&
88 
90  virtual DtReflectedWaterSurface* newReflectedWaterSurface() const;
91 
94  virtual void waterSurfaceAdded(DtReflectedWaterSurface* agg);
95 
96 protected:
98  static void waterSurfaceStateCb(DtMetocPdu* pdu, void* usr);
99 
100 protected:
102 
103 };
104 
105 #endif
Instances of DtEntityIdentifierHashKey are hash keys made from DtEntityIdentifiers.
Definition: entityIdentifierHashKey.h:21
virtual void print() const
Print the SRs of all objects.
Instances of DtReflectedObjectList are lists of instances of classes derived from DtReflectedObject...
Definition: reflectedObjectListDIS.h:38
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
virtual const DtBaseHashKey & hashKeyFromStateMessage(const DtStateMsg *msg)=0
Get a hash key from a state message.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtEntityIdentifierHashKey myHashKey
Definition: reflectedWaterSurfaceListDIS.h:101
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
Instances of DtMetocPdu are used for DIS network packets which encode the DtMetocRootStateRepository ...
Definition: metocPdu.h:37
Instances of this class provide a protocol independent interface to a list of WaterSurface in a DIS e...
Definition: reflectedWaterSurfaceListDIS.h:30
virtual int acceptPdu(const DtStateMsg &) const
Determines if a PDU should be processed or not.
DtReflectedObjectList & operator=(const DtReflectedObjectList &orig)
assignment operator – not implemented
This file declares DtEntityIdentifierHashKey.
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (...
Definition: reflectedObjectDIS.h:34
Contains the DtMetocPdu class declaration.
void(* DtWaterSurfaceCallbackFunction)(DtReflectedWaterSurface *obj, void *userData)
Definition: reflectedWaterSurfaceDIS.h:25
virtual DtReflectedObject * newReflectedObj(const DtStateMsg &msg)=0
Create a new object from a state message.
virtual void objectAdded(DtReflectedObject *object)
Called after a remote object has been added to the list.
Instances of DtStateMsg are used to represent state data communicated via the network in a DIS (as op...
Definition: stateMsgDIS.h:21
virtual DtReflectedObject * processStateMessage(const DtStateMsg &msg)
Process an incoming state message.
Definition: reflectedWaterSurfaceDIS.h:29

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)