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 
35 
39 
42  virtual DtString type() const;
43 
45  DtReaderWriterRegistry* parentRegistry = 0) const;
46 
49 
50  virtual DtRwNavigationPreferenceList& navigationPreferencesMap();
51  virtual const DtRwNavigationPreferenceList& navigationPreferencesMap() const;
52 
54 
55  virtual DtPathCostEntryList* pathCosts(const DtString& preference);
57 
59 
60  virtual DtString defaultPreference() const;
61  virtual void setDefaultPreference(const DtString& preference);
63 
65 
66  virtual double slopeAvoidanceFactor() const;
67  virtual void setSlopeAvoidanceFactor(double factor);
69 
71 
72  virtual double minElevationChangeToConsiderSlope() const;
73  virtual void setMinElevationChangeToConsiderSlope(double d);
75 
77 
78  double defaultPathCost() const;
79  void setDefaultPathCost(double d);
81 
82 protected:
85 
86 protected:
89 
90 
99 
104 
105 
106 
111 
134 
135 
136 
142 
143 };
DtRwReal mySlopeAvoidanceFactor
Parameter Name: slope-avoidance-factor Parameter Description: Determines how much slope is taken into...
Definition: navigationPreferenceDescriptor.h:133
#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:103
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:66
DtRwReal myMinElevationChangeToConsiderSlope
Parameter Name: min-elevation-change-to-consider-slope Parameter Description: Determines how much a t...
Definition: navigationPreferenceDescriptor.h:141
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:98
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:110

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)