VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
terrainGeometryAndData.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 
15 #include <vl/globalObjectDesignator.h>
16 #include <vlpi/entityType.h>
17 #include <vlpi/entityIdentifier.h>
18 #include <vlutil/vlMachineTypes.h>
19 #include <vlutil/vlString.h>
20 #include <matrix/vlVector.h>
21 #include <vector>
22 
26 {
27 public:
31  DtTerrainGeometryAndData& operator=(const DtTerrainGeometryAndData& orig);
32 
33  virtual void setGeometry(const DtTerrainGeometry& val);
34  virtual const DtTerrainGeometry& geometry() const;
35  virtual void setGeometryData(const DtKeyValuePairList& val);
36  virtual void addGeometryData(const DtKeyValuePair& val);
37  virtual const DtKeyValuePairList& geometryData() const;
38  virtual void setEventNumber(const DtU32& val);
39  virtual const DtU32& eventNumber() const;
40  virtual void setPriority(const DtU32& val);
41  virtual const DtU32& priority() const;
42 
43  bool operator==(const DtTerrainGeometryAndData& other) const;
44  bool operator!=(const DtTerrainGeometryAndData& other) const;
45 
49  virtual bool approximatelyEqual(const DtTerrainGeometryAndData& other, double tolerance = -1.0) const;
50 
51  int netSize() const;
52  static int octetBoundary();
53  unsigned int getPaddingSize(DtU64 byteOffset, unsigned int boundary) const;
54 
55  void writeToBuffer( char* buffer ) const;
56  void fillFromBuffer( const char* buffer, int bufferSize, int offset );
57 
58  virtual void printData() const;
59  virtual void printDataToStream(std::ostream &) const;
60 
61 protected:
62 
66  DtU32 myPriority;
67 };
68 
69 DT_DLL_vrfExtObjects std::ostream& operator<<(std::ostream& stream, const DtTerrainGeometryAndData&);
70 
71 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)