VR-Forces 4.1.1 Class Documentation
DtVdc3DAttachPoint.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtVdc3DAttachPoint.h,v $ $Revision: 1.3 $ $State: Exp $
7 ******************************************************************************/
8 #pragma once
9 
17 #include <matrix/vlVector.h>
18 #include <vl/globalObjDes.h>
19 
21 
22 namespace vrvControlToolkit
23 {
33 
34 
36  {
37  public:
38  typedef enum
39  {
40  attachmentTypeUndefined = 0,
41  attachmentTypeScene = 1,
42  attachmentTypeEntity = 2,
43  attachmentTypeDrawObject = 3
44  } DtVdc3DAttachmentType;
45 
46  public:
51  DtVdc3DAttachPoint( const DtVector& location );
52 
57  DtVdc3DAttachPoint( const DtGlobalObjectDesignator& entityId );
58 
69  DtVdc3DAttachPoint( const DtGlobalObjectDesignator& drawObjectId, double relativePosition);
70 
73 
75  DtVdc3DAttachPoint& operator=( const DtVdc3DAttachPoint& rhs );
76 
78  virtual ~DtVdc3DAttachPoint();
79 
82 
83  public:
84 
90  virtual DtVdc3DAttachmentType attachmentType() const;
91 
98  virtual DtVector location() const;
99  virtual DtVector& location();
100 
108  virtual void setLocation( DtVector location );
109 
116  virtual const DtGlobalObjectDesignator& drawObjectId() const;
117 
125  virtual void setDrawObjectId( const DtGlobalObjectDesignator& drawObjectId );
126 
131  virtual double relativePosition() const;
132 
137  virtual void setRelativePosition( double relativePosition );
138 
146  virtual DtGlobalObjectDesignator entityId() const;
147 
155  virtual void setEntityId( const DtGlobalObjectDesignator& entityId );
156 
157  virtual bool isAttached() const;
158 
159  virtual const DtGlobalObjectDesignator& attachedId() const;
160 
161  protected:
162 
164  DtGlobalObjectDesignator myAttachedId;
166 
168  };
169 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)