VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
arealObjectTransaction.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 arealObjectTransaction_H_
8 #define arealObjectTransaction_H_
9 
10 #if DtHLA
11 
12 
14 #include "hostStructs.h"
16 
20 
21 class DT_DLL_VL DtArealObjectTransaction;
23 
24 
25 
27 typedef void (*DtArealObjectTransactionCb)
28  (DtArealObjectTransaction* inter, void* usr);
29 
34 
35 class DT_DLL_VL DtArealObjectTransaction : public DtEnvironmentObjectTransaction
36 {
37 public:
38 
40  DtArealObjectTransaction();
41 
43  virtual ~DtArealObjectTransaction();
44 
46  DtArealObjectTransaction(const DtArealObjectTransaction& orig);
47 
49  DtArealObjectTransaction& operator=(
50  const DtArealObjectTransaction& orig);
51 
53  virtual void printData() const;
54 
56  virtual void printDataToStream(std::ostream& stream) const;
57 
59  virtual bool setNumberOfPoints(int value);
60  virtual int numberOfPoints() const;
61 
63  virtual bool setPointsData(int index, const DtVector& point);
64  virtual bool pointsData(int index, DtVector& point) const;
65 
67  virtual void setPercentComplete(const DtU32 value);
68  virtual DtU32 percentComplete() const;
69 
71  virtual void setDamagedAppearance(const DtDamageState value);
72  virtual DtDamageState damagedAppearance() const;
73 
75  virtual void setObjectPreDistributed(bool onOff);
76  virtual bool objectPreDistributed() const;
77 
79  virtual void setDeactivated(bool onOff);
80  virtual bool deactivated() const;
81 
83  virtual void setSmoking(bool onOff);
84  virtual bool smoking() const;
85 
87  virtual void setFlaming(bool onOff);
88  virtual bool flaming() const;
89 
91  virtual const char* name() const;
92 
93 public:
94 
97  static DtInteraction* create();
98 
101  static void addCallback(DtExerciseConn* conn,
102  DtArealObjectTransactionCb cb, void* usr,
103  DtDDMRegionSP region = DtDDMRegionSP());
104  static void removeCallback(DtExerciseConn* conn,
105  DtArealObjectTransactionCb cb, void* usr,
106  DtDDMRegionSP region = DtDDMRegionSP());
107 
108 protected:
109  int myNumberOfPoints;
110  DtVector* myPointsData;
111 
112  DtU32 myPercentComplete;
113  DtDamageState myDamagedAppearance;
114  bool myObjectPreDistributed;
115  bool myDeactivated;
116  bool mySmoking;
117  bool myFlaming;
118 };
119 
120 #endif
121 #endif
122 
123 

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)