VR-Forces 4.1 Class Documentation
envArticulatingCylinderRecord.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: envArticulatingCylinderRecord.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
8 #ifndef envArticulatingCylinderRecord_H_
9 #define envArticulatingCylinderRecord_H_
10 
12 #include <vl/envGeometry.h>
13 
14 struct DtNetEnvironmentalArticulatingCylinderRecord : DtNetEnvironmentalRecord
15 {
16  DtNetVector64 myStartingLocation;
17  DtNetFloat32 myCylinderLength;
18  DtNetEulerAngles myRotation;
19  DtNetFloat32 myXRadius;
20  DtNetFloat32 myYRadius;
21 };
22 
25 {
26 public:
28 
30 
33 
36 
37  virtual DtEnvironmentalRecord* clone() const;
38 
39  virtual void setStartingLocation(const DtVector& loc);
40  virtual const DtVector& startingLocation() const;
41 
42  virtual void setCylinderLength(double len);
43  virtual double cylinderLength() const;
44 
45  virtual void setRotation(const DtTaitBryan& rot);
46  virtual const DtTaitBryan& rotation() const;
47 
48  virtual void setXRadius(double radius);
49  virtual double xRadius() const;
50 
51  virtual void setYRadius(double radius);
52  virtual double yRadius() const;
53 
54  // This doesn't need to be called explicitly. If any routine that needs
55  // the repository finds that it hasn't been created yet, it calls this
56  // method.
57  virtual bool createNetworkRepresentation();
58 
59  virtual int netRepSize() const;
60  virtual void setFromNet(const DtNetEnvironmentalRecord& buffer);
61 
62  const DtNetEnvironmentalArticulatingCylinderRecord* cylinderNetRep() const;
64 
65 protected:
68  DtTaitBryan myRotation;
69  double myXRadius;
70  double myYRadius;
71 };
72 
73 #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)