VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pathCostEntry.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwReal.h>
13 #include <readerWriter/rwString.h>
16 
18 {
19 public:
20 
23 
26  parentRegistry = NULL);
28  parentRegistry = NULL);
29 
31  virtual ~DtPathCostEntry() override;
32 
34  DtPathCostEntry(const DtString& name, const DtPathCostEntry& orig,
35  DtReaderWriterRegistry* parentRegistry = NULL);
36  DtPathCostEntry(const DtSymbolString& name, const DtPathCostEntry& orig,
37  DtReaderWriterRegistry* parentRegistry = NULL);
38 
41 
43 
44  virtual DtString soilName() const;
45  virtual void setSoilName(const DtString& v);
47 
48  virtual DtString semanticTag() const;
49  virtual void setSemanticTag(const DtString& v);
50 
52 
53  virtual double pathCost() const;
54  virtual void setPathCost(double v);
56 
57  bool operator==(const DtPathCostEntry&) const;
58  bool operator!=(const DtPathCostEntry& rhs) const { return !(*this == rhs); };
59 
63  virtual const char* readerWriterType() const override;
64 
66  static const char* theXmlType();
67 
68  virtual const char* xmlType() const override {
69  return theXmlType();
70  }
71 
72 protected:
73 
77 
82 
86 
93 
95 };
96 
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
virtual const char * xmlType() const override
Definition: pathCostEntry.h:68
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
DtRwTemplatedListPtr< DtPathCostEntry, true > DtPathCostEntryList
A reader-writer list of DtPathCostEntry objects.
Definition: pathCostEntry.h:98
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwString mySemanticTag
Parameter Name: semantic-tag Parameter Description: The name of a semantic tag used during navigation...
Definition: pathCostEntry.h:85
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
bool operator!=(const DtPathCostEntry &rhs) const
Definition: pathCostEntry.h:58
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal myPathCost
Parameter Name: path-cost Parameter Description: The cost function used when crossing terrain of this...
Definition: pathCostEntry.h:92
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Definition: pathCostEntry.h:17
DtRwString mySoilName
Parameter Name: soil-name Parameter Description: The name of a soil type. Strings usable in the surfC...
Definition: pathCostEntry.h:81

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)