gwnavruntime/queries/utils/propagationbounddisplay.h Source File

propagationbounddisplay.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 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 #pragma once
8 
10 
11 namespace Kaim
12 {
13 
14 class PropagationBoundDisplay
15 {
16 public:
17  static KyFloat32 GetOffset() { return -10.0f; }
18  static KyFloat32 GetHeight() { return 30.0f; }
19  static ShapeColor GetShapeColor() { return ShapeColor::FillAndLine(Color::OrangeRed, 128); }
20 
21  static void Box(DisplayList* displayList, const Vec3f& P, const Vec3f& Q, KyFloat32 radius)
22  {
23  displayList->PushShearedBox(P.OffsetZ(GetOffset()), Q.OffsetZ(GetOffset()), GetHeight(), radius, GetShapeColor(), DisplayFaces::SidesOnly);
24  }
25 
26  static void Cylinder(DisplayList* displayList, const Vec3f& P, KyFloat32 radius)
27  {
28  displayList->PushVerticalCylinder(P.OffsetZ(GetOffset()), GetHeight(), radius, GetShapeColor(), DisplayPrecision::_10cm, DisplayFaces::SidesOnly);
29  }
30 };
31 
32 
33 } // namespace Kaim
34 
35 
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
float KyFloat32
float
Definition: types.h:32