VR-Forces 4.10 Class Documentation
 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  DtVrfObject* owner,
32  DtSimManager* 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  DtVrfObject* owner,
69  DtSimManager* 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
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual const char * type() const
Returns a string identifies the class type of component.
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
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
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
virtual bool calculateStoppingDistance(const DtObstructionSensorDescriptor &obstructionSensorDesc, double &stoppingDistance)
Calculates the current stopping distance of the entity.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
virtual void tick()
Determines if the entity is currently colliding with any of the specified potential Obstructions...
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtObstructionSensor models a sensor able to detect potential collisions with other entities and/or te...
Definition: obstructionSensor.h:36
virtual bool createPorts()
Creates, initializes, and adds to the port group, all the ports for this 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)