VR-Forces 5.0.3 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();
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  DtLocalObject* owner,
56  DtSimulationServices* 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
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
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
Definition: readerWriterRegistry.h:39
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:68
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. The component is ticked once each simulation from ...
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. 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:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
DtSensorContactListMultiInputPort * myDetectedObjectsInputPort
Input Port Name: detected-objects Input Port Description: List of contacts that fall within our range...
Definition: eventTriggerController.h:101
virtual bool postAddComponentsInit()
Calls enableTaskTypes()
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)