gwnavruntime/queries/utils/dynamicnavmeshqueryutils.h Source File

dynamicnavmeshqueryutils.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 
8 // Primary contact: LASI - secondary contact: NOBODY
9 #ifndef Navigation_TagVolumeQueryUtils_H
10 #define Navigation_TagVolumeQueryUtils_H
11 
18 
19 
20 namespace Kaim
21 {
22 
23 class NavFloorBlob;
24 class DatabaseGenMetrics;
25 class ScopedDisplayList;
26 class MergedPolygonWithHoles;
27 class EarClippingTriangulatorInputPolygonWithHoles;
28 class DynamicTriangulation;
29 class TriangulatorOutput;
30 class VisualColor;
31 class WorkingMemory;
32 
33 class DynamicNavMeshUtils
34 {
35 public:
36  static Vec2i GetSnappedNavVertexPixelPos(const DatabaseGenMetrics& genMetrics, const Vec2i& cellOriginPixe, const Vec2f& pos2f);
37 
38  // RENDER
39  static void PolylineToDisplayList(KyFloat32 integerPrecision, Vec2i* polyline, KyUInt32 polylinePointCount, ScopedDisplayList& displayList, const VisualColor& color, KyFloat32 zOffset);
40 
41  static KyResult ConvertTriangulatorInput(WorkingMemory* workingMemory, const MergedPolygonWithHoles& input, DynamicTriangulation& dynamicEarTriangulation, EarClippingTriangulatorInputPolygonWithHoles& convertedInput);
42 
43  static void RenderTriangulatorOutputToDisplayList(const TriangulatorOutput& output, ScopedDisplayList& displayList, const Kaim::VisualColor& color, KyFloat32 rasterPrecision, const Vec2i& offset);
44 
45  static void TriangulatorOuputFromDynamicTriangulation(
46  const EarClippingTriangulatorInputPolygonWithHoles& earPolygon,
47  const DynamicTriangulation& dynamicTriangulation,
48  TriangulatorOutput& triangulatordynamicTriangulationOutput);
49 };
50 
51 }
52 
53 #endif //Navigation_TagVolumeQueryUtils_H
54 
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
Represents a single RGBA color.
Definition: visualcolor.h:19
Definition: gamekitcrowddispersion.h:20
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