VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
environmentalFixedCylinderRecord.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: envFixedCylinderRecord.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
8 #ifndef environmentalFixedCylinderRecord_H_
9 #define environmentalFixedCylinderRecord_H_
10 
12 #include <vl/environmentalGeometryRecord.h>
13 
14 struct DtNetEnvironmentalFixedCylinderRecord : DtNetEnvironmentalRecord
15 {
16  DtNetVector64 myStartingLocation;
17  DtNetVector64 myEndingLocation;
18  DtNetFloat32 myXRadius;
19  DtNetFloat32 myYRadius;
20 };
21 
24 {
25 public:
27 
31 
33 
35 
36  virtual DtEnvironmentalRecord* clone() const;
37 
38  virtual void setStartingLocation(const DtVector& loc);
39  virtual const DtVector& startingLocation() const;
40 
41  virtual void setEndingLocation(const DtVector& loc);
42  virtual const DtVector& endingLocation() const;
43 
44  virtual void setXRadius(double radius);
45  virtual double xRadius() const;
46 
47  virtual void setYRadius(double radius);
48  virtual double yRadius() const;
49 
50  // This doesn't need to be called explicitly. If any routine that needs
51  // the repository finds that it hasn't been created yet, it calls this
52  // method.
53  virtual bool createNetworkRepresentation();
54 
55  virtual int netRepSize() const;
56  virtual void setFromNet(const DtNetEnvironmentalRecord& buffer, int protocolVersion);
57 
58  const DtNetEnvironmentalFixedCylinderRecord* cylinderNetRep() const;
59  DtNetEnvironmentalFixedCylinderRecord* cylinderNetRep();
60 
61 protected:
64  double myXRadius;
65  double myYRadius;
66 };
67 
68 #endif

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)