VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
terrainGeometryAndDataList.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
14 #include <vl/globalObjectDesignator.h>
15 #include <vlpi/entityType.h>
16 #include <vlpi/entityIdentifier.h>
17 #include <vlutil/vlMachineTypes.h>
18 #include <vlutil/vlString.h>
19 #include <matrix/vlVector.h>
20 #include <vector>
21 
25 {
26 public:
27 
31 
33 
34  virtual void setTerrainGeometryAndDataList(const std::vector<DtTerrainGeometryAndData>& val);
35  virtual const std::vector<DtTerrainGeometryAndData>& terrainGeometryAndDataList() const;
36 
38  virtual void addGeometryAndData(const DtTerrainGeometryAndData& val);
39 
41  virtual void setGeometryAndData(unsigned index, const DtTerrainGeometryAndData& val);
42 
45  virtual void setData(unsigned index, const DtKeyValuePairList& val,
46  DtU32 priority, DtU32 eventNumber);
47 
49  virtual void removeGeometryAndData(unsigned index);
50 
51  bool operator==(const DtTerrainGeometryAndDataList& other) const;
52  bool operator!=(const DtTerrainGeometryAndDataList& other) const;
53 
57  virtual bool approximatelyEqual(const DtTerrainGeometryAndDataList& other, double tolerance = -1.0) const;
58 
59  int netSize() const;
60  static int octetBoundary();
61  unsigned int getPaddingSize(DtU64 byteOffset, unsigned int boundary, unsigned int hint = 1) const;
62 
63  void writeToBuffer( char* buffer ) const;
64  void fillFromBuffer( const char* buffer, int bufferSize, int offset );
65 
66  virtual void printData() const;
67 
68  virtual void printDataToStream(std::ostream &) const;
69 
70 protected:
71 
72  std::vector<DtTerrainGeometryAndData> myTerrainGeometryAndDataList;
73 };
74 
75 DT_DLL_vrfExtObjects std::ostream& operator<<(std::ostream& stream, const DtTerrainGeometryAndDataList&);

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)