VR-Forces 4.1 Class Documentation
envFixedCylinderRecord.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 envFixedCylinderRecord_H_
9 #define envFixedCylinderRecord_H_
10 
12 #include <vl/envGeometry.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 
29 
31 
33 
34  virtual DtEnvironmentalRecord* clone() const;
35 
36  virtual void setStartingLocation(const DtVector& loc);
37  virtual const DtVector& startingLocation() const;
38 
39  virtual void setEndingLocation(const DtVector& loc);
40  virtual const DtVector& endingLocation() const;
41 
42  virtual void setXRadius(double radius);
43  virtual double xRadius() const;
44 
45  virtual void setYRadius(double radius);
46  virtual double yRadius() const;
47 
48  // This doesn't need to be called explicitly. If any routine that needs
49  // the repository finds that it hasn't been created yet, it calls this
50  // method.
51  virtual bool createNetworkRepresentation();
52 
53  virtual int netRepSize() const;
54  virtual void setFromNet(const DtNetEnvironmentalRecord& buffer);
55 
56  const DtNetEnvironmentalFixedCylinderRecord* cylinderNetRep() const;
57  DtNetEnvironmentalFixedCylinderRecord* cylinderNetRep();
58 
59 protected:
62  double myXRadius;
63  double myYRadius;
64 };
65 
66 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)