VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCuboidObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
10 
11 #include <vlutil/vlString.h>
12 
14 
16 
17 #include <vl/environmentalRectangularVolumeRecord.h>
18 
19 namespace vrvControlToolkit
20 {
28  {
29  public:
54  DtCuboidObject(DtExerciseConn* exConn, unsigned id, const DtVdc3DAttachPoint& attachment,
55  double length, double width, double height,
56  const DtVector& offset = DtVector::zero(),
57  const DtTaitBryan& rotation = zeros,
58  DtVdcColor color = DtVdcColor::DtVdcWhite, bool flashing = false);
59 
60  // \brief Virtual destructor
61  virtual ~DtCuboidObject();
62 
68  virtual double length() const;
69 
75  virtual void setLength(double length);
76 
82  virtual double width() const;
83 
89  virtual void setWidth(double width);
90 
96  virtual double height() const;
97 
103  virtual void setHeight(double height);
104 
105  virtual void setAttachment(const DtVdc3DAttachPoint& attachment);
106  virtual void setRotation(const DtTaitBryan& rotation);
107 
108  virtual void update();
109 
110  private:
115  DtCuboidObject();
116 
120  DtCuboidObject(const DtCuboidObject& orig);
121 
125  DtCuboidObject& operator=(const DtCuboidObject& rhs);
126 
127  void initCuboidRecords();
128 
129  protected:
130  DtEnvironmentalRectangularVolumeRecord myCuboidRecord;
131 
132  private:
133  // Initializer for DtTaitBryan
134  static DtTaitBryan zeros;
135 
136  };
137 }
A common base class for representing ellipsoids and cuboids.
Definition: DtEllipsoidCuboidBase.h:42
static const DtVdcColor DtVdcWhite
Constant for the color White.
Definition: DtVdcColor.h:189
DtEnvironmentalRectangularVolumeRecord myCuboidRecord
Definition: DtCuboidObject.h:130
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:24
A 3D cuboidal Stealth Draw Control Object.
Definition: DtCuboidObject.h:27
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
static DtTaitBryan zeros
Definition: DtCuboidObject.h:134
voidpf uLong offset
Definition: ioapi.h:42
DtVdc3DAttachPoint represents the 3 methods for attaching a 3D draw control object in 3-space...
Definition: DtVdc3DAttachPoint.h:33

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)