VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCylinderObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtCylinderObject.h,v $ $Revision: 1.3 $ $State: Exp $
7 ******************************************************************************/
8 #pragma once
9 
14 
15 #include <vlutil/vlString.h>
16 #include <matrix/vlVector.h>
17 #include <matrix/vlTaitBryan.h>
18 
20 
24 
28 
29 namespace vrvControlToolkit
30 {
31 
32 
43  {
44  public:
68 
69 
70  DtCylinderObject(DtExerciseConn* exConn, unsigned id,
71  const DtVdc3DAttachPoint& attachment, double length,
72  const DtVdcVector2D& diameters, const DtVector& offset = DtVector::zero(),
73  const DtTaitBryan& rotation = zeros,
74  DtVdcColor color = DtVdcColor::DtVdcWhite, bool flashing = false);
75 
97  DtCylinderObject(DtExerciseConn* exConn, unsigned id,
98  const DtVdc3DAttachPoint& startAttachment,
99  const DtVdc3DAttachPoint& endAttachment,
100  const DtVdcVector2D& diameters,
101  const DtVector& offset = DtVector::zero(),
102  DtVdcColor color = DtVdcColor::DtVdcWhite, bool flashing = false );
103 
104  // \brief Virtual destructor
105  virtual ~DtCylinderObject();
106 
107  private:
113 
117  DtCylinderObject(const DtCylinderObject& orig);
118 
122  DtCylinderObject& operator=(const DtCylinderObject& rhs);
123 
124  public:
131  virtual const DtVdc3DAttachPoint& attachment() const;
132 
137  virtual void setAttachment(const DtVdc3DAttachPoint& attachment);
138 
145  virtual const DtVdc3DAttachPoint& startAttachment() const;
146 
151  virtual void setStartAttachment(const DtVdc3DAttachPoint& startAttachment);
152 
159  virtual const DtVdc3DAttachPoint& endAttachment() const;
160 
165  virtual void setEndAttachment(const DtVdc3DAttachPoint& endAttachment);
166 
173  virtual const DtVector32& offset() const;
174 
180  virtual void setOffset(const DtVector32& off);
181 
187  virtual double length() const;
188 
194  virtual void setLength(double length);
195 
202  virtual const DtVdcVector2D& diameters() const;
203 
209  virtual void setDiameters(const DtVdcVector2D& diameters);
210 
217  virtual const DtTaitBryan& rotation() const;
218 
225  virtual void setRotation(const DtTaitBryan& rotation);
226 
232  virtual const DtVdcColor& color() const;
233 
239  virtual void setColor (const DtVdcColor& color);
240 
246  virtual bool flashing() const;
247 
253  virtual void setFlashing(bool flashing);
254 
255  virtual void setRemoteGraphicSet(const std::string& setName);
256 
265  virtual void update();
266 
267  protected:
268  void initRecords();
269 
270  private:
271  // Initializer for DtTaitBryan
272  static DtTaitBryan zeros;
273 
274  protected:
275  DtVdc3DAttachPoint myStartAttachment; // also single attachment
277  double myLength;
279  DtVector32 myOffset;
281  DtTaitBryan myRotation;
283 
287  };
288 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)