VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
terrainProximityIndicator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 VT MAK
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
15 
17 class DtOutputPortGroup;
20 
22 {
23 private:
26 
29 
32  const DtTerrainProximityIndicator& orig);
33 
34 public:
35 
39  DtLocalObject* owner,
40  DtSimulationServices* simManager,
41  DtComponentDescriptor* desc = 0,
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
44  virtual ~DtTerrainProximityIndicator() override;
45 
46  virtual bool init() override;
47 
48  virtual void preFirstTickInit() override;
49  virtual void tick() override;
50 
53  virtual const char* type() const override;
54 
55  static DtSimComponent* creator(const DtString& name,
56  DtLocalObject* owner,
57  DtSimulationServices* simManager,
58  DtComponentDescriptor* desc = 0,
59  DtReaderWriterRegistry* parentRegistry = 0);
60 
61 protected:
62 
64  virtual bool checkTerrainProximity();
65 
67  virtual bool createPorts() override;
68 
70  virtual bool createPortGroups() override;
71 
72 protected:
73 
75 
76 
83 
87 
89 
92 
96 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Description: This repository holds all information that is common to all the forms of all objects wit...
Definition: vrfMovingObjectStateRepository.h:31
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
Instances of DtTerrainProximityIndicatorDescriptor are used to specify the parameters for a DtTerrain...
Definition: terrainProximityIndicatorDescriptor.h:19
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
Definition: terrainProximityIndicator.h:21
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
DtOutputPortGroup is a data port group of a data provider. It may contain any number of DtOutputPorts...
Definition: outputPortGroup.h:34
virtual bool init()
Calls createPorts and createPortGroups Initializes myLastTickSimTime.
DtBooleanOutputPort * myTerrainProximityOutputPort
Output Port Name: terrain-proximity Output Port Description: True if terrain is near. Output Port Range: true or false. Output Port Default Value: false Output Group Parent: terrain-proximity-group.
Definition: terrainProximityIndicator.h:82
DtVrfMovingObjectStateRepository * pMyMovingObjectState
type cast
Definition: terrainProximityIndicator.h:91
DtTerrainProximityIndicatorDescriptor * pMyTerrainProximityDescriptor
type cast
Definition: terrainProximityIndicator.h:94
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtSimComponent & operator=(const DtSimComponent &orig)
assignment operator, not implemented
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
DtOutputPortGroup * myTerrainProximityPortGroup
Output Port Group Name: terrain-proximity-group Output Port Group Description:
Definition: terrainProximityIndicator.h:86
virtual bool createPortGroups()
Called by init. Derived classes should override this method to create all their input/output port gro...
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
Contains the DtSimComponent class declaration.
DtMovementLocalObjectFacade myMovementLocalObjectFacade
Definition: terrainProximityIndicator.h:95
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
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)