VR-Forces 4.8 Class Documentation
 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 
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;
83 
84  virtual DtSimCommand* clone(const DtString & name, DtReaderWriterRegistry* parentRegistry = 0) const;
85 
87  virtual DtString stringRep() const;
88 
90  virtual int netRepSize() const;
91 
93  virtual bool setFromNet(const char* contentBuffer,
94  unsigned contentSize);
95 
97  virtual bool setToNet();
98 
100  static DtSimCommand* creator();
101 
102 protected:
108 };
109 
110 
111 
DtRwStringList myChangeableTypes
Definition: switchDynamicTerrainAtPointCommand.h:105
virtual bool setToNet()
Calls netRep() to create the network buffer.
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.
Definition: readerWriterRegistry.h:39
DtRwStringList myUnchangeableTypes
Definition: switchDynamicTerrainAtPointCommand.h:106
Definition: rwVector.h:23
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class.
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubsimCommand member from the incoming contentBuffer (cast to type DtNetSimSimCommand).
const DtSimCommand & operator=(const DtSimCommand &orig)
assignment operator; same as copy constructor
DtSimCommand is an abstract base class from which commands can derive.
Definition: simCommand.h:32
DtRwBoolean mySwitchAllOnChord
Definition: switchDynamicTerrainAtPointCommand.h:107
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:103
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:104

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)