gwnavruntime/pathfollower/radiusprofile.h Source File
Go to the documentation of this file.
8 #ifndef Navigation_RadiusProfile_H
9 #define Navigation_RadiusProfile_H
18 class RadiusProfileBlob;
19 class RadiusProfileArrayBlob;
38 : m_name(other.m_name)
39 , m_radiusArray(other.m_radiusArray)
48 void UpdateFromBlob(
const RadiusProfileBlob& blob);
50 void Clear() { m_radiusArray.Clear(); }
51 void PushBack(
KyFloat32 radius) { m_radiusArray.PushBack(radius); }
53 const char* GetName()
const {
return m_name.ToCStr(); }
54 KyUInt32 GetCount()
const {
return m_radiusArray.GetCount(); }
59 bool operator!=(
const RadiusProfile& other)
const {
return !(*
this == other); }
62 void SortInIncreasingOrder();
78 ~RadiusProfileArray() { Clear(); }
84 void UpdateFromBlob(
const RadiusProfileArrayBlob& blob);
88 KyUInt32 GetCount()
const {
return m_radiusProfileArray.GetCount(); }
90 RadiusProfile& GetRadiusProfile(
KyUInt32 index) {
return m_radiusProfileArray[index]; }
92 bool operator==(
const RadiusProfileArray& other)
const;
93 bool operator!=(
const RadiusProfileArray& other)
const {
return !(*
this == other); }
98 KyArray<RadiusProfile> m_radiusProfileArray;
99 bool m_userDefinedProfile;
104 #endif // Navigation_RadiusProfile_H
RadiusProfile is an array of preferred radii.
Definition: radiusprofile.h:29
Definition: gamekitcrowddispersion.h:20
CircleArcSpline computer can compute several CircleArcSplines each corresponding to a specific Radius...
Definition: radiusprofile.h:80
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43