gwnavgeneration/boundary/boundaryedge.h Source File
Go to the documentation of this file.
10 #ifndef GwNavGen_BoundaryEdge_H
11 #define GwNavGen_BoundaryEdge_H
24 class BoundaryContour;
25 class BoundarySimplifyPolyline;
26 class BoundarySimplifiedEdge;
35 void ComputeNextEdge();
37 bool IsInContour() const;
38 bool IsOutside() const;
39 bool HasDiscontinuityVertex() const;
45 BoundaryEdgeType m_type;
46 BoundaryVertex* m_vertex[2];
54 BoundaryContour* m_contour;
58 BoundarySimplifyPolyline* m_simplifyPolyline;
59 BoundaryOrder m_simplifyPolylineOrder;
62 BoundarySimplifiedEdge* m_simplifiedEdge;
73 m_leftColor = leftColor;
74 m_leftConnexIdx = leftNavTagIdx;
75 m_isOutside = isOutside;
76 m_leftPixelFeatureTag = UNDEFINED_NAVRASTER_FEATURE;
81 m_simplifyPolylineOrder = BoundaryOrder_Unset;
85 KY_INLINE
bool BoundaryEdge::IsInContour()
const {
return m_contour !=
KY_NULL; }
86 KY_INLINE
bool BoundaryEdge::IsOutside()
const {
return m_isOutside; }
87 KY_INLINE
bool BoundaryEdge::HasDiscontinuityVertex()
const
89 return (m_vertex[0] !=
KY_NULL && m_vertex[0]->IsDiscontinuity()) ||
90 (m_vertex[1] !=
KY_NULL && m_vertex[1]->IsDiscontinuity());
#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