VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
bhaveSpawnQuery.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 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 
15 
16 #include <kypathdata/generic/types.h>
17 
18 namespace BHAVE
19 {
20 
41 {
42 public:
45 
48 
51  void Reset();
52 
54 
59  bool SetDatabase(Kaim::World& world, const char* databaseName);
60 
66  bool SetMinDistance(KyFloat32 value);
67 
73  KyFloat32 GetMinDistance() const {return m_minDistance;}
74 
79  bool SetControlVolume(Kaim::IVolume* newControlVolume);
80 
82  Kaim::IVolume* GetControlVolume() {return m_controlVolume;}
83 
94  bool SetSpawnVolumes(Kaim::IVolume** spawnVolumes, KyUInt32 spawnVolumeCount);
95 
98  bool ResetSpawnVolumes();
99 
100  void SetSoilTypeFilter(KyUInt32 SoilTypeFilter) {mySoilTypeFilter = SoilTypeFilter;}
101  KyUInt32 GetSoilTypeFilter() {return mySoilTypeFilter;}
102 
104 
111  bool SetResultBuffer(Kaim::Vec3f* buffer, KyUInt32 capacity);
112 
115  KyUInt32 GetResultCount() {return m_result_buffer_next - m_result_buffer_start;}
116  KyUInt32 GetCapacity() {return m_result_buffer_end - m_result_buffer_start;}
117 
118  void Render();
119 
120 
121 
122 public:
124  Kaim::Database* m_database;
125  Kaim::IVolume* m_controlVolume;
126  Kaim::IVolume** m_spawnVolumes;
128  KyFloat32 m_minDistance;
129  Kaim::Vec3f* m_connectivityPoint;
131 
132  Kaim::Vec3f* m_result_buffer_start;
133  Kaim::Vec3f* m_result_buffer_end;
134  Kaim::Vec3f* m_result_buffer_next;
135 
136  KyUInt32 mySoilTypeFilter;
137 
139  Kaim::ObstacleTypeMask m_obstaclesToAvoid;
140 };
141 
142 }
143 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)