gwnavgeneration/boundary/boundarypixel.h Source File
Go to the documentation of this file.
9 #ifndef GwNavGen_BoundaryPixel_H
10 #define GwNavGen_BoundaryPixel_H
29 void Init(const NavPixelPos& pos, NavRasterFloorIdx floorIdx, const NavRasterPixel* navRasterPixel,
bool isOutside);
33 NavPixelPos3d m_navPixelPos3d;
34 const NavRasterPixel* m_navRasterPixel;
35 PixelColor m_floorColor;
44 BoundaryEdge* m_edges[4];
47 KY_INLINE BoundaryPixel::BoundaryPixel() : m_navRasterPixel(
KY_NULL), m_floorColor(PixelColor_Unset), m_connexIdx(
KyUInt32MAXVAL), m_isOutside(false)
50 m_edges[dir] = KY_NULL;
53 KY_INLINE
void BoundaryPixel::Init(
const NavPixelPos& pos, NavRasterFloorIdx floorIdx,
const NavRasterPixel* navRasterPixel,
bool isOutside)
55 m_navPixelPos3d.Set(pos.x, pos.y, floorIdx);
56 m_navRasterPixel = navRasterPixel;
57 m_floorColor = navRasterPixel->m_floorColor;
58 m_connexIdx = navRasterPixel->m_connexIdx;
59 m_isOutside = isOutside;
64 KY_ASSERT(m_navRasterPixel != KY_NULL);
65 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