VR-Forces Developer's Guide
 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 
22 
24 {
25 
26 public:
27 
31  DtLocalObject* owner,
32  DtSimulationServices* simManager,
33  DtComponentDescriptor* desc = 0,
34  DtReaderWriterRegistry* parentRegistry = 0);
35 
37  virtual ~DtEventTriggerController() override;
38 
41  virtual const char* type() const override;
42 
46  virtual bool postAddComponentsInit() override;
47 
49  virtual void tick() override;
50 
54  static DtSimComponent * creator(const DtString& name,
55  DtLocalObject* owner,
56  DtSimulationServices* simManager,
57  DtComponentDescriptor* desc = 0,
58  DtReaderWriterRegistry* parentRegistry = 0);
59 
60 protected:
61 
63  virtual bool createPorts() override;
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
A multi-connection input port whose data members are sensor contact lists.
Definition: sensorContactListIOPort.h:46
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
virtual bool postAddComponentsInit() override
Calls enableTaskTypes()
Definition: eventTriggerController.h:23
DtEntityTypesListOutputPort * myTypesToDetectOutputPort
Output Port Name: object-types-to-detect Output Port Description: List of types of object the spot re...
Definition: eventTriggerController.h:93
const DtEventTriggerControllerDescriptor * myEventTriggerDescriptor
Output Port Name: object-types-to-detect Output Port Description: List of types of object the spot re...
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:49
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
Definition: readerWriterRegistry.h:39
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:68
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtEventTriggerControllerDescriptor; descriptor for the DtEventTriggerController component.
Definition: eventTriggerControllerDescriptor.h:28
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
DtSensorContactListMultiInputPort * myDetectedObjectsInputPort
Input Port Name: detected-objects Input Port Description: List of contacts that fall within our range...
Definition: eventTriggerController.h:101
Instances of DtEntityTypesListOutputPort are output ports through which data producers can send a lis...
Definition: objectTypesListIOPort.h:46
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)