gwnavruntime/pathfollower/circlearcsplinecomputationresult.h Source File

circlearcsplinecomputationresult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 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 // primary contact: LAPA - secondary contact: NOBODY
8 #ifndef Navigation_CircleArcSplineComputationResult_H
9 #define Navigation_CircleArcSplineComputationResult_H
10 
12 
13 namespace Kaim
14 {
15 
18 {
22 
31 };
32 
33 KY_INLINE bool IsSuccessCase( CircleArcSplineComputationResult result) { return result == CircleArcSplineComputation_Success; }
34 KY_INLINE bool IsWarningCase( CircleArcSplineComputationResult result) { return result == CircleArcSplineComputation_Warning; }
35 KY_INLINE bool IsSuccessOrWarningCase(CircleArcSplineComputationResult result) { return IsSuccessCase(result) || IsWarningCase(result); }
36 KY_INLINE bool IsErrorCase( CircleArcSplineComputationResult result) { return IsSuccessOrWarningCase(result) == false; }
37 
38 
41 {
44 
47 };
48 
49 KY_INLINE bool HasStartConstraintBeenReleased(KyUInt32 warningFlags) { return ((warningFlags & CircleArcSplineComputation_Warning_ReleasedStartConstraint) != 0); }
50 KY_INLINE bool HasEndConstraintBeenReleased(KyUInt32 warningFlags) { return ((warningFlags & CircleArcSplineComputation_Warning_ReleasedEndConstraint) != 0); }
51 KY_INLINE bool HasRestrictedRadius(KyUInt32 warningFlags) { return ((warningFlags & CircleArcSplineComputation_Warning_RestrictedRadius) != 0); }
52 KY_INLINE bool HasSmallTurns(KyUInt32 warningFlags) { return ((warningFlags & CircleArcSplineComputation_Warning_SmallTurn) != 0); }
53 
54 }
55 
56 #endif
An error occurred while computing optimized turns.
Definition: circlearcsplinecomputationresult.h:28
The spline contains at least one turn with a radius that is not in the corresponding RadiusProfile...
Definition: circlearcsplinecomputationresult.h:45
The string puller result is invalid (it returned an empty list).
Definition: circlearcsplinecomputationresult.h:26
The spline has been successfully computed, without any warning.
Definition: circlearcsplinecomputationresult.h:20
A spline has been found, but it does not respect all constraints (RadiusProfile, start constraint dir...
Definition: circlearcsplinecomputationresult.h:21
At least one turn of the spline is smaller than the minimal arc length and has been replaced by segme...
Definition: circlearcsplinecomputationresult.h:46
The start constraint has been released.
Definition: circlearcsplinecomputationresult.h:42
The final spline does not respect the validity conditions.
Definition: circlearcsplinecomputationresult.h:30
The spline has not yet been computed.
Definition: circlearcsplinecomputationresult.h:19
Inputs are invalid: startSection or endSection are invalid or not in the same Channel.
Definition: circlearcsplinecomputationresult.h:23
Definition: gamekitcrowddispersion.h:20
CircleArcSplineComputationResult
Enumerates the CircleArcSpline computation results.
Definition: circlearcsplinecomputationresult.h:17
Turn list could not be converted into CircleArcSpline (a turn is not correctly defined).
Definition: circlearcsplinecomputationresult.h:29
The string puller failed.
Definition: circlearcsplinecomputationresult.h:25
The end constraint has been released.
Definition: circlearcsplinecomputationresult.h:43
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
CircleArcSplineComputationWarningFlags
Enumerates the spline computation warning flags.
Definition: circlearcsplinecomputationresult.h:40
BubbleArray could not be build from Channel and start constraints.
Definition: circlearcsplinecomputationresult.h:24
The string puller result could not be converted into turn list (an edge or circle arc quits the Chann...
Definition: circlearcsplinecomputationresult.h:27