VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
obstructionSensorDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: obstructionSensorDesc.h,v $ $Revision: 1.9 $ $State: Exp $
7 *******************************************************************************/
8 
11 
14 
15 #ifndef DtObstructionSensorDescriptor_H_
16 #define DtObstructionSensorDescriptor_H_
17 
19 #include <readerWriter/rwReal.h>
21 #include <vrfutil/rwEntityType.h>
24 #include "vrfutil/rwStringList.h"
25 #include <readerWriter/rwBoolean.h>
26 
27 #include <list>
28 
30 
40 {
41 public:
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
48  DtReaderWriterRegistry* parentRegistry = 0);
49 
52  const DtObstructionSensorDescriptor & orig);
53 
55  virtual ~DtObstructionSensorDescriptor() override;
56 
59  virtual DtString type() const override;
60 
63  virtual void setStoppingDistanceFactor(DtReal distance);
64  virtual DtReal stoppingDistanceFactor() const;
66 
69  virtual void setLateralClearance(DtReal distance);
70  virtual DtReal lateralClearance() const;
72 
75  virtual void setObjectTypes(const DtRwEntityTypeList& objectTypes);
76  virtual DtRwEntityTypeList& objectTypes();
77  virtual const DtRwEntityTypeList& objectTypes() const;
79 
82  virtual void setFeatureTypesToAvoid(const DtRwStringList& featureTypesToAvoid);
83  virtual DtRwStringList& featureTypesToAvoid();
84  virtual const DtRwStringList& featureTypesToAvoid() const;
86 
89  virtual void setCheckObstructionsIfEmbarked(bool);
90  virtual bool checkObstructionsIfEmbarked() const;
92 
94  virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
95 
98 
99 protected:
102 
103 protected:
105 
109 
116 
123 
129 
134 
139 
141 };
142 
143 #endif
144 
145 
146 
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwEntityTypeList myObjectTypes
Parameter Name: object-types Parameter Description: Object types to treat as potential obstructions...
Definition: obstructionSensorDescriptor.h:133
class DtRwEntityTypeList:
Definition: rwEntityTypeList.h:23
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
DtRwReal myLateralClearance
Parameter Name: lateral-clearance Parameter Description: Width added to the length of the bounding vo...
Definition: obstructionSensorDescriptor.h:115
DtRwStringList myFeatureTypesToAvoid
Parameter Name: feature-types-to-avoid Parameter Description: Types of features to avoid Parameter De...
Definition: obstructionSensorDescriptor.h:138
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...
DtRwBoolean myCheckObstructionsIfEmbarked
Parameter Name: check-obstructions-if-embarked Parameter Description: Flag indicating whether or not ...
Definition: obstructionSensorDescriptor.h:128
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
DtObstructionSensorDescriptor is a DtComponentDescriptor that has the name of the DtObstructionSensor...
Definition: obstructionSensorDescriptor.h:39
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()
Definition: rwStringList.h:20
DtRwReal myStoppingDistanceFactor
Parameter Name: stopping-distance-factor Parameter Description: Factor by which the collision avoidan...
Definition: obstructionSensorDescriptor.h:122

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)