VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
environmentalArticulatingCylinderRecord.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 <vl/environmentalGeometryRecord.h>
14 
15 struct DtNetEnvironmentalArticulatingCylinderRecord : DtNetEnvironmentalRecord
16 {
17  DtNetVector64 myStartingLocation;
18  DtNetFloat32 myCylinderLength;
19  DtNetEulerAngles myRotation;
20  DtNetFloat32 myXRadius;
21  DtNetFloat32 myYRadius;
22 };
23 
26 {
27 public:
28 
30 
34 
36 
39 
40  virtual DtEnvironmentalRecord* clone() const;
41 
42  virtual void setStartingLocation(const DtVector& loc);
43  virtual const DtVector& startingLocation() const;
44 
45  virtual void setCylinderLength(double len);
46  virtual double cylinderLength() const;
47 
48  virtual void setRotation(const DtTaitBryan& rot);
49  virtual const DtTaitBryan& rotation() const;
50 
51  virtual void setXRadius(double radius);
52  virtual double xRadius() const;
53 
54  virtual void setYRadius(double radius);
55  virtual double yRadius() const;
56 
57  // This doesn't need to be called explicitly. If any routine that needs
58  // the repository finds that it hasn't been created yet, it calls this
59  // method.
60  virtual bool createNetworkRepresentation();
61 
62  virtual int netRepSize() const;
63  virtual void setFromNet(const DtNetEnvironmentalRecord& buffer, int protocolVersion);
64 
65  const DtNetEnvironmentalArticulatingCylinderRecord* cylinderNetRep() const;
67 
68 protected:
69 
72  DtTaitBryan myRotation;
73  double myXRadius;
74  double myYRadius;
75 
76 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)