VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
linearObjectTransaction.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 
7 #ifndef hLinObjTrans_H
8 #define hLinObjTrans_H
9 
10 #if DtHLA
11 
13 
16 #include "exhaustSmokeRecord.h"
18 
22 
25 
27 typedef void (*DtLinearObjectTransactionCb)
28  (DtLinearObjectTransaction* inter, void* usr);
29 
48 {
49 public:
50 
51  //default constructor
53 
54  //destructor
55  virtual ~DtLinearObjectTransaction();
56 
57  //copy constructor
59 
60  //assignment operator
62 
64  virtual void printData() const;
65 
67  virtual void printDataToStream(std::ostream& stream) const;
68 
72  virtual bool setNumOfBreachLinearSegments(int newNumber);
73  virtual int numOfBreachLinearSegments() const;
74 
75  virtual bool setBreachLinearSegment(
76  int index, const DtBreachableSegmentRecord& record);
77  virtual bool breachLinearSegment(
78  int index, DtBreachableSegmentRecord& record) const;
79 
83  virtual bool setNumOfBreachObjectSegments(int newNumber);
84  virtual int numOfBreachObjectSegments() const;
85 
86  virtual bool setBreachObjectSegment(
87  int index, const DtLinearSegmentRecord& record);
88  virtual bool breachObjectSegment(
89  int index, DtLinearSegmentRecord& record) const;
90 
91 
95  virtual bool setNumOfExhaustSmokeSegments(int newNumber);
96  virtual int numOfExhaustSmokeSegments() const;
97 
98  virtual bool setExhaustSmokeSegment(
99  int index, const DtExhaustSmokeRecord& record);
100  virtual bool exhaustSmokeSegment(
101  int index, DtExhaustSmokeRecord& record) const;
102 
103 
107  virtual bool setNumOfMinefldLaneMarkSegments(int newNumber);
108  virtual int numOfMinefldLaneMarkSegments() const;
109 
110  virtual bool setMinefldLaneMarkSegment(
111  int index, const DtMinefieldLaneMarkerRecord& record);
112  virtual bool minefldLaneMarkSegment(
113  int index, DtMinefieldLaneMarkerRecord& record) const;
114 
116  virtual const char* name() const;
117 
118 public:
119 
122  static DtInteraction* create();
123 
126  static void addCallback(DtExerciseConn* conn,
127  DtLinearObjectTransactionCb cb, void* usr,
128  DtDDMRegionSP region = DtDDMRegionSP());
129  static void removeCallback(DtExerciseConn* conn,
130  DtLinearObjectTransactionCb cb, void* usr,
131  DtDDMRegionSP region = DtDDMRegionSP());
132 
133 protected:
136 
139 
142 
145 
146 };
147 
148 #endif
149 #endif
150 
DtInteraction is an abstract base class for representing HLA interactions (or events) (as opposed to ...
Definition: interactionHLA.h:33
class DtEnvironmentObjectTransaction:
Definition: environmentObjectTransaction.h:33
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:60
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
static DtInteraction * create()
Create a DtEnvironmentObjectTransaction.
void(* DtLinearObjectTransactionCb)(DtLinearObjectTransaction *inter, void *usr)
DtLinearObjectTransaction callback function signature.
Definition: linearObjectTransaction.h:28
Contains the DtBreachableSegmentRecord class declaration.
This file provides a declaration of the class DtEnvironmentObjectTransaction.
Instances of DtLinearSegmentRecord are used to implement the LinearSegmentStruct defined in the RPR F...
Definition: linearSegmentRecord.h:19
int myNumOfMinefldLaneMarkSegments
Definition: linearObjectTransaction.h:143
DtBreachableSegmentRecord * myBreachLinearSegments
Definition: linearObjectTransaction.h:135
DtMinefieldLaneMarkerRecord * myMinefldLaneMarkSegments
Definition: linearObjectTransaction.h:144
DtExhaustSmokeRecord * myExhaustSmokeSegments
Definition: linearObjectTransaction.h:141
int myNumOfExhaustSmokeSegments
Definition: linearObjectTransaction.h:140
static void removeCallback(DtExerciseConn *conn, DtEnvironmentObjectTransactionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
Instances of DtMinefieldLaneMarkerRecord implement the MinefieldLaneMarkerStruct used to implement th...
Definition: minefieldLaneMarkerRecord.h:18
DtEnvironmentObjectTransaction & operator=(const DtEnvironmentObjectTransaction &orig)
assignment operator
class DtLinearObjectTransaction
Definition: linearObjectTransaction.h:47
Instances of DtBreachableSegmentRecord implement the BreachableSegmentStruct used to implement the Br...
Definition: breachableSegmentRecord.h:17
Contains the DtExhaustSmokeRecord class declaration.
DtBoost::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
static void addCallback(DtExerciseConn *conn, DtEnvironmentObjectTransactionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
Add (register)/Remove (deregister) function to be called when interaction occurs. ...
int myNumOfBreachObjectSegments
Definition: linearObjectTransaction.h:137
int myNumOfBreachLinearSegments
Definition: linearObjectTransaction.h:134
Instances of DtExhaustSmokeRecord implement the ExhaustSmokeStruct used to implement the Exhaust Smok...
Definition: exhaustSmokeRecord.h:17
virtual void printDataToStream(std::ostream &stream) const
Print the interaction&#39;s data to the specified stream.
virtual void printData() const
Print the interaction&#39;s data to DtInfo.
DtLinearSegmentRecord * myBreachObjectSegments
Definition: linearObjectTransaction.h:138
virtual const char * name() const
Name of the interaction. (Not necessarily the ClassName from the FOM.)

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)