gwnavruntime/channel/bubblearraybuilder.h Source File

bubblearraybuilder.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 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 #ifndef Navigation_BubbleArrayBuilder_H
8 #define Navigation_BubbleArrayBuilder_H
9 
10 
12 
13 
14 namespace Kaim
15 {
16 
17 class DiagonalStrip;
18 
19 // This class helps to build a BubbleArray.
20 //
21 // It can be used either in static mode, to directly feed an array corresponding to a
22 // DiagonalStrip; or in Dynamic mode. In this last mode, the DiagonalStrip is used
23 // to populate an internal Bubble list that can be enriched with additional Bubbles
24 // before this completed list is converted to an array of Bubbles.
25 //
26 // In both cases, the Bubble array can then be used as input for a StringPuller.
27 class BubbleArrayBuilder
28 {
29 public:
30 // BubbleArrayBuilder() {}
31 // ~BubbleArrayBuilder() { Clear(); }
32 //
33 // void Clear();
34 
35  // ------------------------------ Static Bubble array construction ------------------------------
36 
37  static void ConvertDiagonalStripToBubbleArray(const DiagonalStrip& diagonalStrip, BubbleArray& bubbleArray);
38 
39 // // ------------------------------ Dynamic Bubble array construction ------------------------------
40 //
41 // /// Use this set of methods when building a Bubble array that will integrate iteratively
42 // /// additional Bubbles.
43 // /// The typical usage is:
44 // /// 1. Initialize the BubbleArrayBuilder with a DiagonalStrip
45 // /// 2. Insert the additional Bubbles
46 // /// 3. Convert the internal list into an array of Bubbles that can be used as StringPuller input.
47 //
48 // void Initialize(const DiagonalStrip& diagonalStrip);
49 // void PushBack(const Bubble& bubble);
50 // void ConvertToBubbleArray(BubbleArray& bubbleArray);
51 //
52 //private:
53 // class BubbleListNode: public ListNode<BubbleListNode>
54 // {
55 // public:
56 // BubbleListNode() {}
57 // BubbleListNode(const Bubble& bubble) : m_bubble(bubble) {}
58 // Bubble m_bubble;
59 // };
60 //
61 // KyArray<BubbleListNode> m_bubbleListNodeArray;
62 // List<BubbleListNode> m_bubbleList;
63 };
64 
65 } // namespace Kaim
66 
67 #endif // Navigation_BubbleArrayBuilder_H
Definition: gamekitcrowddispersion.h:20