VR-Forces 4.10 Class Documentation
 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 
14 
16 class DtOutputPortGroup;
19 
21 {
22 private:
25 
28 
31  const DtTerrainProximityIndicator& orig);
32 
33 public:
34 
38  DtVrfObject* owner,
39  DtSimManager* simManager,
40  DtComponentDescriptor* desc = 0,
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
43  virtual ~DtTerrainProximityIndicator();
44 
45  virtual bool init();
46 
47  virtual void preFirstTickInit();
48  virtual void tick();
49 
52  virtual const char* type() const;
53 
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 checkTerrainProximity();
64 
66  virtual bool createPorts();
67 
69  virtual bool createPortGroups();
70 
71 protected:
72 
74 
75 
82 
86 
88 
91 
94 };
#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
Description: This repository holds all information that is common to all the forms of all objects wit...
Definition: vrfMovingObjectStateRepository.h:29
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:20
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
DtOutputPortGroup is a data port group of a data provider.
Definition: outputPortGroup.h:30
virtual bool init()
Calls createPorts and createPortGroups Initializes myLastTickSimTime.
DtBooleanOutputPort * myTerrainProximityOutputPort
Output Port Name: terrain-proximity Output Port Description: True if terrain is near.
Definition: terrainProximityIndicator.h:81
DtVrfMovingObjectStateRepository * pMyMovingObjectState
type cast
Definition: terrainProximityIndicator.h:90
DtTerrainProximityIndicatorDescriptor * pMyTerrainProximityDescriptor
type cast
Definition: terrainProximityIndicator.h:93
virtual void tick()
This gives the thread of control to the component.
DtSimComponent & operator=(const DtSimComponent &orig)
assignment operator, not implemented
virtual bool createPorts()
Called by init.
DtOutputPortGroup * myTerrainProximityPortGroup
Output Port Group Name: terrain-proximity-group Output Port Group Description:
Definition: terrainProximityIndicator.h:85
virtual bool createPortGroups()
Called by init.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
virtual const char * type() const =0
Returns a string identifies the class type of component.

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)