VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
worldLocationStructArray.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 
13 #include <matrix/vlVector.h>
14 #include <ostream>
15 #include <vector>
16 
20 {
21 public:
22 
26 
28 
29  virtual void setWorldLocations(const std::vector<DtVector64>& val);
30  virtual void addWorldLocation(const DtVector64& val);
31  virtual const std::vector<DtVector64>& worldLocations() const;
32 
33  bool operator==(const DtWorldLocationStructArray& other) const;
34  bool operator!=(const DtWorldLocationStructArray& other) const;
35 
38  virtual bool approximatelyEqual(const DtWorldLocationStructArray& other, double tolerance = -1.0) const;
39 
40  int netSize() const;
41  static int octetBoundary();
42  unsigned int getPaddingSize(DtU64 byteOffset, unsigned int boundary, unsigned int hint = 1) const;
43 
44  void writeToBuffer( char* buffer ) const;
45  void fillFromBuffer( const char* buffer, int bufferSize, int offset );
46 
47  virtual void printData() const;
48 
49  virtual void printDataToStream(std::ostream &) const;
50 
52  static double defaultTolerance();
53 
55  static void setDefaultTolerance(double tolerance);
56 
57 protected:
58 
59  std::vector<DtVector64> myWorldLocations;
60 
61  static double theDefaultTolerance; // = 0.001
62 };
63 
64 DT_DLL_vrfExtProtocol std::ostream& operator<<(std::ostream& stream, const DtWorldLocationStructArray&);
Definition: worldLocationStructArray.h:19
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
static double theDefaultTolerance
Definition: worldLocationStructArray.h:61
DT_DLL_features std::ostream & operator<<(std::ostream &, const DtFeatureTransform &)
std::ostream output.
voidpf stream
Definition: ioapi.h:39
#define DT_DLL_vrfExtProtocol
Definition: vrfExtProtocolDefines.h:23
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
voidpf uLong offset
Definition: ioapi.h:42
std::vector< DtVector64 > myWorldLocations
Definition: worldLocationStructArray.h:59

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)