VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
DtEnvironmentalIconCenteringUpdater.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2014 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/vrvCore.h
>
13
#include <
vrvCore/DtTickable.h
>
14
#include <
vrvCore/DtUniqueID.h
>
15
16
#include <matrix/vlVector.h>
17
18
#include <vector>
19
20
namespace
makVrv
21
{
22
23
class
DtDe;
24
class
DtSceneObject;
25
class
DtModel;
26
class
DtSceneObjectUpdater;
27
class
DtPolygonModel;
28
class
DtLineModel;
29
35
class
DT_DLL_VRVCORE
DtEnvironmentalIconCenteringUpdater
:
public
DtTickable
36
{
37
public
:
38
40
DtEnvironmentalIconCenteringUpdater
(
DtDe
& de,
DtUniqueID
id
);
41
43
virtual
~
DtEnvironmentalIconCenteringUpdater
();
44
46
virtual
bool
needsUpdate(
DtTime
tNow );
47
49
virtual
void
update(
DtTime
tNow );
50
53
virtual
void
setSceneObject(
DtSceneObject
* sceneObject );
54
57
virtual
void
setEnvironmentalSceneObject(
DtSceneObject
* sceneObject );
58
60
virtual
void
setOrderGroup(
int
);
61
62
protected
:
65
virtual
void
centerIcon();
66
68
virtual
DtVector
calculateGeometricCenter()
const
;
69
71
virtual
DtVector
calculateLineCenter()
const
;
72
74
virtual
DtVector
centerOnLine(
int
startIndex,
int
endIndex,
double
lengthOnLine)
const
;
75
76
protected
:
77
81
virtual
void
slot_sceneObjectToBeDeleted(
const
DtUniqueID
&
id
);
82
84
virtual
void
slot_modelAdded(
DtModel
*);
85
87
virtual
void
slot_modelRemoved(
DtModel
*);
89
90
protected
:
92
DtDe
&
myDe
;
93
95
DtUniqueID
myUniqueId
;
96
98
DtSceneObject
*
mySceneObject
;
99
102
DtPolygonModel
*
myEnvironmentalPolygonModel
;
103
DtLineModel
*
myEnvironmentalLineModel
;
104
106
DtSceneObject
*
myEnvironmentalSceneObject
;
107
109
std::vector<DtVector>
myPoints
;
110
111
int
myOrderGroup
;
112
bool
myUpdate
;
113
};
114
}
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
)