VR-Link API Documentation for DIS
hCommentInter.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 hCommentInter_H_
8 #define hCommentInter_H_
9 
10 #if DtHLA
11 
12 #include "hInterWData.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
15 
16 
17 
21 
24 
25 
27 typedef void (*DtCommentInteractionCb)
28  (DtCommentInteraction* inter, void* usr);
29 
30 
31 
37 class DT_DLL_VL DtCommentInteraction : public DtInteractionWithData
38 {
39 public:
40 
43 
45  virtual ~DtCommentInteraction();
46 
49 
51  DtCommentInteraction& operator=(
52  const DtCommentInteraction& orig);
53 
55  virtual void printData() const;
56 
58  virtual void printDataToStream(std::ostream& stream) const;
59 
61  virtual void setSenderId(const DtEntityIdentifier& id);
62  virtual const DtEntityIdentifier& senderId() const;
63 
65  virtual void setReceiverId(const DtEntityIdentifier& id);
66  virtual const DtEntityIdentifier& receiverId() const;
67 
71  virtual void setComment(const char *message, int size);
72  virtual const char* comment() const;
73 
75  virtual const char* name() const;
76 
77 public:
78 
81  static DtInteraction* create();
82 
85  static void addCallback(DtExerciseConn* conn,
86  DtCommentInteractionCb cb, void* usr,
87  DtDDMRegionSP region = DtDDMRegionSP());
88  static void removeCallback(DtExerciseConn* conn,
89  DtCommentInteractionCb cb, void* usr,
90  DtDDMRegionSP region = DtDDMRegionSP());
91 
92 protected:
93 
94  DtEntityIdentifier myOrigEnt;
95  DtEntityIdentifier myReceiveEnt;
96 };
97 
98 #endif
99 #endif
100 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)