VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtAttachableIntervisibilityUpdater.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/DtLineModelUpdater.h
>
13
14
#include <
vrvCore/DtIntersector.h
>
15
16
namespace
makVrv
17
{
22
class
DT_DLL_VRVCORE
DtAttachableIntervisibilityUpdater
:
public
DtLineModelUpdater
23
{
24
public
:
25
27
DtAttachableIntervisibilityUpdater
(
DtDe
& de,
DtElementID
id
,
bool
suppressTick =
false
);
28
30
virtual
~
DtAttachableIntervisibilityUpdater
();
31
35
virtual
void
setFixedDistance(
bool
);
36
37
protected
:
38
41
virtual
void
update( DtTime tNow );
42
44
virtual
bool
doIntersection();
45
46
// Updates the sceneObject with inter-visibility information
47
virtual
void
updateSceneObject( DtTime tNow );
48
50
virtual
double
calculateDistance(
const
DtVector
& start,
51
const
DtVector
& end,
DtVector
* circleOrigin = 0 )
const
;
52
54
virtual
void
calculateFixedDistance();
55
57
virtual
DtVector
fixedDistanceFrom(
const
DtVector
& start,
const
DtVector
& end,
58
double
heading,
double
distance
)
const
;
59
61
virtual
double
calculateHeading(
const
DtVector
& start,
62
const
DtVector
& end )
const
;
63
64
protected
:
65
66
struct
IntersectionInformation
67
{
68
bool
intersection
;
69
DtVector
startPoint
;
70
DtVector
endPoint
;
71
DtIntersectorResult
result
;
72
};
73
74
IntersectionInformation
myIntersectionInformation
;
75
76
bool
myFixDistance
;
77
double
myFixedDistance
;
78
double
myFixedHeading
;
79
};
80
}
81
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)