gwnavgeneration/raster/dynamicrastercolumn.h Source File

dynamicrastercolumn.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 
9 
10 
11 #pragma once
12 
13 
17 
18 
19 namespace Kaim
20 {
21 
22 
23 class DynamicRasterPixel
24 {
25  KY_DEFINE_NEW_DELETE_OPERATORS(MemStat_NavDataGen)
26 public:
27  DynamicRasterPixel()
28  {
29  Set(0.0f, -1, KyUInt32MAXVAL, KyUInt32MAXVAL);
30  }
31 
32  void Set(KyFloat32 altitude, KyInt32 pairing, KyUInt32 navTagIdx, KyUInt32 ownerIdx = KyUInt32MAXVAL)
33  {
34  m_altitude = altitude;
35  m_pairing = pairing;
36  m_navTagIdx = navTagIdx;
37  m_ownerIdx = ownerIdx;
38  }
39 
40 public:
41  KyFloat32 m_altitude;
42  KyInt32 m_pairing;
43  KyUInt32 m_navTagIdx;
44  KyUInt32 m_ownerIdx;
45 
46 };
47 
48 typedef BoxOfLists<DynamicRasterPixel, 4> DynamicRasterColumnPool;
49 typedef DynamicRasterColumnPool::Column DynamicRasterColumn;
50 
51 
52 }
53 
54 
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
std::int32_t KyInt32
int32_t
Definition: types.h:24
#define KyUInt32MAXVAL
KyUInt32 max value
Definition: types.h:68
float KyFloat32
float
Definition: types.h:32