VR-Forces 5.0.3 Developer's Guide
 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 #pragma once
7 
10 
11 class DtLocalObject;
12 
21 {
22 private:
29 
30 public:
32  static DtSimInternalCommunicationInterface* create(DtLocalObject* vrfObj);
33 
34 protected:
38  virtual bool init();
39 
40 public:
42 
45  virtual void sendMessage(DtVrfObjectMessage* message);
46 
49 
50  virtual void addMessageCallback(DtVrfObjectMessageCallbackFcn fcn, void* usr);
51  virtual void removeMessageCallback(DtVrfObjectMessageCallbackFcn fcn, void* usr);
53 
56 
57  virtual void addMessageCallback(int type, DtVrfObjectMessageCallbackFcn fcn, void* usr);
58  virtual void removeMessageCallback(int type, DtVrfObjectMessageCallbackFcn fcn, void* usr);
60 
64  virtual void receiveMessage(const DtVrfObjectMessage* message);
65 
67  virtual DtLocalObject* vrfObject();
68 
69 protected:
72 };
The handler for all SimInternal messages that are sent to and from a specified DtLocalObject. This class is the central interface of a DtLocalObject to the SimInternal message system of inter-VrfObject communication. Callbacks can be registered for message receipt and messages can be sent. Normally, components on an entity will register with 3CommunicationInterface instead of with this object directly.
Definition: simInternalCommunicationInterface.h:20
Callback manager for DtVrfObjectMessage receipt. Callbacks can be registered on various attributes of...
Definition: vrfObjectMessageExecutive.h:26
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtLocalObject * myVrfObject
Definition: simInternalCommunicationInterface.h:70
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
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
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
DtVrfObjectMessageExecutive myMessageExecutive
Definition: simInternalCommunicationInterface.h:71
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)