VR-Forces 4.8 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 }
double myLength
Definition: DtCylinderObject.h:277
Dt3DGraphicalObjectStateRecord myStateRecord
Definition: DtCylinderObject.h:284
DtVdcVector2D myDiameters
Definition: DtCylinderObject.h:278
Contains the Dt3DGraphicalObjectStateRecord class declaration.
Definition: environmentalFixedCylinderRecord.h:23
static const DtVdcColor DtVdcWhite
Constant for the color White.
Definition: DtVdcColor.h:189
Definition: Dt3DTwoPositionedObject.h:18
Definition: environmentalArticulatingCylinderRecord.h:24
Definition: DtVdcVector2D.h:36
bool myFlashing
Definition: DtCylinderObject.h:282
static DtTaitBryan zeros
Definition: DtCylinderObject.h:272
DtVdcColor myColor
Definition: DtCylinderObject.h:280
DtVdc3DAttachPoint myEndAttachment
Definition: DtCylinderObject.h:276
DtEnvironmentalFixedCylinderRecord myFixedCylinderRecord
Definition: DtCylinderObject.h:285
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:24
Contains the DtEnvironmentalFixedCylinderRecord class declaration.
DtEnvironmentalArticulatingCylinderRecord myArticulatingCylinderRecord
Definition: DtCylinderObject.h:286
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
Dt3DGraphicalObjectStateRecord implements the 3d graphical object state record for the remote graphic...
Definition: 3dGraphicalObjectStateRecord.h:42
A class for representing cylinders.
Definition: DtCylinderObject.h:42
DtVdc3DAttachPoint myStartAttachment
Definition: DtCylinderObject.h:275
DtVdc3DAttachPoint.h contains the class definition for DtVdc3DAttachPoint, which functions as a discr...
voidpf uLong offset
Definition: ioapi.h:42
DtVector32 myOffset
Definition: DtCylinderObject.h:279
DtVdc3DAttachPoint represents the 3 methods for attaching a 3D draw control object in 3-space...
Definition: DtVdc3DAttachPoint.h:33
Contains the DtEnvironmentalArticulatingCylinderRecord class declaration.
DtTaitBryan myRotation
Definition: DtCylinderObject.h:281

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)