VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
contactFusionController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 
21 
35 {
36 private:
43  const DtContactFusionController& orig);
44 public:
45 
48  DtContactFusionController(const DtString& name, DtVrfObject* owner,
49  DtSimManager* simManager, DtComponentDescriptor* desc=0,
50  DtReaderWriterRegistry *parentRegistry=0);
51 
53  virtual ~DtContactFusionController();
54 
57  virtual bool init();
58 
61  virtual const char* type() const;
62 
66  virtual void tick();
67 
71  static DtSimComponent * creator(const DtString& name,
72  DtVrfObject* owner,
73  DtSimManager* simManager,
74  DtComponentDescriptor* desc = 0,
75  DtReaderWriterRegistry* parentRegistry = 0);
76 
77 protected:
79  virtual bool createPorts();
80 
85  virtual void fuseSensorContacts();
86 
89  virtual void updateContactInfo(DtRwSensorContactInfo * entry, const DtRwSensorContactInfo * incomingInfo);
90 
93  virtual void checkAndUpdateForceHostility(DtRwSensorContactInfo*) const;
94 
95 protected:
96 
105 
106 
115 
122 };
123 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
A multi-connection input port whose data members are sensor contact lists.
Definition: sensorContactListIOPort.h:46
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
DtContactFusionController populates the objectContactList in the DtVrfObjectStateRepository by gather...
Definition: contactFusionController.h:34
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
Definition: sensorContactListIOPort.h:71
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:67
virtual bool init()
Calls setRadio()
A reader-writer list of DtRwSensorContactInfo elements.
Definition: sensorContactInfoList.h:30
virtual void tick()
This gives the thread of control to the component.
virtual bool createPorts()
Called by init.
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:29
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtSensorContactInfoList * myFusedContactsList
This holds the fused list of sensor contacts.
Definition: contactFusionController.h:121
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtSensorContactListMultiInputPort * myDetectedObjectsInputPort
Input Port Name: detected-objects Input Port Description: List of contacts to send spot reports for...
Definition: contactFusionController.h:113

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)