VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtSegmentedLineModelUpdater.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2012 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/DtAttachableUpdater.h
>
13
14
class
DtVector
;
15
class
DtTaitBryan;
16
17
namespace
makVrv
18
{
19
23
class
DT_DLL_VRVCORE
DtSegmentedLineModelUpdater
:
public
DtAttachableUpdater
24
{
25
public
:
27
DtSegmentedLineModelUpdater
(
DtDe
& de,
DtElementID
id
,
bool
suppressTick =
false
);
28
30
virtual
~
DtSegmentedLineModelUpdater
();
31
33
virtual
void
setStartPoint(
const
DtVector
& position );
34
37
virtual
void
attachStartPoint(
DtElementID
id
);
38
40
virtual
void
setStartPointOffset(
const
DtVector
& offset );
41
43
virtual
void
setEndPoint(
const
DtVector
& position );
44
47
virtual
void
attachEndPoint(
DtElementID
id
);
48
50
virtual
void
setEndPointOffset(
const
DtVector
& offset );
51
53
virtual
DtVector
calculateStartPoint();
54
56
virtual
DtVector
calculateEndPoint();
57
59
virtual
void
setSceneObject(
DtSceneObject
* sceneObject );
60
64
virtual
void
update( DtTime tNow );
65
66
protected
:
67
68
// \brief Updates the sceneObject
69
virtual
void
updateSceneObject( DtTime tNow ) = 0;
70
73
74
struct
PointInformation
;
75
77
virtual
void
cleanup(
PointInformation
& pointInfo );
78
84
virtual
DtVector
offsetPoint(
DtVector
point
,
const
DtVector
& offset,
85
const
DtTaitBryan& ori = DtTaitBryan() )
const
;
86
91
virtual
DtVector
getAttachedPosition(
PointInformation
& pointInfo );
92
94
virtual
void
getSceneInformation(
const
PointInformation
& info,
DtUniqueID
& sceneId );
95
97
100
102
virtual
void
slot_attachedSceneObjectToBeDeleted(
DtUniqueID
,
PointInformation
* );
103
105
virtual
void
slot_attachedUpdaterToBeDeleted(
DtUniqueID
,
PointInformation
* );
106
108
109
protected
:
110
111
struct
PointInformation
112
{
113
PointInformation
();
114
115
bool
defined
;
116
DtVector
position
;
117
DtVector
offset
;
118
int
modelSet
;
119
DtElementID
parentAttachID
;
120
DtSceneObject
*
sceneObject
;
121
DtSceneObjectUpdater
*
updater
;
122
};
123
124
PointInformation
myStartPoint
;
125
PointInformation
myEndPoint
;
126
127
};
128
}
129
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
)