VR-Vantage API Documentation
DtCuboidObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtCuboidObject.h,v $ $Revision: 1.5 $ $State: Exp $
7 ******************************************************************************/
8 #pragma once
9 
13 
14 #include <vlutil/vlString.h>
15 
17 
19 
20 #include <vl/envRectVol.h>
21 
22 namespace vrvControlToolkit
23 {
31  {
32  public:
57  DtCuboidObject(DtExerciseConn* exConn, unsigned id, const DtVdc3DAttachPoint& attachment,
58  double length, double width, double height,
59  const DtVector& enuOffset = DtVector::zero(),
60  const DtTaitBryan& rotation = zeros,
61  DtVdcColor color = DtVdcColor::DtVdcWhite, bool flashing = false);
62 
63  // \brief Virtual destructor
64  virtual ~DtCuboidObject();
65 
71  virtual double length() const;
72 
78  virtual void setLength(double length);
79 
85  virtual double width() const;
86 
92  virtual void setWidth(double width);
93 
99  virtual double height() const;
100 
106  virtual void setHeight(double height);
107 
108  virtual void setAttachment(const DtVdc3DAttachPoint& attachment);
109  virtual void setRotation(const DtTaitBryan& rotation);
110 
111  virtual void update();
112 
113  private:
118  DtCuboidObject();
119 
123  DtCuboidObject(const DtCuboidObject& orig);
124 
128  DtCuboidObject& operator=(const DtCuboidObject& rhs);
129 
130  void initCuboidRecords();
131 
132  protected:
133  DtEnvironmentalRectangularVolumeRecord myCuboidRecord;
134 
135  private:
136  // Initializer for DtTaitBryan
137  static DtTaitBryan zeros;
138 
139  };
140 }


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)