VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
navigationPreferenceDescriptor.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 
16 #include <readerWriter/rwString.h>
17 #include <readerWriter/rwReal.h>
18 
20 
24 {
25 public:
27  DtNavigationPreferenceDescriptor(const DtString& componentName,
28  DtReaderWriterRegistry* parentRegistry = 0);
29 
32  DtReaderWriterRegistry* parentRegistry = 0);
33 
34  virtual ~DtNavigationPreferenceDescriptor() override;
35 
39 
42  virtual DtString type() const override;
43 
44  virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
45 
48 
49  virtual DtRwNavigationPreferenceList& navigationPreferencesMap();
50  virtual const DtRwNavigationPreferenceList& navigationPreferencesMap() const;
51 
53 
54  virtual DtPathCostEntryList* pathCosts(const DtString& preference);
56 
58 
59  virtual DtString defaultPreference() const;
60  virtual void setDefaultPreference(const DtString& preference);
62 
64 
65  virtual double slopeAvoidanceFactor() const;
66  virtual void setSlopeAvoidanceFactor(double factor);
68 
70 
71  virtual double minElevationChangeToConsiderSlope() const;
72  virtual void setMinElevationChangeToConsiderSlope(double d);
74 
76 
77  double defaultPathCost() const;
78  void setDefaultPathCost(double d);
80 
81 protected:
84 
85 protected:
88 
89 
98 
103 
104 
105 
110 
133 
134 
135 
141 
142 };
DtRwReal mySlopeAvoidanceFactor
Parameter Name: slope-avoidance-factor Parameter Description: Determines how much slope is taken into...
Definition: navigationPreferenceDescriptor.h:132
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwNavigationPreferenceList myNavigationPreferencesMap
Parameter Name: navigation-preferences-map Parameter Description: Mapping a preference type to path c...
Definition: navigationPreferenceDescriptor.h:102
DtNavigationPreferenceDescriptor; descriptor for the DtNavigationPreferenceController component...
Definition: navigationPreferenceDescriptor.h:23
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
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
class DtRwNavigationPreferenceList:
Definition: rwNavigationPreferenceList.h:81
DtRwReal myMinElevationChangeToConsiderSlope
Parameter Name: min-elevation-change-to-consider-slope Parameter Description: Determines how much a t...
Definition: navigationPreferenceDescriptor.h:140
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
DtRwReal myDefaultPathCost
Parameter Name: default-path-cost Parameter Description: Sets the default path cost for unassigned or...
Definition: navigationPreferenceDescriptor.h:97
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...
static DtComponentDescriptor * creator()
DtRwString myDefaultPreference
Parameter Name: default-preference Parameter Description: Initial Road Preference. Value should be one of : avoid - roads, prefer - roads, ignore - roads.
Definition: navigationPreferenceDescriptor.h:109

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)