VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfobjcore
attachMgr.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
17
#include "
vrfobjcore/vrfobjcoreDefines.h
"
18
#include "
vrfobjcore/srIterator.h
"
19
#include <vlutil/vlList.h>
20
#include <matrix/vlVector.h>
21
#include <vl/hostStructs.h>
22
#include <
vrfExtProtocol/objType.h
>
23
24
class
DtSimObjectStateRepository
;
25
class
DtSimObjectStateRepositoryIterator
;
26
class
DtRecursiveStateRepositoryIterator
;
27
class
Coordinate_System
;
28
58
class
DT_DLL_vrfobjcore
DtAttachmentManager
59
{
60
61
private
:
63
DtAttachmentManager
();
64
65
public
:
67
DtAttachmentManager
(
DtSimObjectStateRepository
* owner);
68
70
DtAttachmentManager
(
const
DtAttachmentManager
& orig);
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
101
virtual
const
DtSimObjectStateRepositoryIterator
& iterator()
const
;
102
106
virtual
DtRecursiveStateRepositoryIterator
* spawnRecursiveIterator()
const
;
107
112
virtual
DtVector
getPartAttachPoint(
const
DtObjectType
& partType,
bool
recurse =
false
)
113
const
;
114
117
virtual
void
parentKinematicsChanged();
118
119
virtual
void
setCoordinateSystem(
const
Coordinate_System
* coordinateSystem);
120
121
const
DtList&
elements
()
const
{
return
myElements; };
122
123
protected
:
124
126
void
emptyList();
127
130
void
copyList(
const
DtList& otherElements);
131
132
protected
:
133
135
DtList
myElements
;
136
DtSimObjectStateRepository
*
myOwner
;
137
DtSimObjectStateRepositoryIterator
*
myIterator
;
138
};
139
140
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)