VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simInternalCommunicationInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: simInternalCommunicationInterface.h,v $ $Revision: 1.1 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #ifndef simInternalCommunicationInterface_h
15 #define simInternalCommunicationInterface_h
16 
19 
20 class DtVrfObject;
21 
30 {
31 private:
38 
39 public:
41  static DtSimInternalCommunicationInterface* create(DtVrfObject* vrfObj);
42 
43 protected:
47  virtual bool init();
48 
49 public:
51 
54  virtual void sendMessage(DtVrfObjectMessage* message);
55 
58 
59  virtual void addMessageCallback(DtVrfObjectMessageCallbackFcn fcn, void* usr);
60  virtual void removeMessageCallback(DtVrfObjectMessageCallbackFcn fcn, void* usr);
62 
65 
66  virtual void addMessageCallback(int type, DtVrfObjectMessageCallbackFcn fcn, void* usr);
67  virtual void removeMessageCallback(int type, DtVrfObjectMessageCallbackFcn fcn, void* usr);
69 
73  virtual void receiveMessage(const DtVrfObjectMessage* message);
74 
76  virtual DtVrfObject* vrfObject();
77 
78 protected:
81 };
82 
83 #endif
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
The handler for all SimInternal messages that are sent to and from a specified DtVrfObject.
Definition: simInternalCommunicationInterface.h:29
Callback manager for DtVrfObjectMessage receipt.
Definition: vrfObjectMessageExecutive.h:26
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
The base class for all messages to/from a specific DtVrfObject.
Definition: vrfObjectMessage.h:30
void(* DtVrfObjectMessageCallbackFcn)(const DtVrfObjectMessage *msg, void *usr)
This class is a convenience object for callback functions on DtVrfObjectMessages particularly those d...
Definition: vrfObjectMessageTypeCallbackMap.h:29
DtVrfObject * myVrfObject
Definition: simInternalCommunicationInterface.h:79
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
DtVrfObjectMessageExecutive myMessageExecutive
Definition: simInternalCommunicationInterface.h:80

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)