VR-Forces Developer's Guide
 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 #pragma once
6 
11 
12 #include <vlutil/vlString.h>
13 #include <matrix/vlVector.h>
14 #include <matrix/vlTaitBryan.h>
15 
17 
21 
25 
26 namespace vrvControlToolkit
27 {
28 
29 
40  {
41  public:
67 
68 
69  DtCylinderObject(DtExerciseConn* exConn, unsigned id,
70  const DtVdc3DAttachPoint& attachment, double length,
71  const DtVdcVector2D& diameters, const DtVector& offset = DtVector::zero(),
72  const DtTaitBryan& rotation = zeros,
73  DtVdcColor color = DtVdcColor::DtVdcWhite, bool flashing = false);
74 
98  DtCylinderObject(DtExerciseConn* exConn, unsigned id,
99  const DtVdc3DAttachPoint& startAttachment,
100  const DtVdc3DAttachPoint& endAttachment,
101  const DtVdcVector2D& diameters,
102  const DtVector& offset = DtVector::zero(),
103  DtVdcColor color = DtVdcColor::DtVdcWhite, bool flashing = false );
104 
105  // \brief Virtual destructor
106  virtual ~DtCylinderObject();
107 
108  private:
114 
118  DtCylinderObject(const DtCylinderObject& orig);
119 
123  DtCylinderObject& operator=(const DtCylinderObject& rhs);
124 
125  public:
132  virtual const DtVdc3DAttachPoint& attachment() const;
133 
138  virtual void setAttachment(const DtVdc3DAttachPoint& attachment);
139 
146  virtual const DtVdc3DAttachPoint& startAttachment() const;
147 
152  virtual void setStartAttachment(const DtVdc3DAttachPoint& startAttachment);
153 
160  virtual const DtVdc3DAttachPoint& endAttachment() const;
161 
166  virtual void setEndAttachment(const DtVdc3DAttachPoint& endAttachment);
167 
174  virtual const DtVector32& offset() const;
175 
181  virtual void setOffset(const DtVector32& off);
182 
188  virtual double length() const;
189 
195  virtual void setLength(double length);
196 
203  virtual const DtVdcVector2D& diameters() const;
204 
210  virtual void setDiameters(const DtVdcVector2D& diameters);
211 
218  virtual const DtTaitBryan& rotation() const;
219 
226  virtual void setRotation(const DtTaitBryan& rotation);
227 
233  virtual const DtVdcColor& color() const;
234 
240  virtual void setColor (const DtVdcColor& color);
241 
247  virtual bool flashing() const;
248 
254  virtual void setFlashing(bool flashing);
255 
256  virtual void setRemoteGraphicSet(const std::string& setName);
257 
266  virtual void update();
267 
268  protected:
269  void initRecords();
270 
271  private:
272  // Initializer for DtTaitBryan
273  static DtTaitBryan zeros;
274 
275  protected:
276  DtVdc3DAttachPoint myStartAttachment; // also single attachment
278  double myLength;
280  DtVector32 myOffset;
282  DtTaitBryan myRotation;
284 
288  };
289 }
double myLength
Definition: DtCylinderObject.h:278
Dt3DGraphicalObjectStateRecord myStateRecord
Definition: DtCylinderObject.h:285
double length(const dvec3 &theVec)
Definition: DtVecUtils.h:20
DtVdcVector2D myDiameters
Definition: DtCylinderObject.h:279
Contains the Dt3DGraphicalObjectStateRecord class declaration.
Definition: environmentalFixedCylinderRecord.h:23
static const DtVdcColor DtVdcWhite
Constant for the color White.
Definition: DtVdcColor.h:186
Definition: Dt3DTwoPositionedObject.h:15
Definition: environmentalArticulatingCylinderRecord.h:24
Definition: DtVdcVector2D.h:33
bool myFlashing
Definition: DtCylinderObject.h:283
static DtTaitBryan zeros
Definition: DtCylinderObject.h:273
DtVdcColor myColor
Definition: DtCylinderObject.h:281
DtVdc3DAttachPoint myEndAttachment
Definition: DtCylinderObject.h:277
DtEnvironmentalFixedCylinderRecord myFixedCylinderRecord
Definition: DtCylinderObject.h:286
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:21
Contains the DtEnvironmentalFixedCylinderRecord class declaration.
DtEnvironmentalArticulatingCylinderRecord myArticulatingCylinderRecord
Definition: DtCylinderObject.h:287
#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:39
DtVdc3DAttachPoint myStartAttachment
Definition: DtCylinderObject.h:276
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:280
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:282

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)