VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtVdc3DAttachPoint.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
15 #include <matrix/vlVector.h>
16 #include <vl/globalObjectDesignator.h>
17 
19 
20 namespace vrvControlToolkit
21 {
31 
32 
34  {
35  public:
36  typedef enum
37  {
38  attachmentTypeUndefined = 0,
39  attachmentTypeScene = 1,
40  attachmentTypeEntity = 2,
41  attachmentTypeDrawObject = 3
42  } DtVdc3DAttachmentType;
43 
44  public:
49  DtVdc3DAttachPoint( const DtVector& location );
50 
56 
67  DtVdc3DAttachPoint( const DtGlobalObjectDesignator& drawObjectId, double relativePosition);
68 
71 
73  DtVdc3DAttachPoint& operator=( const DtVdc3DAttachPoint& rhs );
74 
76  virtual ~DtVdc3DAttachPoint();
77 
80 
81  public:
82 
88  virtual DtVdc3DAttachmentType attachmentType() const;
89 
96  virtual DtVector location() const;
97  virtual DtVector& location();
98 
106  virtual void setLocation( DtVector location );
107 
114  virtual const DtGlobalObjectDesignator& drawObjectId() const;
115 
123  virtual void setDrawObjectId( const DtGlobalObjectDesignator& drawObjectId );
124 
129  virtual double relativePosition() const;
130 
135  virtual void setRelativePosition( double relativePosition );
136 
144  virtual DtGlobalObjectDesignator entityId() const;
145 
153  virtual void setEntityId( const DtGlobalObjectDesignator& entityId );
154 
155  virtual bool isAttached() const;
156 
157  virtual const DtGlobalObjectDesignator& attachedId() const;
158 
159  protected:
160 
164 
166  };
167 }
DtVdc3DAttachmentType myAttachmentType
Definition: DtVdc3DAttachPoint.h:165
double myRelativePosition
Definition: DtVdc3DAttachPoint.h:163
DtVdc3DAttachmentType
Definition: DtVdc3DAttachPoint.h:36
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
DtVector myLocation
Definition: DtVdc3DAttachPoint.h:161
DtVdc3DAttachPoint represents the 3 methods for attaching a 3D draw control object in 3-space...
Definition: DtVdc3DAttachPoint.h:33
DtGlobalObjectDesignator myAttachedId
Definition: DtVdc3DAttachPoint.h:162

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)