VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
eventTriggerController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 
18 class DtSimManager;
22 
24 {
25 
26 public:
27 
31  DtVrfObject* owner,
32  DtSimManager* simManager,
33  DtComponentDescriptor* desc = 0,
34  DtReaderWriterRegistry* parentRegistry = 0);
35 
37  virtual ~DtEventTriggerController();
38 
41  virtual const char* type() const;
42 
46  virtual bool postAddComponentsInit();
47 
49  virtual void tick();
50 
54  static DtSimComponent * creator(const DtString& name,
55  DtVrfObject* owner,
56  DtSimManager* simManager,
57  DtComponentDescriptor* desc = 0,
58  DtReaderWriterRegistry* parentRegistry = 0);
59 
60 protected:
61 
63  virtual bool createPorts();
64 
65  virtual bool createTypesToDetectPort();
66 
68  virtual bool triggerEvent(const DtRwSensorContactInfo*);
69 
70 protected:
73 
76 
79  orig);
80 
81 protected:
82 
84 
86 
94 
102 
104 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool postAddComponentsInit()
Called after all components have been created, initialized and added to the component manager...
Definition: simComponent.h:146
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
Definition: eventTriggerController.h:23
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
const DtEventTriggerControllerDescriptor * myEventTriggerDescriptor
Definition: eventTriggerController.h:103
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
DtObjectTypesListOutputPort * myTypesToDetectOutputPort
Output Port Name: object-types-to-detect Output Port Description: List of types of object the spot re...
Definition: eventTriggerController.h:93
virtual void tick()
This gives the thread of control to the component.
DtEventTriggerControllerDescriptor; descriptor for the DtEventTriggerController component.
Definition: eventTriggerControllerDescriptor.h:28
Instances of DtObjectTypesListOutputPort are output ports through which data producers can send a lis...
Definition: objectTypesListIOPort.h:46
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
DtSensorContactListMultiInputPort * myDetectedObjectsInputPort
Input Port Name: detected-objects Input Port Description: List of contacts that fall within our range...
Definition: eventTriggerController.h:101
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)