VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfobjcore
vectorObstructionCollision.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: vectorObstructionCollision.h,v $ $Revision: 1.8 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef vectorObstructionCollision_H_
9
#define vectorObstructionCollision_H_
10
13
14
#include <matrix/vlVector.h>
15
#include "
vrfobjcore/vrfObjMgr.h
"
16
#include "
vrfobjcore/collision.h
"
17
#include "
vrfobjcore/vectorObstruction.h
"
18
19
class
DtString
;
20
21
#include "
vrfobjcore/vrfobjcoreDefines.h
"
22
class
DT_DLL_vrfobjcore
DtVectorObstructionCollision
:
public
DtCollision
23
{
24
25
public
:
26
28
DtVectorObstructionCollision
(
const
DtVectorObstruction
& vectorObstruction,
29
double
distanceSquared);
30
32
virtual
~
DtVectorObstructionCollision
();
33
35
virtual
DtCollisionObjectType
collisionType
()
const
;
36
38
DtVectorObstructionCollision
(
const
DtVectorObstructionCollision
& original);
40
DtVectorObstructionCollision
&
operator=
(
const
DtVectorObstructionCollision
& original);
41
43
bool
operator==
(
const
DtCollision
& collision)
const
;
44
46
bool
operator!=
(
const
DtCollision
& collision)
const
;
47
48
50
bool
operator==
(
const
DtVectorObstructionCollision
& collision)
const
;
51
53
bool
operator!=
(
const
DtVectorObstructionCollision
& collision)
const
;
54
57
bool
valid
()
const
;
58
59
DtVectorObstruction
& vectorObstruction();
60
const
DtVectorObstruction
& vectorObstruction()
const
;
61
62
void
setVectorObstruction(
const
DtVectorObstruction
& vectorObstruction);
63
64
virtual
void
setObstructionEntityID
(
const
DtEntityIdentifier& entityID);
65
virtual
DtEntityIdentifier
obstructionEntityID
()
const
;
66
67
DtVector
obstructionLocation
()
const
;
68
69
DtVector
obstructionVelocity
()
const
;
70
71
Dt3dBoundingVolume&
obstructionBoundingVolume
();
72
const
Dt3dBoundingVolume&
obstructionBoundingVolume
()
const
;
73
74
void
setDistanceSquared
(
double
distanceSquared);
75
double
distanceSquared
()
const
;
76
77
const
DtDcm&
obstructionLocalOrientationMatrix
()
const
;
78
79
bool
testInvariant
()
const
;
80
81
protected
:
82
DtVectorObstruction
myVectorObstruction
;
83
double
myDistanceSquared
;
84
};
85
86
#endif
87
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
)