VR-Forces 5.0.1 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();
38 
41  virtual const char* type() const;
42 
43 private:
46 
49 
50 
51 public:
52 
53 protected:
54 
59  virtual bool calculateStoppingDistance(
60  const DtObstructionSensorDescriptor& obstructionSensorDesc,
61  double& stoppingDistance);
62 
63 public:
67  static DtSimComponent * creator(const DtString& name,
68  DtLocalObject* owner,
69  DtSimulationServices* simManager,
70  DtComponentDescriptor* desc = 0,
71  DtReaderWriterRegistry* parentRegistry = 0);
72 
73  //Checks value of suspend port.
74  virtual void tick();
75 
80  virtual bool createPorts();
81 
82 protected:
86 };
#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 const char * type() const
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:85
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:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
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...
virtual void tick()
Determines if the entity is currently colliding with any of the specified potential Obstructions...
DtObstructionSensor models a sensor able to detect potential collisions with other entities and/or te...
Definition: obstructionSensor.h:34
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
virtual bool createPorts()
Creates, initializes, and adds to the port group, all the ports for this component.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)