VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOceanLayerRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <makArchives/makArchives.h>
13 
14 #include <string>
15 
16 namespace makArchives
17 {
18 
22  {
23 
24  public:
25 
28 
31 
33  DtOceanLayerRecord& operator=(const DtOceanLayerRecord& orig);
34 
35  bool operator==(const DtOceanLayerRecord& orig) const;
36  bool operator!=(const DtOceanLayerRecord& orig) const;
37 
40 
42  const std::string& name() const;
43 
45  void setName(const std::string& name);
46 
48  double seaLevel() const;
49 
51  void setSeaLevel(double seaLevel);
52 
54  int lodRange() const;
55 
57  void setLodRange( int range );
58 
59  protected:
60 
61  friend class boost::serialization::access;
62 
66  template<class Archive>
67  void serialize(Archive & ar, const unsigned int version)
68  {
69  ar & BOOST_SERIALIZATION_NVP(myName);
70  ar & BOOST_SERIALIZATION_NVP(mySeaLevel);
71  ar & BOOST_SERIALIZATION_NVP(myLodRange);
72  }
73 
74  protected:
75  std::string myName;
76  double mySeaLevel;
78  };
79 }
80 
81 
A DtOceanLayerRecord contains the information to add dynamic water.
Definition: DtOceanLayerRecord.h:21
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
Contains DLL export macros.
double mySeaLevel
Definition: DtOceanLayerRecord.h:76
std::string myName
Definition: DtOceanLayerRecord.h:75
void serialize(Archive &ar, const unsigned int version)
When the class Archive corresponds to an output archive, the &amp; operator is defined similar to &lt;&lt;...
Definition: DtOceanLayerRecord.h:67
int myLodRange
Definition: DtOceanLayerRecord.h:77
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)