VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
bhaveSim
bhaveSpawnQuery.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2011 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/*
6
* Copyright 2010 Autodesk, Inc. All rights reserved.
7
* Use of this software is subject to the terms of the Autodesk license agreement provided at the time of installation or download,
8
* or which otherwise accompanies this software in either electronic or hard copy form.
9
*/
10
11
#pragma once
12
13
#include <
bhaveSim/bhaveSpawnManager.h
>
14
15
#include <kypathdata/generic/types.h>
16
17
namespace
BHAVE
18
{
19
39
class
DtBhaveSpawnQuery
40
{
41
public
:
43
DtBhaveSpawnQuery
();
44
46
~DtBhaveSpawnQuery
();
47
50
void
Reset
();
51
53
58
bool
SetDatabase
(Kaim::World& world,
const
char
* databaseName);
59
65
bool
SetMinDistance
(KyFloat32 value);
66
72
KyFloat32
GetMinDistance
()
const
{
return
m_minDistance
;}
73
78
bool
SetControlVolume
(Kaim::IVolume* newControlVolume);
79
81
Kaim::IVolume*
GetControlVolume
() {
return
m_controlVolume
;}
82
93
bool
SetSpawnVolumes
(Kaim::IVolume** spawnVolumes, KyUInt32 spawnVolumeCount);
94
97
bool
ResetSpawnVolumes
();
98
99
void
SetSoilTypeFilter
(KyUInt32 SoilTypeFilter) {
mySoilTypeFilter
= SoilTypeFilter;}
100
KyUInt32
GetSoilTypeFilter
() {
return
mySoilTypeFilter
;}
101
103
110
bool
SetResultBuffer
(Kaim::Vec3f* buffer, KyUInt32 capacity);
111
114
KyUInt32
GetResultCount
() {
return
m_result_count
;}
115
116
void
Render
();
117
118
119
120
public
:
122
Kaim::Database*
m_database
;
123
Kaim::IVolume*
m_controlVolume
;
124
Kaim::IVolume**
m_spawnVolumes
;
125
KyUInt32
m_spawnVolumeArraySize
;
126
KyFloat32
m_minDistance
;
128
129
Kaim::Vec3f*
m_result_buffer
;
130
KyUInt32
m_result_capacity
;
131
KyUInt32
m_result_count
;
133
KyUInt32
mySoilTypeFilter
;
134
136
Kaim::ObstacleTypeMask
m_obstaclesToAvoid
;
137
};
138
139
}
140
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)