gwnavruntime/channel/channelarray.h Source File

channelarray.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 #pragma once
9 
13 
15 
16 
17 namespace Kaim
18 {
19 
20 class Path;
21 class ChannelSectionPtr;
22 class Database;
23 
24 
27 class ChannelArray: public RefCountBase<ChannelArray, MemStat_Channel>
28 {
29 public:
30  ChannelArray() {}
31  virtual ~ChannelArray();
32 
33  void Clear();
34 
35  KyUInt32 GetChannelCount() const { return m_channelArray.GetCount(); }
36  Channel* GetChannel(KyUInt32 index) const { return m_channelArray[index]; }
37  KyUInt32 GetChannelIdxFromPathNodeIdx(KyUInt32 pathNodeIdx) const;
38 
39  void SendVisualDebug(DisplayListManager* displayListManager) const;
40 
41 public: // internal
42  KyArray<Ptr<Channel> > m_channelArray;
43 };
44 
45 } // namespace Kaim
46 
Game side: Manages all DisplayListData, send them to the NavigationLab.
Definition: displaylist.h:375
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
General purpose array for movable objects that require explicit construction/destruction.
Definition: kyarray.h:162
This class aggregates Channels along a Path.
Definition: channelarray.h:27
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
Channel enrich Path with clearance information on each side of the Path.
Definition: channel.h:169