VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanFleeControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 #include <readerWriter/rwReal.h>
16 #include <readerWriter/rwBoolean.h>
17 
21 {
22 public:
24  DtHumanFleeControllerDescriptor(const DtString& componentName,
25  DtReaderWriterRegistry* parentRegistry = 0);
26 
29  DtReaderWriterRegistry* parentRegistry = 0);
30 
32 
35  const DtHumanFleeControllerDescriptor & orig);
36 
39  virtual DtString type() const;
40 
42  DtReaderWriterRegistry* parentRegistry = 0) const;
43 
46 
49  virtual double angleBetweenPoints() const;
50  virtual void setAngleBetweenPoints(double angle);
52 
55  virtual double fleeFromThreshold() const;
56  virtual void setFleeFromThreshold(double threshold);
58 
61  virtual bool showFleePoint() const;
62  virtual void setShowFleePoint(bool);
63 
66  virtual double atDistance() const;
67  virtual void setAtDistance(double distance);
69 
72  virtual bool allowToFleePastFleePoint() const;
73  virtual void setAllowToFleePastFleePoint(bool);
75 
78  virtual double fleeCone() const;
79  virtual void setFleeCone(double);
81 
84  virtual double reevaluatePeriod() const;
85  virtual void setReevaluatePeriod(double v);
87 
90  virtual double reevaluatePeriodVariance() const;
91  virtual void setReevaluatePeriodVariance(double v);
93 
94 protected:
97 
98 protected:
101 
102 
109 
116 
123 
129 
135 
143 
150 
158 };
DtRwBoolean myShowFleePoint
Parameter Name: show-flee-point Parameter Description: Whether or not to show calculated flee point P...
Definition: humanFleeControllerDescriptor.h:128
DtRwReal myReevaluatePeriodVariance
Parameter Name: reevaluate-period-variance Parameter Description: In order to prevent a crowd of enti...
Definition: humanFleeControllerDescriptor.h:156
DtRwReal myFleeFromThreshold
Parameter Name: flee-from-threshold Parameter Description: When the object from which we are fleeing ...
Definition: humanFleeControllerDescriptor.h:115
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
DtRwReal myAngleBetweenPoints
Parameter Name: angle-between-points Parameter Description: Specifies the distance between the angles...
Definition: humanFleeControllerDescriptor.h:108
DtRwReal myReevaluatePeriod
Parameter Name: reevaluate-period Parameter Description: The time period for reevaluating a flee poin...
Definition: humanFleeControllerDescriptor.h:149
Definition: readerWriterRegistry.h:39
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
DtRwReal myAtDistance
Parameter Name: at-distance Parameter Description: Maximum distance from goal entity is considered to...
Definition: humanFleeControllerDescriptor.h:122
DtRwReal myFleeCone
Parameter Name: flee-cone Parameter Description: The wedge, in degrees, the flee heading can be off o...
Definition: humanFleeControllerDescriptor.h:142
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
DtHumanFleeControllerDescriptor; descriptor for the DtHumanFleeController component.
Definition: humanFleeControllerDescriptor.h:20
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtString type() const
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
static DtComponentDescriptor * creator()
DtRwBoolean myAllowToFleePastFleePoint
Parameter Name: allow-to-flee-past-flee-point Parameter Description: Whether or not the object can tr...
Definition: humanFleeControllerDescriptor.h:134

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)