VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanObstructionSensor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 \
8 
11 
12 #pragma once
13 
16 
17 class DtBooleanInputPort;
18 
24 {
25 
26 public:
27 
31  DtLocalObject* owner,
32  DtSimulationServices* simManager,
33  DtComponentDescriptor* desc = 0,
34  DtReaderWriterRegistry* parentRegistry = 0);
35 
37  virtual ~DtHumanObstructionSensor() override;
38 
41  virtual const char* type() const override;
42 
43 private:
46 
49 
50 
51 public:
52 
53 protected:
54 
59  virtual bool calculateStoppingDistance(
60  const DtObstructionSensorDescriptor& obstructionSensorDesc, double& stoppingDistance) override;
61 
62 public:
66  static DtSimComponent * creator(const DtString& name,
67  DtLocalObject* owner,
68  DtSimulationServices* simManager,
69  DtComponentDescriptor* desc = 0,
70  DtReaderWriterRegistry* parentRegistry = 0);
71 
72  //Checks value of suspend port.
73  virtual void tick() override;
74 
79  virtual bool createPorts() override;
80 
81 protected:
85 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtHumanObstructionSensor models a sensor able to detect potential collisions with other entities and/...
Definition: humanObstructionSensor.h:23
virtual bool createPorts() override
Creates, initializes, and adds to the port group, all the ports for this component.
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition: readerWriterRegistry.h:39
DtBooleanInputPort * mySuspendInputPort
Input Port Name: suspend Input Port Description: When true, this component will not be ticked...
Definition: humanObstructionSensor.h:84
Contains class declarations for DtBooleanInputPort, DtBooleanOutputPort, and DtBooleanPortData.
Definition: boolIOPort.h:25
DtObstructionSensor & operator=(const DtObstructionSensor &orig)
assignment operator; not implemented
DtObstructionSensorDescriptor is a DtComponentDescriptor that has the name of the DtObstructionSensor...
Definition: obstructionSensorDescriptor.h:39
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
virtual void tick() override
Determines if the entity is currently colliding with any of the specified potential Obstructions...
virtual bool calculateStoppingDistance(const DtObstructionSensorDescriptor &obstructionSensorDesc, double &stoppingDistance)
Calculates the current stopping distance of the entity. To get this, it queries the ground auto contr...
DtObstructionSensor models a sensor able to detect potential collisions with other entities and/or te...
Definition: obstructionSensor.h:34
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)