VR-Forces 4.7 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
vrvUtil
DtDynamicTerrainSphere.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2016 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvUtil/vrvUtil.h
>
13
14
#include <
vrvUtil/DtDynamicTerrainGeometry.h
>
15
16
namespace
makVrv
17
18
{
19
class
DT_DLL_VRVUTIL
DtDynamicTerrainSphere
:
public
DtDynamicTerrainGeometry
20
{
21
public
:
22
class
Intersector
:
public
Visitor
23
{
24
public
:
25
explicit
Intersector
(
const
DtDynamicTerrainSphere
& sphere);
26
bool
value()
const
;
27
void
visitSphere(
const
DtVector
& center,
double
radius);
28
void
visitUnion(
const
DtDynamicTerrainGeometry
& left,
const
DtDynamicTerrainGeometry
& right);
29
void
visitIntersection(
const
DtDynamicTerrainGeometry
& left,
const
DtDynamicTerrainGeometry
& right);
30
31
protected
:
32
const
DtDynamicTerrainSphere
&
mySphere
;
33
bool
myCurrentValue
;
34
};
35
36
public
:
37
38
DtDynamicTerrainSphere
(
const
DtVector
& center,
double
radius);
39
40
virtual
~
DtDynamicTerrainSphere
();
41
42
virtual
DtDynamicTerrainGeometry
* clone()
const
;
43
virtual
bool
intersects
(
const
DtDynamicTerrainGeometry
& geometry)
const
;
44
virtual
double
distanceTo(
const
DtVector
& point)
const
;
45
virtual
bool
isFinite()
const
;
46
virtual
void
accept(
Visitor
& visitor)
const
;
47
48
protected
:
49
const
DtVector
myCenter
;
50
const
double
myRadius
;
51
};
52
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)