VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvCore
DtAttachableIntervisibilityUpdater.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2013 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
);
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
58
virtual
DtVector
fixedDistanceFrom(
const
DtVector
& start,
const
DtVector
& end,
59
double
heading,
double
distance
)
const
;
60
62
virtual
double
calculateHeading(
const
DtVector
& start,
63
const
DtVector
& end )
const
;
64
66
virtual
DtVector
clamp(
const
DtVector
& pt )
const
;
67
68
protected
:
69
70
struct
IntersectionInformation
71
{
72
bool
intersection
;
73
DtVector
startPoint
;
74
DtVector
endPoint
;
75
DtIntersectorResult
result
;
76
};
77
78
IntersectionInformation
myIntersectionInformation
;
79
80
bool
myFixDistance
;
81
double
myFixedDistance
;
82
double
myFixedHeading
;
83
};
84
}
85
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)