gwnavgeneration/raster/dynamicrastercolumn.h Source File

dynamicrastercolumn.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 
8 
9 
10 
11 // primary contact: GUAL - secondary contact: LASI
12 #ifndef GwNavGen_DynamicRasterColumn_H
13 #define GwNavGen_DynamicRasterColumn_H
14 
15 
19 
20 
21 namespace Kaim
22 {
23 
24 
25 class DynamicRasterPixel
26 {
27  KY_DEFINE_NEW_DELETE_OPERATORS(MemStat_NavDataGen)
28 public:
29  DynamicRasterPixel()
30  {
31  Set(0.0f, -1, KyUInt32MAXVAL, KyUInt32MAXVAL);
32  }
33 
34  void Set(KyFloat32 altitude, KyInt32 pairing, KyUInt32 navTagIdx, KyUInt32 ownerIdx = KyUInt32MAXVAL)
35  {
36  m_altitude = altitude;
37  m_pairing = pairing;
38  m_navTagIdx = navTagIdx;
39  m_ownerIdx = ownerIdx;
40  }
41 
42 public:
43  KyFloat32 m_altitude;
44  KyInt32 m_pairing;
45  KyUInt32 m_navTagIdx;
46  KyUInt32 m_ownerIdx;
47 
48 };
49 
50 typedef BoxOfLists<DynamicRasterPixel, 4> DynamicRasterColumnPool;
51 typedef DynamicRasterColumnPool::Column DynamicRasterColumn;
52 
53 
54 }
55 
56 
57 #endif
int KyInt32
Type used internally to represent a 32-bit integer.
Definition: types.h:35
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
#define KyUInt32MAXVAL
The maximum value that can be stored in the KyUInt32 variable type.
Definition: types.h:226
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43