VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
switchDynamicTerrainAtPointCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfplan/simCommand.h"
12 #include "vrfplan/vrfplanDefines.h"
13 #include "readerWriter/rwVector.h"
14 #include "vrfutil/rwStringList.h"
15 #include <readerWriter/rwBoolean.h>
16 
22 {
23 public:
24 
27 
30  DtReaderWriterRegistry* parentRegistry = NULL);
31 
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
37  virtual ~DtSwitchDynamicTerrainAtPointCommand() override;
38 
41 
43 
44  virtual void setStartPoint(const DtVector& location);
45  virtual DtVector startPoint() const;
47 
49 
50  virtual void setEndPoint(const DtVector& location);
51  virtual DtVector endPoint() const;
53 
56 
57  virtual void setChangeableTypes(const DtRwStringList& changeTypes);
58  virtual const DtRwStringList& changeableTypes() const;
59  virtual void addChangeableType(const DtString& changeType);
61 
64 
65  virtual void setUnchangeableTypes(const DtRwStringList& changeTypes);
66  virtual const DtRwStringList& unchangeableTypes() const;
67  virtual void addUnchangeableType(const DtString& changeType);
69 
73  virtual bool isChangeableType(const DtString& changeType) const;
74 
77 
78  virtual void setSwitchAllOnChord(bool switchAll);
79  virtual bool switchAllOnChord() const;
81 
82  virtual const DtSimCommandMessageType& type() const override;
83 
84  virtual DtSimCommand* clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
85 
87  virtual DtString stringRep() const override;
88 
90  virtual int netRepSize() const override;
91 
93  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
94 
96  virtual bool setToNet() override;
97 
99  static DtSimCommand* creator();
100 
101 protected:
107 };
108 
109 
110 
DtRwStringList myChangeableTypes
Definition: switchDynamicTerrainAtPointCommand.h:104
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
Sim command that causes the dynamic terrain state at a specific point to be switched to the next stat...
Definition: switchDynamicTerrainAtPointCommand.h:21
virtual DtString stringRep() const =0
Returns a human-readable string representation of the command. This string representation is used to ...
Definition: readerWriterRegistry.h:39
DtRwStringList myUnchangeableTypes
Definition: switchDynamicTerrainAtPointCommand.h:105
Definition: rwVector.h:23
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().
const DtSimCommand & operator=(const DtSimCommand &orig)
assignment operator; same as copy constructor
DtSimCommand is an abstract base class from which commands can derive. It manages the read/write capa...
Definition: simCommand.h:32
DtRwBoolean mySwitchAllOnChord
Definition: switchDynamicTerrainAtPointCommand.h:106
virtual DtSimCommand * clone() const
Version of clone that preserves the existing name, and assigns a null parent registry.
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwVector myStartPoint
Definition: switchDynamicTerrainAtPointCommand.h:102
virtual const DtSimCommandMessageType & type() const =0
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28
Definition: rwStringList.h:20
File: rwVector.h.
DtRwVector myEndPoint
Definition: switchDynamicTerrainAtPointCommand.h:103

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)