VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
attachmentManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 #include <vlutil/vlList.h>
16 #include <matrix/vlVector.h>
17 #include <vl/hostStructs.h>
19 
23 class Coordinate_System;
24 
35 {
36 
37 private:
40 
41 public:
44 
47 
49  const DtAttachmentManager& operator=(const DtAttachmentManager& orig);
50 
52  virtual ~DtAttachmentManager();
53 
55  virtual DtAttachmentManager* clone() const;
56 
58  virtual void attach(DtSimObjectStateRepository* obj);
59 
61  virtual void detach(DtSimObjectStateRepository* obj);
62 
64  virtual int numAttachments() const;
65 
68  virtual const DtSimObjectStateRepositoryIterator& iterator() const;
69 
73  virtual DtRecursiveStateRepositoryIterator* spawnRecursiveIterator() const;
74 
77  virtual void parentKinematicsChanged();
78 
79  virtual void setCoordinateSystem(const Coordinate_System* coordinateSystem);
80 
81  const DtList& elements() const { return myElements; };
82 
83 protected:
84 
86  void emptyList();
87 
90  void copyList(const DtList& otherElements);
91 
94  static void simObjectRepositoryAboutToBeDeleted(DtSimObjectStateRepository*, void*);
95  virtual void processSimObjectRepositoryAboutToBeDeleted(DtSimObjectStateRepository*);
96 
97 protected:
98 
100  DtList myElements;
103 };
The DtSimObjectStateRepository is an abstract base class (ABC) for all state repositories.
Definition: simObjectStateRepository.h:46
File: recSRIter.h.
Definition: recursiveStateRepositoryIterator.h:33
Definition: coordSystem.h:54
The attachment manager maintains a tree of objects for the state repository class.
Definition: attachmentManager.h:34
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtList myElements
The DtList of pointers to the attached state repositories.
Definition: attachmentManager.h:100
Iterator for iterating over a DtList of state repositories.
Definition: simObjectStateRepositoryIterator.h:33
DtSimObjectStateRepository * myOwner
Definition: attachmentManager.h:101
DtSimObjectStateRepositoryIterator * myIterator
Definition: attachmentManager.h:102
const DtList & elements() const
Definition: attachmentManager.h:81

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)