VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwDynamicTerrainItem.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 
14 #include "readerWriter/rwVector.h"
15 #include <readerWriter/rwReal.h>
16 #include <readerWriter/rwInt.h>
17 #include "vrfutil/rwKeyValueList.h"
18 #include "vrfutil/rwVectorList.h"
20 
24 {
25 public:
26  DtRwDynamicTerrainItem(const DtString& name = DtString::nullString(),
27  DtReaderWriterRegistry* const parentRegistry = NULL);
28 
30  virtual ~DtRwDynamicTerrainItem() override;
31 
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
37  DtRwDynamicTerrainItem(const DtString& name,
38  const DtRwDynamicTerrainItem& orig,
39  DtReaderWriterRegistry* parentRegistry = NULL);
40 
42  DtRwDynamicTerrainItem(const DtString& name,
43  const DtTerrainGeometryAndData& orig,
44  DtReaderWriterRegistry* parentRegistry = NULL);
45 
49 
50  bool operator==(const DtRwDynamicTerrainItem& rhs) const;
51 
55  virtual const char* readerWriterType() const override;
56 
58  virtual void prepareForOutput();
59 
61  virtual void updateAfterInput();
62 
63 protected:
64 
66  virtual void prePutSelf() override;
67 
69  virtual void postGetSelf() override;
70 
71 protected:
72 
74 
77 
80 
84 };
85 
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual void prePutSelf()
Called before either version of put self (file or environment). Default is no-op. ...
DtRwKeyValueList myDataToSave
Definition: rwDynamicTerrainItem.h:83
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...
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
Definition: terrainGeometryAndData.h:24
DtRwTemplatedListPtr< DtRwDynamicTerrainItem, true > DtRwDynamicTerrainItemList
Definition: rwDynamicTerrainItem.h:86
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
DtRwInt myPriorityToSave
Definition: rwDynamicTerrainItem.h:81
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
Definition: rwVector.h:23
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwReal myRadiusToSave
Definition: rwDynamicTerrainItem.h:76
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwVectorList myVerticesToSave
Definition: rwDynamicTerrainItem.h:78
DtRwInt myEventNumberToSave
Definition: rwDynamicTerrainItem.h:82
DtRwDynamicTerrainItem holds a the information needed to make a dynamic change to the terrain...
Definition: rwDynamicTerrainItem.h:23
DtRwReal myWidthToSave
Definition: rwDynamicTerrainItem.h:79
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
DtRwInt myGeometryTypeToSave
Definition: rwDynamicTerrainItem.h:73
DtRwVector myLocationToSave
Definition: rwDynamicTerrainItem.h:75
class DtRwVectorList:
Definition: rwVectorList.h:22
File: rwVector.h.

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)