VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
environmentalFixedCylinderRecord.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 DtNetEnvironmentalFixedCylinderRecord : DtNetEnvironmentalRecord
16 {
17  DtNetVector64 myStartingLocation;
18  DtNetVector64 myEndingLocation;
19  DtNetFloat32 myXRadius;
20  DtNetFloat32 myYRadius;
21 };
22 
25 {
26 public:
27 
29 
33 
35 
37 
38  virtual DtEnvironmentalRecord* clone() const;
39 
40  virtual void setStartingLocation(const DtVector& loc);
41  virtual const DtVector& startingLocation() const;
42 
43  virtual void setEndingLocation(const DtVector& loc);
44  virtual const DtVector& endingLocation() const;
45 
46  virtual void setXRadius(double radius);
47  virtual double xRadius() const;
48 
49  virtual void setYRadius(double radius);
50  virtual double yRadius() const;
51 
52  // This doesn't need to be called explicitly. If any routine that needs
53  // the repository finds that it hasn't been created yet, it calls this
54  // method.
55  virtual bool createNetworkRepresentation();
56 
57  virtual int netRepSize() const;
58  virtual void setFromNet(const DtNetEnvironmentalRecord& buffer, int protocolVersion);
59 
60  const DtNetEnvironmentalFixedCylinderRecord* cylinderNetRep() const;
61  DtNetEnvironmentalFixedCylinderRecord* cylinderNetRep();
62 
63 protected:
64 
67  double myXRadius;
68  double myYRadius;
69 
70 };
double myYRadius
Definition: environmentalFixedCylinderRecord.h:68
Definition: environmentalFixedCylinderRecord.h:15
Definition: environmentalFixedCylinderRecord.h:23
double myXRadius
Definition: environmentalFixedCylinderRecord.h:67
DtVector myEndingLocation
Definition: environmentalFixedCylinderRecord.h:66
DtNetVector64 myStartingLocation
Definition: environmentalFixedCylinderRecord.h:17
DtNetFloat32 myXRadius
Definition: environmentalFixedCylinderRecord.h:19
DtNetFloat32 myYRadius
Definition: environmentalFixedCylinderRecord.h:20
DtVector myStartingLocation
Definition: environmentalFixedCylinderRecord.h:65
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23
DtNetVector64 myEndingLocation
Definition: environmentalFixedCylinderRecord.h:18

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)