VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
bhavePathDataGen
baseImporter.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include <kypdg.h>
9
#include <
bhavePathDataGen/extentBoxStruct.h
>
10
11
#include "
gdb/rangeNetSegMet.h
"
12
#include "
gdb/vecNetwrk.h
"
13
#include "
gdb/netwrkSeg.h
"
14
#include "
gdb/specification.h
"
15
#include "
terrainInterface/terrainProcessPolygonsBox.h
"
16
#include "
bhavePathDataGen/pathFeatureConverter.h
"
17
18
class
DtTerrainInterface
;
19
20
namespace
BHAVE {
21
24
class
DtBaseImporter
25
{
26
protected
:
27
DtBaseImporter
();
28
29
public
:
30
virtual
~DtBaseImporter
();
31
33
virtual
bool
initializeCoordinateSystem
() = 0;
34
36
virtual
bool
generateTriangleMesh
(Kaim::ClientInputConsumer & kynapseConsumer,
DtExtentBoxStruct
* boundingBox = 0) = 0;
37
39
virtual
void
setTempKynapseConsumerPtr
(Kaim::ClientInputConsumer* kynapseConsumer);
40
42
virtual
const
Kaim::ClientInputConsumer*
tempKynapseConsumerPtr
()
const
;
43
46
virtual
void
applyFeaturesToTriangles
(
DtTerrainInterface
* terrainInterface,
DtTerrainProcessPolygonsBox
& box,
47
DtProcessBoundingPolygonCallbackFcn
func = 0)
const
;
48
52
static
void
processBoundingPolygon
(
const
std::deque<DtPoint>& points,
unsigned
int
terrainType,
void
* usr);
53
56
virtual
void
addTerrainVolume
(Kaim::Vec3f* bounds,
unsigned
int
numPoints, KyUInt32 terrainType)
const
;
57
59
virtual
bool
generateObstacleFeatures
()
const
{
return
myGenerateObstacleFeatures
; }
60
62
virtual
void
setGenerateObstacleFeatures
(
bool
val) {
myGenerateObstacleFeatures
= val; }
63
65
virtual
bool
generatePathFeatures
()
const
{
return
myGeneratePathFeatures
; }
66
68
virtual
void
setGeneratePathFeatures
(
bool
val) {
myGeneratePathFeatures
= val; }
69
71
virtual
void
setImpassableTerrain
(
DtSoilType
soilType);
72
virtual
void
unsetImpossibleTerrain
(
DtSoilType
soilType);
73
75
virtual
void
setImpassableWater
(
DtBodyOfWaterType
soilType);
76
78
virtual
void
unsetImpossibleWater
(
DtBodyOfWaterType
soilType);
79
80
protected
:
81
Kaim::ClientInputConsumer*
myTempConsumerPtr
;
82
bool
myGeneratePathFeatures
;
83
bool
myGenerateObstacleFeatures
;
84
std::set<DtSoilType>
myImpassableTerrainTypes
;
85
std::set<DtBodyOfWaterType>
myImpassableWaterTypes
;
86
};
87
88
}
89
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
)