50 virtual void setGeometryType(GeometryType geomType);
51 virtual GeometryType geometryType()
const;
57 virtual void setCenterOfCircle(
const DtVector& location);
58 virtual DtVector centerOfCircle()
const;
64 virtual void setRadiusOfCircle(
double radius);
65 virtual double radiusOfCircle()
const;
71 virtual void setVerticesOfPolygon(
const DtRwVectorList& locations);
73 virtual void addVertexToPolygon(
const DtVector& location);
78 virtual void setChanges(
const std::map<DtString, DtString>& changes);
81 virtual void addChange(
const DtString& changeType,
const DtString& changeVal);
91 virtual bool setFromNet(
const char* contentBuffer,
unsigned contentSize)
override;
104 template<
class CommandType>
107 return new CommandType();
161 virtual void setChangesToReset(
const std::vector<DtString>& changes);
162 virtual std::vector<DtString> changesToReset()
const;
163 virtual void addChangeToReset(
const DtString& changeType);
DtRwKeyValueList myChanges
Definition: dynamicTerrainCommand.h:101
DtRwReal myRadiusOfCircle
Definition: dynamicTerrainCommand.h:99
virtual const DtSimCommandMessageType & type() const override
Definition: dynamicTerrainCommand.h:154
Base class for any DtSimCommand which causes dynamic terrain changes to be added or removed...
Definition: dynamicTerrainCommand.h:20
DtRemoveDynamicTerrainDamageCommand(const DtString &writeName, const DtRemoveDynamicTerrainDamageCommand &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: dynamicTerrainCommand.h:203
Class which holds a list of string key and string value pairs. This class is a DtReaderWriter, and also has associated DtBufferSerialize methods available.
Definition: rwKeyValueList.h:21
DtRwInt myGeometryType
Definition: dynamicTerrainCommand.h:97
DtRemoveDynamicTerrainDamageCommand()
Definition: dynamicTerrainCommand.h:197
DtRwVectorList myVerticesOfPolygon
Definition: dynamicTerrainCommand.h:100
DtSimCommand which causes a specific list of dynamic terrain changes to take place at the specified g...
Definition: dynamicTerrainCommand.h:113
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
DtAddDynamicTerrainChangesCommand(const DtString &writeName, const DtAddDynamicTerrainChangesCommand &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: dynamicTerrainCommand.h:123
virtual const DtSimCommandMessageType & type() const override
Definition: dynamicTerrainCommand.h:209
Changes within radius of point.
Definition: dynamicTerrainCommand.h:27
const DtSimCommandMessageType DtResetDynamicTerrainChangesCommandType("reset-dynamic-terrain-changes-command")
virtual DtString stringRep() const =0
Returns a human-readable string representation of the command. This string representation is used to ...
DtResetAllDynamicTerrainChangesCommand()
Definition: dynamicTerrainCommand.h:173
Definition: readerWriterRegistry.h:39
DtAddDynamicTerrainChangesCommand()
Definition: dynamicTerrainCommand.h:117
virtual ~DtResetAllDynamicTerrainChangesCommand() override
Definition: dynamicTerrainCommand.h:183
Definition: rwVector.h:23
virtual const DtSimCommandMessageType & type() const override
Definition: dynamicTerrainCommand.h:185
const DtSimCommandMessageType DtAddDynamicTerrainChangesCommandType("add-dynamic-terrain-changes-command")
Definition: dynamicTerrainCommand.h:26
const DtSimCommandMessageType DtResetAllDynamicTerrainChangesCommandType("reset-all-dynamic-terrain-changes-command")
const DtSimCommandMessageType DtRemoveDynamicTerrainDamageCommandType("remove-dynamic-terrain-damage-command")
virtual DtSimCommand * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const override
Make a copy of this sim command. Returns a newly allocated instance of a DtSimCommand. Override this member function to return a pointer to a newly allocated instance of the derived class.
Definition: dynamicTerrainCommand.h:211
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class. This is the size in bytes of th...
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubsimCommand member from the incoming contentBuffer (cast to type DtNetSimSimCommand). Derived classes should call down to this function first, and then extract their own data starting at the location contentBuffer + DtSimCommand::netRepSize().
Description: Readable, Writable int.
Definition: rwInt.h:25
DtAddDynamicTerrainChangesCommand(const DtString &writeName, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: dynamicTerrainCommand.h:119
virtual const DtSimCommandMessageType & type() const override
Definition: dynamicTerrainCommand.h:129
DtRemoveDynamicTerrainDamageCommand(const DtString &writeName, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: dynamicTerrainCommand.h:199
const DtSimCommand & operator=(const DtSimCommand &orig)
assignment operator; same as copy constructor
virtual DtSimCommand * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const override
Make a copy of this sim command. Returns a newly allocated instance of a DtSimCommand. Override this member function to return a pointer to a newly allocated instance of the derived class.
Definition: dynamicTerrainCommand.h:187
DtSimCommand * dynamicTerrainCommandCreator()
Definition: dynamicTerrainCommand.h:105
DtRwVector myCenterOfCircle
Definition: dynamicTerrainCommand.h:98
DtSimCommand is an abstract base class from which commands can derive. It manages the read/write capa...
Definition: simCommand.h:32
virtual ~DtResetDynamicTerrainChangesCommand() override
Definition: dynamicTerrainCommand.h:152
DtResetDynamicTerrainChangesCommand(const DtString &writeName, const DtResetDynamicTerrainChangesCommand &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: dynamicTerrainCommand.h:148
GeometryType
Definition: dynamicTerrainCommand.h:24
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual ~DtAddDynamicTerrainChangesCommand() override
Definition: dynamicTerrainCommand.h:127
DtResetDynamicTerrainChangesCommand(const DtString &writeName, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: dynamicTerrainCommand.h:144
DtSimCommand which causes all dynamic terrain damage to be removed at the specified geometry...
Definition: dynamicTerrainCommand.h:193
DtSimCommand which causes a specific list of dynamic terrain changes to be reset to their original st...
Definition: dynamicTerrainCommand.h:138
DtResetAllDynamicTerrainChangesCommand(const DtString &writeName, const DtResetAllDynamicTerrainChangesCommand &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: dynamicTerrainCommand.h:179
DtResetDynamicTerrainChangesCommand()
Definition: dynamicTerrainCommand.h:142
virtual DtSimCommand * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const override
Make a copy of this sim command. Returns a newly allocated instance of a DtSimCommand. Override this member function to return a pointer to a newly allocated instance of the derived class.
Definition: dynamicTerrainCommand.h:156
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28
DtResetAllDynamicTerrainChangesCommand(const DtString &writeName, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: dynamicTerrainCommand.h:175
virtual ~DtRemoveDynamicTerrainDamageCommand() override
Definition: dynamicTerrainCommand.h:207
DtSimCommand which causes all dynamic terrain changes to be reset to their original state at the spec...
Definition: dynamicTerrainCommand.h:169
class DtRwVectorList:
Definition: rwVectorList.h:22
virtual DtSimCommand * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const override
Make a copy of this sim command. Returns a newly allocated instance of a DtSimCommand. Override this member function to return a pointer to a newly allocated instance of the derived class.
Definition: dynamicTerrainCommand.h:131