VR-Forces Developer's Guide
 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:
56  DtCuboidObject(DtExerciseConn* exConn, unsigned id, const DtVdc3DAttachPoint& attachment,
57  double length, double width, double height,
58  const DtVector& offset = DtVector::zero(),
59  const DtTaitBryan& rotation = zeros,
60  DtVdcColor color = DtVdcColor::DtVdcWhite, bool flashing = false);
61 
62  // \brief Virtual destructor
63  virtual ~DtCuboidObject();
64 
70  virtual double length() const;
71 
77  virtual void setLength(double length);
78 
84  virtual double width() const;
85 
91  virtual void setWidth(double width);
92 
98  virtual double height() const;
99 
105  virtual void setHeight(double height);
106 
107  virtual void setAttachment(const DtVdc3DAttachPoint& attachment);
108  virtual void setRotation(const DtTaitBryan& rotation);
109 
110  virtual void update();
111 
112  private:
117  DtCuboidObject();
118 
122  DtCuboidObject(const DtCuboidObject& orig);
123 
127  DtCuboidObject& operator=(const DtCuboidObject& rhs);
128 
129  void initCuboidRecords();
130 
131  protected:
132  DtEnvironmentalRectangularVolumeRecord myCuboidRecord;
133 
134  private:
135  // Initializer for DtTaitBryan
136  static DtTaitBryan zeros;
137 
138  };
139 }
double length(const dvec3 &theVec)
Definition: DtVecUtils.h:20
A common base class for representing ellipsoids and cuboids.
Definition: DtEllipsoidCuboidBase.h:39
static const DtVdcColor DtVdcWhite
Constant for the color White.
Definition: DtVdcColor.h:186
DtEnvironmentalRectangularVolumeRecord myCuboidRecord
Definition: DtCuboidObject.h:132
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:21
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:136
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 Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)