gwnavgeneration/boundary/boundarypixel.h Source File
Go to the documentation of this file.
12 #ifndef GwNavGen_BoundaryPixel_H
13 #define GwNavGen_BoundaryPixel_H
32 void Init(const NavPixelPos& pos, NavRasterFloorIdx floorIdx, const NavRasterPixel* navRasterPixel,
bool isOutside);
35 NavPixelPos3d m_navPixelPos3d;
36 const NavRasterPixel* m_navRasterPixel;
37 PixelColor m_floorColor;
46 BoundaryEdge* m_edges[4];
49 KY_INLINE BoundaryPixel::BoundaryPixel() : m_navRasterPixel(
KY_NULL), m_floorColor(PixelColor_Unset), m_connexIdx(
KyUInt32MAXVAL), m_isOutside(false)
52 m_edges[dir] = KY_NULL;
55 KY_INLINE
void BoundaryPixel::Init(
const NavPixelPos& pos, NavRasterFloorIdx floorIdx,
const NavRasterPixel* navRasterPixel,
bool isOutside)
57 m_navPixelPos3d.Set(pos.x, pos.y, floorIdx);
58 m_navRasterPixel = navRasterPixel;
59 m_floorColor = navRasterPixel->m_floorColor;
60 m_connexIdx = navRasterPixel->m_connexIdx;
61 m_isOutside = isOutside;
66 KY_ASSERT(m_navRasterPixel != KY_NULL);
67 return m_navRasterPixel->GetFeatureMask(dir);
#define KY_NULL
Null value.
Definition: types.h:247
KyUInt32 CardinalDir
Defines a type that refers to one of the cardinal points on the compass:
Definition: cardinaldir.h:23
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