VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
attachmentManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: attachMgr.h,v $ $Revision: 1.16 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #ifndef DtAttachmentManager_H_
15 #define DtAttachmentManager_H_
16 
19 #include <vlutil/vlList.h>
20 #include <matrix/vlVector.h>
21 #include <vl/hostStructs.h>
23 
27 class Coordinate_System;
28 
59 {
60 
61 private:
64 
65 public:
68 
71 
73  const DtAttachmentManager& operator=(const DtAttachmentManager& orig);
74 
76  virtual ~DtAttachmentManager();
77 
79  virtual DtAttachmentManager* clone() const;
80 
82  virtual void attachPart(DtSimObjectStateRepository* part);
83 
85  virtual void detachPart(DtSimObjectStateRepository* part);
86 
89  virtual DtSimObjectStateRepository* findPartByType(
90  const DtObjectType& childType);
91 
92  virtual const DtSimObjectStateRepository* findPartByType(
93  const DtObjectType& childType) const;
94 
96  virtual int numAttachments() const;
97 
100  virtual const DtSimObjectStateRepositoryIterator& iterator() const;
101 
105  virtual DtRecursiveStateRepositoryIterator* spawnRecursiveIterator() const;
106 
111  virtual DtVector getPartAttachPoint(const DtObjectType& partType, bool recurse = false)
112  const;
113 
116  virtual void parentKinematicsChanged();
117 
118  virtual void setCoordinateSystem(const Coordinate_System* coordinateSystem);
119 
120  const DtList& elements() const { return myElements; };
121 
122 protected:
123 
125  void emptyList();
126 
129  void copyList(const DtList& otherElements);
130 
131 protected:
132 
134  DtList myElements;
137 };
138 
139 #endif

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)