VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtCloudLayer.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 <vrvCore/vrvCore.h>
13 
14 #include <matrix/vlVector.h>
15 
16 #include <string>
17 
18 namespace makArchives
19 {
20  class DtCloudLayerRecord;
21 }
22 
23 
24 namespace makVrv
25 {
26  class DtDe;
27 
31  {
32  public:
34  DtCloudLayer();
35 
37  DtCloudLayer(const DtCloudLayer& orig);
38 
40  DtCloudLayer& operator=(const DtCloudLayer& orig);
41 
43  ~DtCloudLayer();
44 
45  //Test for equality.
46  bool operator==(const DtCloudLayer& other) const;
47 
48  //Test for inequality.
49  bool operator!=(const DtCloudLayer& other) const;
50 
51  void getRecord( makArchives::DtCloudLayerRecord& record ) const;
52  void setFromRecord( const makArchives::DtCloudLayerRecord& record );
53 
54  //Is the cloud layer visible.
55  void setEnabledFlag(bool enabled);
56  bool enabledFlag() const;
57 
58  // Does the cloud layer extend forever
59  void setInfiniteFlag(bool infinite);
60  bool infiniteFlag() const;
61 
62  //The type of cloud layer.
63  void setType(const std::string& type );
64  const std::string& type() const;
65 
67  void setPosition(const DtVector& position);
68  const DtVector position() const;
69 
71  void setWidth(double w);
72  double width() const;
73 
75  void setLength(double l);
76  double length() const;
77 
78  void setThickness(double t);
79  double thickness() const;
80 
82  void setDensity(float density);
83  float density() const;
84 
86  void setRelative(bool r);
87  bool relative() const;
88 
89  protected:
90 
91  //Is the cloud layer visible.
93 
94  //The type of cloud layer.
95  std::string myType;
96 
97  //Location
99 
100  //Size
101  double myWidth;
102  double myLength;
103  double myThickness;
104 
105  //Parameters
106  float myDensity;
109  };
110 }
111 
112 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)