All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PayloadSlotStreamMap.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Streaming.h"
6 #include "PayloadSlotStream.h"
7 #include <vector>
8 
9 namespace Eegeo
10 {
11  namespace Streaming
12  {
14  {
15  private:
16  uint m_numOfPayloadSlots;
17  std::vector<std::vector<PayloadSlotStream> > m_streamListsByDepth;
18 
19  public:
21 
22  void addLodStreamMap(const LodStreamMap& lodStreamMap);
23 
24  void clearPayloadSlotStreamMappings();
25 
26  void streamsWithLastLODAtCell (const MortonKey& mortonKey, std::vector<PayloadSlotStream>& out_streamsToVisit);
27 
28  const std::vector<PayloadSlotStream> &streamsWithLODsAtDepth (int depth) const;
29 
30  int GetPayloadSlotForStream(IResourceStream* pStream) const;
31 
32  bool HasResourceStreamAtDepth(const PayloadSlotStream& payloadSlotStream, int depth, PayloadSlotStream& out_payloadStreamSlot);
33  };
34  }
35 }