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:
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:39
static const DtVdcColor DtVdcWhite
Constant for the color White.
Definition: DtVdcColor.h:186
DtEnvironmentalRectangularVolumeRecord myCuboidRecord
Definition: DtCuboidObject.h:130
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:21
A 3D cuboidal Stealth Draw Control Object.
Definition: DtCuboidObject.h:27
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
#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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)